Skip to content

Commit 9c6772f

Browse files
committed
refactor: move Babel configuration to separate config file
Later this configuration will be shared between Babel and Jest. Part of #1484
1 parent e190c78 commit 9c6772f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/main/frontend/babel.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [ "@babel/preset-react", "@babel/preset-env" ]
3+
};

src/main/frontend/webpack.config.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ module.exports = {
2424
test: /\.js$/,
2525
exclude: /node_modules/,
2626
use: {
27-
loader: 'babel-loader',
28-
options: {
29-
presets: [ "@babel/preset-react", "@babel/preset-env" ]
30-
}
27+
// See also the configuration in babel.config.js
28+
loader: 'babel-loader'
3129
}
3230
}
3331
]

0 commit comments

Comments
 (0)