]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
build(deps): bump @babel/types from 7.11.5 to 7.12.0
authorEvan You <yyx990803@gmail.com>
Thu, 15 Oct 2020 16:02:20 +0000 (12:02 -0400)
committerEvan You <yyx990803@gmail.com>
Thu, 15 Oct 2020 16:02:20 +0000 (12:02 -0400)
package.json
packages/compiler-core/package.json
packages/compiler-sfc/package.json
packages/compiler-sfc/src/compileScript.ts
yarn.lock

index 1f097019ba2839df31177d828def0be77f13095c..364ec7f76aa6de327d8ab37ff2c943b5b43a79ef 100644 (file)
@@ -42,6 +42,7 @@
     "node": ">=10.0.0"
   },
   "devDependencies": {
+    "@babel/types": "^7.12.0",
     "@ls-lint/ls-lint": "^1.9.2",
     "@microsoft/api-extractor": "^7.9.15",
     "@rollup/plugin-commonjs": "^15.0.0",
index 73fbc3c047fd34301b6bcebb92e6ebb6b7ca3516..1b73fc6018cc404bcabc4ec68a37609c870da086 100644 (file)
@@ -32,8 +32,8 @@
   "homepage": "https://github.com/vuejs/vue-next/tree/master/packages/compiler-core#readme",
   "dependencies": {
     "@vue/shared": "3.0.0",
-    "@babel/parser": "^7.11.5",
-    "@babel/types": "^7.11.5",
+    "@babel/parser": "^7.12.0",
+    "@babel/types": "^7.12.0",
     "estree-walker": "^2.0.1",
     "source-map": "^0.6.1"
   }
index ae351528fc506321ca95f265a8c1133be04f0b8b..6c4332508e6fb0f8a55b721038a64925811f31a2 100644 (file)
@@ -35,8 +35,8 @@
     "vue": "3.0.0"
   },
   "dependencies": {
-    "@babel/parser": "^7.11.5",
-    "@babel/types": "^7.11.5",
+    "@babel/parser": "^7.12.0",
+    "@babel/types": "^7.12.0",
     "@vue/compiler-core": "3.0.0",
     "@vue/compiler-dom": "3.0.0",
     "@vue/compiler-ssr": "3.0.0",
index a17f3babb305d9425af599170e048eed3ad44045..93cc6cc4383788b832fc3cf78856bf476051bf0a 100644 (file)
@@ -160,7 +160,7 @@ export function compileScript(
         )
       } else if (node.type === 'ExportNamedDeclaration' && node.specifiers) {
         const defaultSpecifier = node.specifiers.find(
-          s => s.exported.name === 'default'
+          s => s.exported.type === 'Identifier' && s.exported.name === 'default'
         ) as ExportSpecifier
         if (defaultSpecifier) {
           defaultExport = node
@@ -334,7 +334,10 @@ export function compileScript(
               specifier.exported.start! + startOffset + 7,
               defaultTempVar
             )
-          } else if (specifier.type === 'ExportSpecifier') {
+          } else if (
+            specifier.type === 'ExportSpecifier' &&
+            specifier.exported.type === 'Identifier'
+          ) {
             if (specifier.exported.name === 'default') {
               checkDuplicateDefaultExport(node)
               defaultExport = node
index af373ddf5bdc29e44ce3d10e75e6c3ea376f6e31..325f3bbc0a15d3089bdbd257bd120c1a3caa6ffb 100644 (file)
--- a/yarn.lock
+++ b/yarn.lock
     chalk "^2.0.0"
     js-tokens "^4.0.0"
 
-"@babel/parser@^7.1.0", "@babel/parser@^7.11.5", "@babel/parser@^7.4.4", "@babel/parser@^7.5.5", "@babel/parser@^7.7.5", "@babel/parser@^7.8.6", "@babel/parser@^7.9.0":
+"@babel/parser@^7.1.0", "@babel/parser@^7.12.0", "@babel/parser@^7.4.4", "@babel/parser@^7.5.5", "@babel/parser@^7.7.5", "@babel/parser@^7.8.6", "@babel/parser@^7.9.0":
   version "7.12.0"
   resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.0.tgz#2ad388f3960045b22f9b7d4bf85e80b15a1c9e3a"
   integrity sha512-dYmySMYnlus2jwl7JnnajAj11obRStZoW9cG04wh4ZuhozDn11tDUrhHcUZ9iuNHqALAhh60XqNaYXpvuuE/Gg==
     globals "^11.1.0"
     lodash "^4.17.13"
 
-"@babel/types@^7.0.0", "@babel/types@^7.11.5", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.5.5", "@babel/types@^7.8.3", "@babel/types@^7.8.6", "@babel/types@^7.9.0":
+"@babel/types@^7.0.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.5.5", "@babel/types@^7.8.3", "@babel/types@^7.8.6", "@babel/types@^7.9.0":
   version "7.11.5"
   resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.11.5.tgz#d9de577d01252d77c6800cee039ee64faf75662d"
   integrity sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==
     lodash "^4.17.19"
     to-fast-properties "^2.0.0"
 
+"@babel/types@^7.12.0":
+  version "7.12.0"
+  resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.0.tgz#b6b49f425ee59043fbc89c61b11a13d5eae7b5c6"
+  integrity sha512-ggIyFmT2zMaYRheOfPDQ4gz7QqV3B+t2rjqjbttDJxMcb7/LukvWCmlIl1sWcOxrvwpTDd+z0OytzqsbGeb3/g==
+  dependencies:
+    "@babel/helper-validator-identifier" "^7.10.4"
+    lodash "^4.17.19"
+    to-fast-properties "^2.0.0"
+
 "@bcoe/v8-coverage@^0.2.3":
   version "0.2.3"
   resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"