We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there. Need some help with transpiling a spread operator. I have code that looks like this:
var { style, useContent, contentType, contentStyle, ...other } = this.props;
with jsx-loader?harmony, webpack happily transpiles. But with babel-loader, I am getting an error that looks like this:
jsx-loader?harmony
babel-loader
ERROR in ./app/jsx/components/fullwidth-section.jsx Module build failed: SyntaxError: /Users/keng/work/virtuosityworks/aubusson/app/jsx/components/fullwidth-section.jsx: Unexpected token (54:6) 52 | contentType, 53 | contentStyle, `> 54 | ...other | ^ 55 | } = this.props; 56 |
My module config for babel-loader looks like this:
{ test: /\.jsx?$/, loaders: ['babel-loader'], exclude: /node_modules/},
The text was updated successfully, but these errors were encountered:
I think you need babel-loader?stage=1 (experimental features) and you should be good. https://github.com/sebmarkbage/ecmascript-rest-spread
babel-loader?stage=1
Sorry, something went wrong.
@hzoo Thanks! that worked.
No branches or pull requests
Hi there. Need some help with transpiling a spread operator.
I have code that looks like this:
with
jsx-loader?harmony
, webpack happily transpiles. But withbabel-loader
, I am getting an error that looks like this:My module config for babel-loader looks like this:
The text was updated successfully, but these errors were encountered: