added 6to5 loader in webpack configs

This commit is contained in:
Emil Stenberg 2014-12-10 12:26:46 +01:00
parent c3f6abc95e
commit 7421ef680f
3 changed files with 5 additions and 3 deletions

View File

@ -34,7 +34,9 @@
"webpack-dev-server": "~1.6.5",
"grunt-open": "~0.2.3",
"jshint-loader": "~0.8.0",
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-copy": "~0.5.0",<% if (es6) { %>
"6to5": "^1.10.10",
"6to5-loader": "^0.2.3",<% } %>
"grunt-contrib-clean": "~0.6.0",<% if (stylesLanguage === 'sass') { %>
"sass-loader": "^0.2.0",<% } %><% if (stylesLanguage === 'less') { %>
"less-loader": "^0.7.7",<% } %><% if (stylesLanguage === 'stylus') { %>

View File

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

View File

@ -28,7 +28,7 @@ module.exports = function (config) {
loader: 'url-loader?limit=10000&mimetype=image/png'
}, {
test: /\.jsx$/,
loader: 'jsx-loader'
loader: '<% if (es6) { %>6to5!<% }%>jsx-loader'
}]
}
},