Open hugooliveirad opened 9 years ago
Correct me if I'm wrong,
You need to add loader for jsx-loader?harmony
transformer
For me, I have something like this: (I'm using react-jade for my React components in public folder)
loaders: [
{ test: /\.js$/, exclude: /node_modules/, loader: "transform?react-jade" },
{ test: /\.js$/, exclude: /public/, loader: 'jsx-loader?harmony' },
]
don't forget to npm install jsx-loader
Hey @beeant I missed your comment. Thanks for the help, I'll see if this fixes my issue.
Hi! I want to use react-magic-move in my app. The catch is that I'm compiling everything with webpack and using the exclude option to prevent compiling every dependency.
My
webpack.config.js
looks like this:When I try to build a file with
require('react-magic-move')
I get this error:As I'm excluding my dependencies from the build step, and
react-magic-move
is exporting an ES6 module, the build step is failing.Can
react-magic-move
export an ES5 CommonJS bundle or should I change my webpack configs?