I get the following error when running babel src -d dist in my terminal:
Unexpected token import
What's weird though is if I remove the webpack-alias plugin, everything compiles correctly. Interestingly, if I use webpack-alias with node-babel, it also works. Only when I use babel from the babel-cli package do I get the error.
Love this plugin. However I seem to be having some issues with the plugin/preset run ordering... Given the following
.babelrc
file:I get the following error when running
babel src -d dist
in my terminal:What's weird though is if I remove the
webpack-alias
plugin, everything compiles correctly. Interestingly, if I usewebpack-alias
withnode-babel
, it also works. Only when I usebabel
from thebabel-cli
package do I get the error.