diff --git a/webpack/base.babel.js b/webpack/base.babel.js index d089649f..6ad34f59 100644 --- a/webpack/base.babel.js +++ b/webpack/base.babel.js @@ -14,8 +14,13 @@ export default { rules: [ { test: /\.(js|jsx)$/, - exclude: /node_modules/, - use: ['babel-loader'], + exclude: /node_modules\/(?!react-router)/, + use: { + loader: 'babel-loader', + options: { + presets: ['@babel/preset-env'], + }, + }, }, ], },