jsx-loader icon indicating copy to clipboard operation
jsx-loader copied to clipboard

Does jsx-loader support ES6 Spread operator ...

Open ruifortes opened this issue 10 years ago • 1 comments

Does jsx-loader support ES6 Spread operator (...) I want to use "react-style" but it uses the spread operator and I get an "Unexpected token ." has soon has I require it. I'm using the harmony flag: {test: /.jsx$/, loader: 'jsx-loader?harmony'}

ruifortes avatar Dec 02 '14 21:12 ruifortes

@ruifortes realize that react-style's files have a .js extension (there's no JSX in the library), and your module loader config only matches .jsx extensions.

julen avatar Dec 31 '14 11:12 julen