Skip to content

Commit 84b24a7

Browse files
committed
chore: bump deps
1 parent 73f8cae commit 84b24a7

File tree

7 files changed

+793
-1148
lines changed

7 files changed

+793
-1148
lines changed

jest.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ module.exports = {
1616
__COMPAT__: true,
1717
'ts-jest': {
1818
tsconfig: {
19-
target: 'esnext'
19+
target: 'esnext',
20+
sourceMap: true
2021
}
2122
}
2223
},

packages/compiler-core/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
"homepage": "https://github.com/vuejs/vue-next/tree/master/packages/compiler-core#readme",
3434
"dependencies": {
3535
"@vue/shared": "3.2.4",
36-
"@babel/parser": "^7.12.0",
37-
"@babel/types": "^7.12.0",
38-
"estree-walker": "^2.0.1",
36+
"@babel/parser": "^7.15.0",
37+
"@babel/types": "^7.15.0",
38+
"estree-walker": "^2.0.2",
3939
"source-map": "^0.6.1"
4040
}
4141
}

packages/compiler-core/src/babelUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
2+
isReferenced,
23
Identifier,
34
Node,
4-
isReferenced,
55
Function,
66
ObjectProperty
77
} from '@babel/types'

packages/compiler-sfc/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
},
3232
"homepage": "https://github.com/vuejs/vue-next/tree/master/packages/compiler-sfc#readme",
3333
"dependencies": {
34-
"@babel/parser": "^7.13.9",
35-
"@babel/types": "^7.13.0",
34+
"@babel/parser": "^7.15.0",
35+
"@babel/types": "^7.15.0",
3636
"@types/estree": "^0.0.48",
3737
"@vue/compiler-core": "3.2.4",
3838
"@vue/compiler-dom": "3.2.4",
3939
"@vue/compiler-ssr": "3.2.4",
4040
"@vue/shared": "3.2.4",
4141
"consolidate": "^0.16.0",
42-
"estree-walker": "^2.0.1",
42+
"estree-walker": "^2.0.2",
4343
"hash-sum": "^2.0.0",
4444
"lru-cache": "^5.1.1",
4545
"magic-string": "^0.25.7",

packages/compiler-sfc/src/compileScript.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -1752,10 +1752,15 @@ function extractEventNames(
17521752
) {
17531753
const typeNode = eventName.typeAnnotation.typeAnnotation
17541754
if (typeNode.type === 'TSLiteralType') {
1755-
emits.add(String(typeNode.literal.value))
1755+
if (typeNode.literal.type !== 'UnaryExpression') {
1756+
emits.add(String(typeNode.literal.value))
1757+
}
17561758
} else if (typeNode.type === 'TSUnionType') {
17571759
for (const t of typeNode.types) {
1758-
if (t.type === 'TSLiteralType') {
1760+
if (
1761+
t.type === 'TSLiteralType' &&
1762+
t.literal.type !== 'UnaryExpression'
1763+
) {
17591764
emits.add(String(t.literal.value))
17601765
}
17611766
}

rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function createConfig(format, output, plugins = []) {
8181
process.exit(1)
8282
}
8383

84-
output.exports = 'auto'
84+
output.exports = 'named'
8585
output.sourcemap = !!process.env.SOURCE_MAP
8686
output.externalLiveBindings = false
8787

yarn.lock

+776-1,137
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)