type: module should also enable experimental-json-modules #32314
Labels
cli
Issues and PRs related to the Node.js command line interface.
esm
Issues and PRs related to the ECMAScript Modules implementation.
feature request
Issues that request new features to be added to Node.js.
When Dennis Ritchie came up with the shebang in 1979, he did not consider Node.js v12.0.0
So on the shebang line #!/usr/bin/env node you cannot provide arguments
If you do a different shebang line, it is no longer portable to macOS or Android
Therefore, adding type:module to package.json should enable every reasonable experimental module feature, in particular experimental-json-modules if it doesn't break us, it will make us stronger
People who do not want this behavior should use an intermediate script or custom command-line like json importers have to do now
node -v && uname -a
v13.11.0
Darwin c87m1.local 19.3.0 Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered: