Hacker News new | ask | show | jobs
by lenkite 4124 days ago
They should simply use standard node js require. The author forgot to specify common js interop option in babel.

babel --modules common -d lib/ src/

1 comments

That's actually the default, but you can specify a different module system if you like. https://babeljs.io/docs/usage/modules/