Skip to content

Commit 9488a5c

Browse files
committed
Added Webpack configuration to use the Babel loader for JSX files.
1 parent bba196d commit 9488a5c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

webpack.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ const path = require('path');
77

88
module.exports = {
99
entry: [path.join(__dirname, 'webpack_in', 'entry.js')],
10+
module: {
11+
loaders: [{
12+
loader: 'babel-loader',
13+
test: /\.jsx$/
14+
}]
15+
},
1016
output: {
1117
path: path.join(__dirname, 'webpack_out'),
1218
filename: 'minimalistic_react.js'

0 commit comments

Comments
 (0)