From 4093381b6aeb56852a3923ef7b467cf4061728b1 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 24 Nov 2024 18:44:43 +0800 Subject: [PATCH] refactor: remove some babel plugins and IE11 support --- lib/getBabelCommonConfig.js | 5 +---- package.json | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/getBabelCommonConfig.js b/lib/getBabelCommonConfig.js index bde9580be..5f33cabae 100644 --- a/lib/getBabelCommonConfig.js +++ b/lib/getBabelCommonConfig.js @@ -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 { @@ -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%'], }, }, ], diff --git a/package.json b/package.json index ab7223936..c67b5f305 100644 --- a/package.json +++ b/package.json @@ -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",