3 ms·
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/
by lenkite 12y 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/
- acdlite 12y agoThat's actually the default, but you can specify a different module system if you like. https://babeljs.io/docs/usage/modules/ https://babeljs.io/docs/usage/modules/