You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some packages define the top-level module field in package.json. Although it’s non-standard, bundlers use it. This can lead to differences between usage in the browser and Node.js, but it is not possible to add type definitions for it.
I think it would be useful to report the module field if it does not match the import condition in the package.jsonexports field nor the main field.
Another interesting case: qr-creator, where main is a browser script, module is a .js file that contains ESM syntax, and types is a .d.ts file that represents module 😵💫
Some packages define the top-level
module
field inpackage.json
. Although it’s non-standard, bundlers use it. This can lead to differences between usage in the browser and Node.js, but it is not possible to add type definitions for it.I think it would be useful to report the
module
field if it does not match theimport
condition in thepackage.json
exports
field nor themain
field.For example:
monaco-editor
vscode-json-languageservice
vscode-uri
whatwg-fetch
The text was updated successfully, but these errors were encountered: