Skip to content

Commit

Permalink
fix: include react-router in transpilation to es5 (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhayab authored Apr 7, 2022
1 parent 198c2e0 commit fdb8d8c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions webpack/base.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
},
},
},
],
},
Expand Down

0 comments on commit fdb8d8c

Please sign in to comment.