MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/bgiky2/introducing_nodejs_12/elmk7mt/?context=3
r/javascript • u/vzhou842 • Apr 23 '19
85 comments sorted by
View all comments
91
ES6 Module Support!
8 u/ShortFuse Apr 24 '19 Do I still need to use Michael Jackson Script file extension?I've been using the esm package, but I would like to be able to remove the dependency? 3 u/[deleted] Apr 24 '19 You don't. If you add "type": "module" to your package.json, plain .js will work too.
8
Do I still need to use Michael Jackson Script file extension?
I've been using the esm package, but I would like to be able to remove the dependency?
esm
3 u/[deleted] Apr 24 '19 You don't. If you add "type": "module" to your package.json, plain .js will work too.
3
You don't. If you add "type": "module" to your package.json, plain .js will work too.
"type": "module"
91
u/[deleted] Apr 23 '19
ES6 Module Support!