r/javascript • • Apr 23 '19

Introducing Node.js 12

https://medium.com/@nodejs/introducing-node-js-12-76c41a1b3f3f
333 Upvotes

85 comments sorted by

View all comments

91

u/[deleted] Apr 23 '19

ES6 Module Support!

23

u/tanguy_k Apr 23 '19 edited Apr 23 '19

It's still behind a flag (--experimental-modules) + you need to add "type": "module" inside your package.json.

See https://medium.com/@nodejs/announcing-a-new-experimental-modules-1be8d2d6c2ff

17

u/[deleted] Apr 23 '19

Yes, but they expect to remove the need for the flag during the development of this version (before it goes LTS in October).