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
Package authors should include the "type" field, even in packages where all sources are CommonJS. Being explicit about the type of the package will future-proof the package in case the default type of Node.js ever changes, and it will also make things easier for build tools and loaders to determine how the files in the package should be interpreted.
It could also be checked for the valid values "commonjs" or "module".
Thanks!
The text was updated successfully, but these errors were encountered:
Per https://nodejs.org/api/esm.html#esm_package_json_type_field
It could also be checked for the valid values "commonjs" or "module".
Thanks!
The text was updated successfully, but these errors were encountered: