4 ms·
There is/was a vote on this pretty soon. We are deciding how modules would work - with a new file extension? With a module.json? With a separate entry entry in
by inglor 11y ago
There is/was a vote on this pretty soon. We are deciding how modules would work - with a new file extension? With a module.json? With a separate entry entry in package.json? Lots of decisions to be made :)
- bmeck 11y agoVote was at: https://github.com/nodejs/node/issues/5648 https://github.com/nodejs/node/issues/5648
- abritinthebay 11y agoSurely they should work the way they work in ES6? Any solution that requires extra work (file extension, another file to maintain) is a non-starter. Frankly it should work how Babel transpiles it - because there's no reason for it not to.
- mudetroit 11y agoES6 didn't define precisely how module loading worked, one of the reasons it isn't actually implemented yet. And there are actual reasons why the method babel currently uses won't precisely match the actual implementations (see hierarchal v flat dependencies)
- abritinthebay 11y agoThose problems are just as present in CJS as far as I'm aware though...? Yet they were solved for that.
- deleted 11y ago[deleted]