-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Default to es2017 #35
Comments
Done in af32076 |
Cool 😄 |
Async/await is not working for me in version 1.2 without installing and loading babel-polyfill Should I create a new issue or do you want to reopen this one? |
@flybayer What version of node you got? |
Node 7.10.0 |
thanks, and you got .babelrc with |
I should have added the error I get in the Browser console without babel-polyfill:
My {
"presets": [
["env", {"modules": false}]
],
"plugins": [
"transform-object-rest-spread",
],
} |
You would need to use this option - https://github.com/babel/babel-preset-env#usebuiltins-boolean See this issue - babel/babel-preset-env#92 |
I guess something like this would work, please give it a go - "presets": [
[
"env",
{
"targets": {
"node": "current"
},
"useBuiltIns": true
}
]
] |
We should probably update {
"presets": [
["env", {
"modules": false,
"targets": {
"node": "current"
},
"useBuiltIns": true
}]
]
} |
This works perfect!! (without {
"presets": [
["env", {
"modules": false,
"targets": {
"node": "current"
},
"useBuiltIns": true
}]
]
} |
So this changed worked fine until I tried to run in production mode which results in uglify failing because of ES6/7 syntax (see #306). I'm now back to using {
"presets": [
["env", {
"modules": false,
"targets": {
"node": "current",
"uglify": true
},
"useBuiltIns": true
}]
]
} |
Lets document this in README @flybayer as this depends on the use case |
in webpacker (3.2.0) npm install babel-plugin-transform-runtime
|
Thanks @MiguelSavignano. This solved the |
Let's give the people async/await by default (and the other es2017 goodies).
The text was updated successfully, but these errors were encountered: