You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
.babelrcfile:I get the following error when running
babel src -d distin my terminal:What's weird though is if I remove the
webpack-aliasplugin, everything compiles correctly. Interestingly, if I usewebpack-aliaswithnode-babel, it also works. Only when I usebabelfrom thebabel-clipackage do I get the error.