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

Use jsx-loader is correct and babel is wrong

Open mqliutie opened this issue 8 years ago • 0 comments

loaders: [{
            test: /\.js$/,
            loaders: [
                'babel-loader?presets[]=react'
            ],
            exclude: /node_modules/,
}]

It is wrong.

loaders: [{
            test: /\.js$/,
            loaders: [
                'jsx-loader?insertPragma=React.DOM&harmony'
            ],
            exclude: /node_modules/,
}]

It is correct!

mqliutie avatar Mar 22 '17 10:03 mqliutie