diff --git a/lib/getBabelCommonConfig.js b/lib/getBabelCommonConfig.js index bde9580be..d87239a34 100644 --- a/lib/getBabelCommonConfig.js +++ b/lib/getBabelCommonConfig.js @@ -16,9 +16,7 @@ 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-template-literals'), resolve('babel-plugin-transform-dev-warning'), ]; return { @@ -31,7 +29,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..92774b1ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ant-design/tools", - "version": "18.0.2", + "version": "18.0.3-alpha.0", "description": "tools for ant design", "keywords": [ "react", @@ -28,10 +28,8 @@ }, "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-template-literals": "^7.24.7", "@babel/plugin-transform-typescript": "^7.10.5", "@babel/preset-env": "^7.4.5", "@babel/preset-react": "^7.0.0",