MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/bgiky2/introducing_nodejs_12/elnl0u6/?context=3
r/javascript • u/vzhou842 • Apr 23 '19
85 comments sorted by
View all comments
2
So glad they listened and made the .mjs extension optional instead of mandatory for ES module support! Just adding "type": "module" to your package.json is enough now to opt in.
.mjs
"type": "module"
2
u/[deleted] Apr 24 '19
So glad they listened and made the
.mjsextension optional instead of mandatory for ES module support! Just adding"type": "module"to your package.json is enough now to opt in.