Skip to content

Commit fdb8d8c

Browse files
authored
fix: include react-router in transpilation to es5 (#220)
1 parent 198c2e0 commit fdb8d8c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

webpack/base.babel.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ export default {
1414
rules: [
1515
{
1616
test: /\.(js|jsx)$/,
17-
exclude: /node_modules/,
18-
use: ['babel-loader'],
17+
exclude: /node_modules\/(?!react-router)/,
18+
use: {
19+
loader: 'babel-loader',
20+
options: {
21+
presets: ['@babel/preset-env'],
22+
},
23+
},
1924
},
2025
],
2126
},

0 commit comments

Comments
 (0)