-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not import waterfall from async-es/waterfall (ES6 syntax) #1351
Comments
You have to add |
I wish this tip is included in the Thanks, |
@aearly ^ thoughts |
Does the babel-loader respect the Otherwise, it's definitely worth a line in the readme. |
@tiendq @megawac @aearly I've created a webpack helper to automatically detect dependencies such as this one that may require Babel transpilation. See https://github.com/andersdjohnson/webpack-babel-env-deps. For it to work in its current form, this module would have to indicate |
What version of async are you using?
2.1.4
Which environment did the issue occur in (Node version/browser version)
7.4.0, Chrome 55
What did you do? Please include a minimal reproducable case illustrating issue.
Using
waterfall
in a module with ES6 syntax, my module is transpiled well withbabel
/webpack
.What did you expect to happen?
No error.
babel-loader
needs only to handle my code, not modules innode_modules
folder.What was the actual result?
Chrome reports following error at line 2 in
waterfall.js
:Uncaught SyntaxError: Unexpected token import
The text was updated successfully, but these errors were encountered: