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
How can I stop from transform rest-spread operators #636
Comments
@shuaiyaotian even if you dont want to transform rest-spread, you need to add |
@existentialism Thank you. |
@existentialism I don't understand... Object Rest/Spread Properties is already a Stage 4 (Finished) proposal and is part of ES2018 spec. The same exact code runs fine in Chrome 68, but fails with |
It will be enabled by default by babel/babel#8448. In the meantime, you can use |
Chrome supports the feature object-rest-spread, I don't want to transform it in babel.
But I got Syntax Error always, and the tips: "Add @babel/plugin-proposal-object-rest-spread (https://git.io/vb4Ss) to the 'plugins' section of your Babel config to enable transformation."
How to get around.
Webpack Version:
2.x
Babel Core Version:
7.x
Babel Loader Version:
8.x
The text was updated successfully, but these errors were encountered: