Generate package.json with "type": "module"
#30975
Ionaru
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Several NX plugins use the
createPackageJson
function from nx/src/plugins/js/package-json/create-package-json.ts, but this function is not capable of generating a package.json file with"type": "module"
, locking any output to commonjs.Since ESM is the official JavaScript standard now, and Node.js supports it since 2019-2020, project output should use this system.
Beta Was this translation helpful? Give feedback.
All reactions