Skip to content


Added Webpack configuration to pass '*.es' files through Babel and pl…
Browse files Browse the repository at this point in the history
…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 Aug 5, 2018
1 parent 0a28072 commit edba721
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit edba721

Please sign in to comment.