-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
Not transpiling to ES5 #214
Comments
Can you show some example of the output code? |
bundled output: Here's the cmd output of running webpack
The compile es6 function should have looked like: "use strict";
var nameBuilder = function nameBuilder() {
var firstName = arguments.length <= 0 || arguments[0] === undefined ? "John" : arguments[0];
var lastName = arguments.length <= 1 || arguments[1] === undefined ? "Doe" : arguments[1];
console.log(firstName + " " + lastName);
};
nameBuilder(); |
Does this also happens if you feed the babel binary directly? |
No. It works perfectly fine with babel --presets es2015 script.js --out-file bundled.js |
Maybe I'm missing something, but i'm not able to replicate your issue. |
@Couto Thanks. Some silly mistake at my end. Had the module object in webpack config inside the output object. |
I have the same issue :(
|
@emretekince can you post your full config please? |
@Couto I have fixed it now by removing babel-loader from config file. |
@emretekince @Couto this doesn't really fix it, just avoids the problem. |
had the same issue here, was pulling my hair till I bump into this post. Thank you so much ! |
Here's my package.json deps
and webpack config
The output file is not transpiled to es5.
npm v3.7.3
node v4.3.0
The text was updated successfully, but these errors were encountered: