Closed bzang closed 7 years ago
I am in the same boat and would have thought that babel-preset-env
set to "current"
would fix the problem. Not sure why it isn't though. :(
I tried the following .babelrc
since I only want to use this plugin in my jest
tests:
{
"presets": [
"es2015",
"react"
],
"plugins": [
"transform-object-rest-spread",
"react-hot-loader/babel"
],
"env": {
"test": {
"plugins": [
"transform-async-functions",
"transform-es2015-modules-commonjs",
"transform-postcss"
]
}
}
}
This just needs to change to be a specific version and we need to update the tested versions.
Would you mind creating a PR and testing with your configuration?
Resolved by #38.
When I try using the transform I get the following when running with Node 6:
I don't have any issues when running with Node 7, but our current architecture doesn't quite support 7 yet. Any thoughts on how I can get around this?
My
.babelrc
: