petehunt/jsx-loader

Does jsx-loader support ES6 Spread operator ...

Opened this issue · 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 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.