DEV Community

Discussion on: JavaScript Module Cheatsheet πŸ“„β€¬

Collapse
 
brianwfl88 profile image
brianwfl88 β€’

ES6 import module only works in transpiler like webpack. The support for node is currently in experimental stage.

Collapse
 
samanthaming profile image
Samantha Ming β€’

Yup you got it! Thanks for chiming and helping with the answer @brianwfl88 πŸ‘

Collapse
 
jefferyhus profile image
El Housseine Jaafari β€’

You meant to say 'like babel', because webpack is a bundler.

Thread Thread
 
samanthaming profile image
Samantha Ming β€’

In this instance because the files are all in modules, you will need a bundler like webpack or even gulp to join them all together πŸ™‚

i explain it here a bit more > dev.to/samanthaming/comment/i48b

Thread Thread
 
jefferyhus profile image
El Housseine Jaafari β€’

Thanks, but I just corrected what he said πŸ˜….

Thread Thread
 
samanthaming profile image
Samantha Ming β€’

Ah got it! I’ll also adjust my notes, thanks for the clarification πŸ™‚