Skip to content

Commit dbc29c3

Browse files
committed
build(deps): bump @babel/types from 7.11.5 to 7.12.0
1 parent 3aabd59 commit dbc29c3

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"node": ">=10.0.0"
4343
},
4444
"devDependencies": {
45+
"@babel/types": "^7.12.0",
4546
"@ls-lint/ls-lint": "^1.9.2",
4647
"@microsoft/api-extractor": "^7.9.15",
4748
"@rollup/plugin-commonjs": "^15.0.0",

packages/compiler-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"homepage": "https://github.com/vuejs/vue-next/tree/master/packages/compiler-core#readme",
3333
"dependencies": {
3434
"@vue/shared": "3.0.0",
35-
"@babel/parser": "^7.11.5",
36-
"@babel/types": "^7.11.5",
35+
"@babel/parser": "^7.12.0",
36+
"@babel/types": "^7.12.0",
3737
"estree-walker": "^2.0.1",
3838
"source-map": "^0.6.1"
3939
}

packages/compiler-sfc/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"vue": "3.0.0"
3636
},
3737
"dependencies": {
38-
"@babel/parser": "^7.11.5",
39-
"@babel/types": "^7.11.5",
38+
"@babel/parser": "^7.12.0",
39+
"@babel/types": "^7.12.0",
4040
"@vue/compiler-core": "3.0.0",
4141
"@vue/compiler-dom": "3.0.0",
4242
"@vue/compiler-ssr": "3.0.0",

packages/compiler-sfc/src/compileScript.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export function compileScript(
160160
)
161161
} else if (node.type === 'ExportNamedDeclaration' && node.specifiers) {
162162
const defaultSpecifier = node.specifiers.find(
163-
s => s.exported.name === 'default'
163+
s => s.exported.type === 'Identifier' && s.exported.name === 'default'
164164
) as ExportSpecifier
165165
if (defaultSpecifier) {
166166
defaultExport = node
@@ -334,7 +334,10 @@ export function compileScript(
334334
specifier.exported.start! + startOffset + 7,
335335
defaultTempVar
336336
)
337-
} else if (specifier.type === 'ExportSpecifier') {
337+
} else if (
338+
specifier.type === 'ExportSpecifier' &&
339+
specifier.exported.type === 'Identifier'
340+
) {
338341
if (specifier.exported.name === 'default') {
339342
checkDuplicateDefaultExport(node)
340343
defaultExport = node

yarn.lock

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
chalk "^2.0.0"
218218
js-tokens "^4.0.0"
219219

220-
"@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":
220+
"@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":
221221
version "7.12.0"
222222
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.0.tgz#2ad388f3960045b22f9b7d4bf85e80b15a1c9e3a"
223223
integrity sha512-dYmySMYnlus2jwl7JnnajAj11obRStZoW9cG04wh4ZuhozDn11tDUrhHcUZ9iuNHqALAhh60XqNaYXpvuuE/Gg==
@@ -347,7 +347,7 @@
347347
globals "^11.1.0"
348348
lodash "^4.17.13"
349349

350-
"@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":
350+
"@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":
351351
version "7.11.5"
352352
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.11.5.tgz#d9de577d01252d77c6800cee039ee64faf75662d"
353353
integrity sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==
@@ -356,6 +356,15 @@
356356
lodash "^4.17.19"
357357
to-fast-properties "^2.0.0"
358358

359+
"@babel/types@^7.12.0":
360+
version "7.12.0"
361+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.0.tgz#b6b49f425ee59043fbc89c61b11a13d5eae7b5c6"
362+
integrity sha512-ggIyFmT2zMaYRheOfPDQ4gz7QqV3B+t2rjqjbttDJxMcb7/LukvWCmlIl1sWcOxrvwpTDd+z0OytzqsbGeb3/g==
363+
dependencies:
364+
"@babel/helper-validator-identifier" "^7.10.4"
365+
lodash "^4.17.19"
366+
to-fast-properties "^2.0.0"
367+
359368
"@bcoe/v8-coverage@^0.2.3":
360369
version "0.2.3"
361370
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"

0 commit comments

Comments
 (0)