Skip to content

Commit

Permalink
refactor: remove some babel plugins and IE11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Nov 24, 2024
1 parent 14ee166 commit 4093381
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions lib/getBabelCommonConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ module.exports = function (modules) {
require(`${process.cwd()}/package.json`).dependencies['@babel/runtime'] || '^7.10.4',
},
],
resolve('@babel/plugin-transform-spread'),
resolve('@babel/plugin-proposal-class-properties'),
resolve('@babel/plugin-transform-classes'),
resolve('babel-plugin-transform-dev-warning'),
];
return {
Expand All @@ -31,7 +28,7 @@ module.exports = function (modules) {
targets: isThereHaveBrowserslistConfig()
? undefined
: {
browsers: ['last 2 versions', 'Firefox ESR', '> 1%', 'ie >= 11'],
browsers: ['last 2 versions', 'Firefox ESR', '> 1%'],
},
},
],
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
},
"dependencies": {
"@babel/core": "^7.4.5",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-classes": "^7.20.7",
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/plugin-transform-spread": "^7.20.7",
"@babel/plugin-transform-typescript": "^7.10.5",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
Expand Down

0 comments on commit 4093381

Please sign in to comment.