Skip to content

Commit 8cd37ca

Browse files
committed
Removed babel configuration from Webpack configs
- Using babel.config.js
1 parent cf9f757 commit 8cd37ca

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

webpack.config.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,7 @@ module.exports = {
2424
test: /\.jsx?$/,
2525
exclude: /(node_modules|bower_components)/,
2626
use: {
27-
loader: 'babel-loader',
28-
options: {
29-
presets: ['@babel/preset-env'],
30-
plugins: [
31-
'@babel/plugin-transform-arrow-functions',
32-
'@babel/plugin-proposal-class-properties',
33-
],
34-
},
27+
loader: 'babel-loader'
3528
},
3629
},
3730
],

webpack.config.prod.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,7 @@ module.exports = {
3434
test: /\.jsx?$/,
3535
exclude: /(node_modules|bower_components)/,
3636
use: {
37-
loader: 'babel-loader',
38-
options: {
39-
presets: ['@babel/preset-env'],
40-
plugins: [
41-
'@babel/plugin-transform-arrow-functions',
42-
'@babel/plugin-proposal-class-properties',
43-
],
44-
},
37+
loader: 'babel-loader'
4538
},
4639
},
4740
],

0 commit comments

Comments
 (0)