Browse Source

fix: remove babel runtime in semi-icons

代强 3 years ago
parent
commit
693beb71a6
2 changed files with 1 additions and 16 deletions
  1. 1 14
      packages/semi-icons/getBabelConfig.js
  2. 0 2
      packages/semi-icons/package.json

+ 1 - 14
packages/semi-icons/getBabelConfig.js

@@ -18,19 +18,6 @@ module.exports = ({ isESM }) => {
                 },
             ],
         ],
-        plugins: [
-            [
-                '@babel/plugin-transform-runtime',
-                {
-                    corejs: 3
-                },
-            ],
-            [
-                '@babel/plugin-proposal-decorators',
-                {
-                    legacy: true,
-                },
-            ],
-        ]
+        plugins: []
     };
 };

+ 0 - 2
packages/semi-icons/package.json

@@ -33,8 +33,6 @@
     "classnames": "^2.2.6"
   },
   "devDependencies": {
-    "@babel/plugin-proposal-decorators": "^7.15.8",
-    "@babel/plugin-transform-runtime": "^7.15.8",
     "@babel/preset-env": "^7.15.8",
     "@babel/preset-react": "^7.14.5",
     "@douyinfe/semi-webpack-plugin": "2.20.1",