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
Modules should be strict #1434
Comments
|
Am I doing sth wrong? a.js: import b from './b'; b.js: export default 'b'; And yet:
|
You're using the whitelist so the |
I see. It seems Is using a whitelist discouraged? |
Depends on your usage, but generally using the whitelist is pointless since it wont speed up compilation which is what 90% of people use it for. |
I use it mainly so that I don't transpile features that work on current io.js. |
There are more features unavailable on io.js so it'd be easier to just use the blacklist. |
According to the ES6 spec, modules have implicit strict mode. Babel should add
'use strict';
pragmas to transpiled modules; it doesn't do it either for thecommon
output nor for theamd
one.The text was updated successfully, but these errors were encountered: