Skip to content

Commit 0d5353c

Browse files
committed
Use babel-loader instead of jsx-loader
1 parent aa171d7 commit 0d5353c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

examples/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = {
2828

2929
module: {
3030
loaders: [
31-
{ test: /\.js$/, loader: 'jsx-loader?harmony' }
31+
{ test: /\.js$/, loader: 'babel-loader' }
3232
]
3333
},
3434

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = function (config) {
2323
devtool: 'inline-source-map',
2424
module: {
2525
loaders: [
26-
{ test: /\.js$/, loader: 'jsx-loader?harmony' }
26+
{ test: /\.js$/, loader: 'babel-loader' }
2727
]
2828
},
2929
plugins: [

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
"license": "MIT",
2323
"devDependencies": {
2424
"babel": "^4.4.5",
25+
"babel-core": "^4.4.6",
26+
"babel-loader": "^4.0.0",
2527
"bundle-loader": "^0.5.2",
2628
"events": "1.0.2",
2729
"expect": "^1.1.0",
28-
"jsx-loader": "^0.12.2",
2930
"jsxhint": "^0.8.1",
3031
"karma": "^0.12.28",
3132
"karma-chrome-launcher": "^0.1.7",

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = {
3636

3737
module: {
3838
loaders: [
39-
{ test: /\.js$/, loader: 'jsx-loader?harmony' }
39+
{ test: /\.js$/, loader: 'babel-loader' }
4040
]
4141
},
4242

0 commit comments

Comments
 (0)