Skip to content

Commit

Permalink
chore: bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 22, 2021
1 parent 73f8cae commit 84b24a7
Show file tree
Hide file tree
Showing 7 changed files with 793 additions and 1,148 deletions.
3 changes: 2 additions & 1 deletion jest.config.js
Expand Up @@ -16,7 +16,8 @@ module.exports = {
__COMPAT__: true,
'ts-jest': {
tsconfig: {
target: 'esnext'
target: 'esnext',
sourceMap: true
}
}
},
Expand Down
6 changes: 3 additions & 3 deletions packages/compiler-core/package.json
Expand Up @@ -33,9 +33,9 @@
"homepage": "https://github.com/vuejs/vue-next/tree/master/packages/compiler-core#readme",
"dependencies": {
"@vue/shared": "3.2.4",
"@babel/parser": "^7.12.0",
"@babel/types": "^7.12.0",
"estree-walker": "^2.0.1",
"@babel/parser": "^7.15.0",
"@babel/types": "^7.15.0",
"estree-walker": "^2.0.2",
"source-map": "^0.6.1"
}
}
2 changes: 1 addition & 1 deletion packages/compiler-core/src/babelUtils.ts
@@ -1,7 +1,7 @@
import {
isReferenced,
Identifier,
Node,
isReferenced,
Function,
ObjectProperty
} from '@babel/types'
Expand Down
6 changes: 3 additions & 3 deletions packages/compiler-sfc/package.json
Expand Up @@ -31,15 +31,15 @@
},
"homepage": "https://github.com/vuejs/vue-next/tree/master/packages/compiler-sfc#readme",
"dependencies": {
"@babel/parser": "^7.13.9",
"@babel/types": "^7.13.0",
"@babel/parser": "^7.15.0",
"@babel/types": "^7.15.0",
"@types/estree": "^0.0.48",
"@vue/compiler-core": "3.2.4",
"@vue/compiler-dom": "3.2.4",
"@vue/compiler-ssr": "3.2.4",
"@vue/shared": "3.2.4",
"consolidate": "^0.16.0",
"estree-walker": "^2.0.1",
"estree-walker": "^2.0.2",
"hash-sum": "^2.0.0",
"lru-cache": "^5.1.1",
"magic-string": "^0.25.7",
Expand Down
9 changes: 7 additions & 2 deletions packages/compiler-sfc/src/compileScript.ts
Expand Up @@ -1752,10 +1752,15 @@ function extractEventNames(
) {
const typeNode = eventName.typeAnnotation.typeAnnotation
if (typeNode.type === 'TSLiteralType') {
emits.add(String(typeNode.literal.value))
if (typeNode.literal.type !== 'UnaryExpression') {
emits.add(String(typeNode.literal.value))
}
} else if (typeNode.type === 'TSUnionType') {
for (const t of typeNode.types) {
if (t.type === 'TSLiteralType') {
if (
t.type === 'TSLiteralType' &&
t.literal.type !== 'UnaryExpression'
) {
emits.add(String(t.literal.value))
}
}
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Expand Up @@ -81,7 +81,7 @@ function createConfig(format, output, plugins = []) {
process.exit(1)
}

output.exports = 'auto'
output.exports = 'named'
output.sourcemap = !!process.env.SOURCE_MAP
output.externalLiveBindings = false

Expand Down
1,913 changes: 776 additions & 1,137 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 84b24a7

Please sign in to comment.