Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lenkite
· 11y ago · 0 comments
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/
Comments
[–]
acdlite
11y ago
That's actually the default, but you can specify a different module system if you like.
https://babeljs.io/docs/usage/modules/