Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript intellisense import should respect field package.json/module #30060

Closed
pmunin opened this issue Oct 1, 2018 · 2 comments
Closed
Assignees
Labels
Duplicate An existing issue was already created

Comments

@pmunin
Copy link

pmunin commented Oct 1, 2018

Package.json file has a field "module" (proposal). When I edit package.json, vscode obviously aware of this field as it shows description for it:
image

However when I try to import this package from another module, intellisense only uses package.json/main to obtain exports, ignoring field module, which supposed to override main in case of module importing. Usually main points to a bundle (e.g. generated by webpack), which does not export jsdoc the right way.

Please support package.json/module field, so when developer specifies it, intellisense will use that over package.json/main to obtain exported symbols.

@vscodebot vscodebot bot assigned mjbvz Oct 1, 2018
@mjbvz mjbvz transferred this issue from microsoft/vscode Feb 22, 2019
@mjbvz
Copy link
Contributor

mjbvz commented Feb 22, 2019

Possibly a duplicate of #21423

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Feb 27, 2019
@typescript-bot
Copy link
Collaborator

This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants