Optimize rollup plugin babel (#8436)

This commit is contained in:
Leslie Leigh (李的序)
2021-04-12 15:35:38 +08:00
committed by GitHub
parent 0001d0de17
commit 60dd3024c0
5 changed files with 41 additions and 38 deletions
+34 -34
View File
@@ -1735,7 +1735,7 @@
},
"@cocos/babel-plugin-dynamic-import-vars": {
"version": "1.0.2",
"resolved": "https://registry.npm.taobao.org/@cocos/babel-plugin-dynamic-import-vars/download/@cocos/babel-plugin-dynamic-import-vars-1.0.2.tgz?cache=0&sync_timestamp=1604048375532&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40cocos%2Fbabel-plugin-dynamic-import-vars%2Fdownload%2F%40cocos%2Fbabel-plugin-dynamic-import-vars-1.0.2.tgz",
"resolved": "https://registry.npm.taobao.org/@cocos/babel-plugin-dynamic-import-vars/download/@cocos/babel-plugin-dynamic-import-vars-1.0.2.tgz",
"integrity": "sha1-chaboK/r3jjHTS02cU95rWZBT5g=",
"dev": true,
"requires": {
@@ -1767,9 +1767,9 @@
}
},
"@cocos/build-engine": {
"version": "4.2.2",
"resolved": "https://registry.npm.taobao.org/@cocos/build-engine/download/@cocos/build-engine-4.2.2.tgz",
"integrity": "sha1-oWiwic3IZI+5xIh+lAoM++evLq4=",
"version": "4.2.3",
"resolved": "https://registry.npm.taobao.org/@cocos/build-engine/download/@cocos/build-engine-4.2.3.tgz",
"integrity": "sha1-izzf1cHdMI4I5ZYdR0plvA8u2Sg=",
"dev": true,
"requires": {
"@babel/core": "^7.13.10",
@@ -1982,14 +1982,14 @@
}
},
"y18n": {
"version": "4.0.1",
"resolved": "https://registry.npm.taobao.org/y18n/download/y18n-4.0.1.tgz?cache=0&sync_timestamp=1609798736426&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fy18n%2Fdownload%2Fy18n-4.0.1.tgz",
"integrity": "sha1-jbK4PDHF11CZu4kLI/MJSJHiR9Q=",
"version": "4.0.3",
"resolved": "https://registry.npm.taobao.org/y18n/download/y18n-4.0.3.tgz",
"integrity": "sha1-tfJZyCzW4zaSHv17/Yv1YN6e7t8=",
"dev": true
},
"yargs": {
"version": "15.4.1",
"resolved": "https://registry.npm.taobao.org/yargs/download/yargs-15.4.1.tgz?cache=0&sync_timestamp=1616790495164&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-15.4.1.tgz",
"resolved": "https://registry.npm.taobao.org/yargs/download/yargs-15.4.1.tgz?cache=0&sync_timestamp=1618115316688&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-15.4.1.tgz",
"integrity": "sha1-DYehbeAa7p2L7Cv7909nhRcw9Pg=",
"dev": true,
"requires": {
@@ -3247,7 +3247,7 @@
},
"@rollup/plugin-json": {
"version": "4.1.0",
"resolved": "https://registry.npm.taobao.org/@rollup/plugin-json/download/@rollup/plugin-json-4.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40rollup%2Fplugin-json%2Fdownload%2F%40rollup%2Fplugin-json-4.1.0.tgz",
"resolved": "https://registry.npm.taobao.org/@rollup/plugin-json/download/@rollup/plugin-json-4.1.0.tgz",
"integrity": "sha1-VOCYZ65pY8WThE2L16nHGClElvM=",
"dev": true,
"requires": {
@@ -3256,7 +3256,7 @@
},
"@rollup/plugin-node-resolve": {
"version": "7.1.3",
"resolved": "https://registry.npm.taobao.org/@rollup/plugin-node-resolve/download/@rollup/plugin-node-resolve-7.1.3.tgz?cache=0&sync_timestamp=1603765888985&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40rollup%2Fplugin-node-resolve%2Fdownload%2F%40rollup%2Fplugin-node-resolve-7.1.3.tgz",
"resolved": "https://registry.npm.taobao.org/@rollup/plugin-node-resolve/download/@rollup/plugin-node-resolve-7.1.3.tgz",
"integrity": "sha1-gN44Tt+9e/yRARZJEPhgeBUaPso=",
"dev": true,
"requires": {
@@ -3439,7 +3439,7 @@
},
"@types/resolve": {
"version": "0.0.8",
"resolved": "https://registry.npm.taobao.org/@types/resolve/download/@types/resolve-0.0.8.tgz?cache=0&sync_timestamp=1596840738717&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fresolve%2Fdownload%2F%40types%2Fresolve-0.0.8.tgz",
"resolved": "https://registry.npm.taobao.org/@types/resolve/download/@types/resolve-0.0.8.tgz?cache=0&sync_timestamp=1613671200787&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fresolve%2Fdownload%2F%40types%2Fresolve-0.0.8.tgz",
"integrity": "sha1-8mB00jjgJlnjI84aE9BB7uKA4ZQ=",
"dev": true,
"requires": {
@@ -5909,7 +5909,7 @@
},
"estree-walker": {
"version": "1.0.1",
"resolved": "https://registry.npm.taobao.org/estree-walker/download/estree-walker-1.0.1.tgz",
"resolved": "https://registry.npm.taobao.org/estree-walker/download/estree-walker-1.0.1.tgz?cache=0&sync_timestamp=1611956983677&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Festree-walker%2Fdownload%2Festree-walker-1.0.1.tgz",
"integrity": "sha1-MbxdYSyWtwQQa0d+bdXYqhOMtwA=",
"dev": true
},
@@ -6389,7 +6389,7 @@
},
"find-up": {
"version": "3.0.0",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-3.0.0.tgz?cache=0&sync_timestamp=1597169872380&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-3.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-3.0.0.tgz",
"integrity": "sha1-SRafHXmTQwZG2mHsxa41XCHJe3M=",
"dev": true,
"requires": {
@@ -11673,7 +11673,7 @@
},
"magic-string": {
"version": "0.25.7",
"resolved": "https://registry.npm.taobao.org/magic-string/download/magic-string-0.25.7.tgz?cache=0&sync_timestamp=1583500518436&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmagic-string%2Fdownload%2Fmagic-string-0.25.7.tgz",
"resolved": "https://registry.npm.taobao.org/magic-string/download/magic-string-0.25.7.tgz",
"integrity": "sha1-P0l9b9NMZpxnmNy4IfLvMfVEUFE=",
"dev": true,
"requires": {
@@ -12383,7 +12383,7 @@
},
"open": {
"version": "7.4.2",
"resolved": "https://registry.npm.taobao.org/open/download/open-7.4.2.tgz?cache=0&sync_timestamp=1614759218873&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fopen%2Fdownload%2Fopen-7.4.2.tgz",
"resolved": "https://registry.npm.taobao.org/open/download/open-7.4.2.tgz",
"integrity": "sha1-uBR+Jtzz5CYxbHMAif1x7dKcIyE=",
"dev": true,
"optional": true,
@@ -13345,7 +13345,7 @@
},
"rollup": {
"version": "2.26.6",
"resolved": "https://registry.npm.taobao.org/rollup/download/rollup-2.26.6.tgz",
"resolved": "https://registry.npm.taobao.org/rollup/download/rollup-2.26.6.tgz?cache=0&sync_timestamp=1618031342579&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frollup%2Fdownload%2Frollup-2.26.6.tgz",
"integrity": "sha1-C0YMHaIkxq8SoelIooxROqEfK5M=",
"dev": true,
"requires": {
@@ -13412,7 +13412,7 @@
},
"rollup-plugin-visualizer": {
"version": "4.2.2",
"resolved": "https://registry.npm.taobao.org/rollup-plugin-visualizer/download/rollup-plugin-visualizer-4.2.2.tgz?cache=0&sync_timestamp=1617262822404&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frollup-plugin-visualizer%2Fdownload%2Frollup-plugin-visualizer-4.2.2.tgz",
"resolved": "https://registry.npm.taobao.org/rollup-plugin-visualizer/download/rollup-plugin-visualizer-4.2.2.tgz?cache=0&sync_timestamp=1618131517002&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frollup-plugin-visualizer%2Fdownload%2Frollup-plugin-visualizer-4.2.2.tgz",
"integrity": "sha1-7euLP8b0mzyV9sxmj066V8YRIJk=",
"dev": true,
"optional": true,
@@ -13425,14 +13425,14 @@
"dependencies": {
"ansi-regex": {
"version": "5.0.0",
"resolved": "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-5.0.0.tgz?cache=0&sync_timestamp=1570188663907&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-5.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-5.0.0.tgz",
"integrity": "sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U=",
"dev": true,
"optional": true
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1601839226460&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz",
"resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-4.3.0.tgz",
"integrity": "sha1-7dgDYornHATIWuegkG7a00tkiTc=",
"dev": true,
"optional": true,
@@ -13471,7 +13471,7 @@
},
"emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npm.taobao.org/emoji-regex/download/emoji-regex-8.0.0.tgz?cache=0&sync_timestamp=1603212180491&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Femoji-regex%2Fdownload%2Femoji-regex-8.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/emoji-regex/download/emoji-regex-8.0.0.tgz?cache=0&sync_timestamp=1614682725186&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Femoji-regex%2Fdownload%2Femoji-regex-8.0.0.tgz",
"integrity": "sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc=",
"dev": true,
"optional": true
@@ -13492,7 +13492,7 @@
},
"source-map": {
"version": "0.7.3",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.7.3.tgz?cache=0&sync_timestamp=1571657176668&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.7.3.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.7.3.tgz",
"integrity": "sha1-UwL4FpAxc1ImVECS5kmB91F1A4M=",
"dev": true,
"optional": true
@@ -13511,7 +13511,7 @@
},
"strip-ansi": {
"version": "6.0.0",
"resolved": "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-6.0.0.tgz?cache=0&sync_timestamp=1573280518303&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-6.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-6.0.0.tgz",
"integrity": "sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI=",
"dev": true,
"optional": true,
@@ -13532,15 +13532,15 @@
}
},
"y18n": {
"version": "5.0.5",
"resolved": "https://registry.npm.taobao.org/y18n/download/y18n-5.0.5.tgz?cache=0&sync_timestamp=1603639294538&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fy18n%2Fdownload%2Fy18n-5.0.5.tgz",
"integrity": "sha1-h2nsCNA7HqLfJQCs71YXQ7u5qxg=",
"version": "5.0.8",
"resolved": "https://registry.npm.taobao.org/y18n/download/y18n-5.0.8.tgz",
"integrity": "sha1-f0k00PfKjFb5UxSTndzS3ZHOHVU=",
"dev": true,
"optional": true
},
"yargs": {
"version": "16.2.0",
"resolved": "https://registry.npm.taobao.org/yargs/download/yargs-16.2.0.tgz?cache=0&sync_timestamp=1607207963779&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-16.2.0.tgz",
"resolved": "https://registry.npm.taobao.org/yargs/download/yargs-16.2.0.tgz?cache=0&sync_timestamp=1618115316688&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-16.2.0.tgz",
"integrity": "sha1-HIK/D2tqZur85+8w43b0mhJHf2Y=",
"dev": true,
"optional": true,
@@ -13660,7 +13660,7 @@
},
"serialize-javascript": {
"version": "4.0.0",
"resolved": "https://registry.npm.taobao.org/serialize-javascript/download/serialize-javascript-4.0.0.tgz?cache=0&sync_timestamp=1599740689479&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fserialize-javascript%2Fdownload%2Fserialize-javascript-4.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/serialize-javascript/download/serialize-javascript-4.0.0.tgz?cache=0&sync_timestamp=1599740650381&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fserialize-javascript%2Fdownload%2Fserialize-javascript-4.0.0.tgz",
"integrity": "sha1-tSXhI4SJpez8Qq+sw/6Z5mb0sao=",
"dev": true,
"requires": {
@@ -14473,9 +14473,9 @@
"dev": true
},
"tfig": {
"version": "3.0.1",
"resolved": "https://registry.npm.taobao.org/tfig/download/tfig-3.0.1.tgz",
"integrity": "sha1-hUuFbZho/kXlmYDvO5nUcI7rxFg=",
"version": "3.1.0",
"resolved": "https://registry.npm.taobao.org/tfig/download/tfig-3.1.0.tgz",
"integrity": "sha1-p1GkaJr1G1bC5/AsGdzlFBDvUq4=",
"dev": true,
"requires": {
"fs-extra": "^7.0.1",
@@ -14550,14 +14550,14 @@
}
},
"y18n": {
"version": "4.0.1",
"resolved": "https://registry.npm.taobao.org/y18n/download/y18n-4.0.1.tgz?cache=0&sync_timestamp=1609798736426&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fy18n%2Fdownload%2Fy18n-4.0.1.tgz",
"integrity": "sha1-jbK4PDHF11CZu4kLI/MJSJHiR9Q=",
"version": "4.0.3",
"resolved": "https://registry.npm.taobao.org/y18n/download/y18n-4.0.3.tgz",
"integrity": "sha1-tfJZyCzW4zaSHv17/Yv1YN6e7t8=",
"dev": true
},
"yargs": {
"version": "13.3.2",
"resolved": "https://registry.npm.taobao.org/yargs/download/yargs-13.3.2.tgz?cache=0&sync_timestamp=1616790495164&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-13.3.2.tgz",
"resolved": "https://registry.npm.taobao.org/yargs/download/yargs-13.3.2.tgz?cache=0&sync_timestamp=1618115316688&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-13.3.2.tgz",
"integrity": "sha1-rX/+/sGqWVZayRX4Lcyzipwxot0=",
"dev": true,
"requires": {
+1 -1
View File
@@ -26,7 +26,7 @@
"@babel/core": "^7.13.10",
"@babel/preset-env": "7.8.7",
"@cocos/babel-preset-cc": "2.2.0",
"@cocos/build-engine": "4.2.2",
"@cocos/build-engine": "4.2.3",
"@cocos/typedoc-plugin-internal-external": "^1.0.1",
"@cocos/typedoc-plugin-localization": "^1.0.0",
"@types/fs-extra": "^5.0.4",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@cocos/build-engine",
"version": "4.2.2",
"version": "4.2.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@cocos/build-engine",
"version": "4.2.2",
"version": "4.2.3",
"description": "",
"repository": {
"type": "git",
+4 -1
View File
@@ -412,7 +412,10 @@ async function doBuild ({
sourceMap: false,
}),
rpBabel(babelOptions),
rpBabel({
skipPreflightCheck: true,
...babelOptions,
}),
);
if (options.progress) {