Use babel-loader instead of jsx-loader

This commit is contained in:
Raymond Ha 2015-03-19 12:00:55 -04:00
parent 3a94fb3fe6
commit 9f89b6a23b
4 changed files with 5 additions and 6 deletions

View File

@ -18,7 +18,6 @@
"load-grunt-tasks": "~0.6.0",
"grunt-contrib-connect": "~0.8.0",
"webpack": "~1.4.3",
"jsx-loader": "~0.12.2",
"grunt-webpack": "~1.0.8",
"style-loader": "~0.8.0",
"url-loader": "~0.5.5",
@ -35,9 +34,9 @@
"grunt-open": "~0.2.3",
"jshint-loader": "~0.8.0",
"jsxhint-loader": "~0.2.0",
"grunt-contrib-copy": "~0.5.0",<% if (es6) { %>
"grunt-contrib-copy": "~0.5.0",
"babel": "^4.0.0",
"babel-loader": "^4.0.0",<% } %>
"babel-loader": "^4.0.0",
"grunt-contrib-clean": "~0.6.0",<% if (stylesLanguage.match(/s[ac]ss/)) { %>
"sass-loader": "^0.3.1",<% } %><% if (stylesLanguage === 'less') { %>
"less-loader": "^2.0.0",<% } %><% if (stylesLanguage === 'stylus') { %>

View File

@ -43,7 +43,7 @@ module.exports = {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'react-hot!<% if (es6) { %>babel!<% }%>jsx-loader?harmony'
loader: 'react-hot!babel-loader'
},<% if (stylesLanguage === 'sass') { %> {
test: /\.sass/,
loader: 'style-loader!css-loader!sass-loader?outputStyle=expanded'

View File

@ -50,7 +50,7 @@ module.exports = {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: '<% if (es6) { %>babel!<% }%>jsx-loader?harmony'
loader: 'babel-loader'
}, {
test: /\.css$/,
loader: 'style-loader!css-loader'

View File

@ -27,7 +27,7 @@ module.exports = function (config) {
loader: 'url-loader?limit=10000&mimetype=image/png'
}, {
test: /\.js$/,
loader: '<% if (es6) { %>babel!<% }%>jsx-loader?harmony'
loader: 'babel-loader'
},<% if (stylesLanguage === 'sass') { %> {
test: /\.sass/,
loader: 'style-loader!css-loader!sass-loader?outputStyle=expanded'