Permalink
Browse files

Added Webpack configuration to pass '*.es' files through Babel and pl…

…ugin 'env', but not through 'react'. This extension will be used in this project for all EcmaScript that is > ES5.
  • Loading branch information...
maratbn committed Jul 2, 2018
1 parent 0a28072 commit edba721de380806823fe8c45137f9bb029071f34
Showing with 9 additions and 0 deletions.
  1. +9 −0 webpack.config.js
@@ -10,6 +10,15 @@ module.exports = {
path.join(__dirname, 'webpack_in', 'entry.jsx')],
module: {
rules: [{
test: /\.es$/,
use: [{
loader: 'babel-loader',
options: {
presets: ['env'],
plugins: ['transform-object-rest-spread']
}
}]
}, {
test: /\.jsx$/,
use: [{
loader: 'babel-loader',

0 comments on commit edba721

Please sign in to comment.