Skip to content

Commit

Permalink
chore: upgrade babel
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Aug 26, 2023
1 parent 34a7f1f commit 00b2e14
Show file tree
Hide file tree
Showing 7 changed files with 111 additions and 111 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"node": ">=16.11.0"
},
"devDependencies": {
"@babel/parser": "^7.22.7",
"@babel/types": "^7.22.5",
"@babel/parser": "^7.22.11",
"@babel/types": "^7.22.11",
"@rollup/plugin-alias": "^4.0.3",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-json": "^6.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/compiler-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
},
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
"dependencies": {
"@babel/parser": "^7.22.7",
"@babel/parser": "^7.22.11",
"@vue/shared": "3.3.4",
"estree-walker": "^2.0.2",
"source-map-js": "^1.0.2"
},
"devDependencies": {
"@babel/types": "^7.22.5"
"@babel/types": "^7.22.11"
}
}
4 changes: 2 additions & 2 deletions packages/compiler-sfc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-sfc#readme",
"dependencies": {
"@babel/parser": "^7.22.7",
"@babel/parser": "^7.22.11",
"@vue/compiler-core": "3.3.4",
"@vue/compiler-dom": "3.3.4",
"@vue/compiler-ssr": "3.3.4",
Expand All @@ -44,7 +44,7 @@
"source-map-js": "^1.0.2"
},
"devDependencies": {
"@babel/types": "^7.22.5",
"@babel/types": "^7.22.11",
"@types/estree": "^0.0.48",
"@types/lru-cache": "^5.1.0",
"@vue/consolidate": "^0.17.3",
Expand Down
11 changes: 9 additions & 2 deletions packages/compiler-sfc/src/script/defineEmits.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { Identifier, LVal, Node, RestElement } from '@babel/types'
import {
ArrayPattern,
Identifier,
LVal,
Node,
ObjectPattern,
RestElement
} from '@babel/types'
import { isCallOf } from './utils'
import { ScriptCompileContext } from './context'
import { resolveTypeElements, resolveUnionType } from './resolveType'
Expand Down Expand Up @@ -91,7 +98,7 @@ function extractRuntimeEmits(ctx: ScriptCompileContext): Set<string> {

function extractEventNames(
ctx: ScriptCompileContext,
eventName: Identifier | RestElement,
eventName: Identifier | RestElement | ObjectPattern | ArrayPattern,
emits: Set<string>
) {
if (
Expand Down
6 changes: 3 additions & 3 deletions packages/reactivity-transform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
},
"homepage": "https://github.com/vuejs/core/tree/dev/packages/reactivity-transform#readme",
"dependencies": {
"@babel/parser": "^7.22.7",
"@babel/parser": "^7.22.11",
"@vue/compiler-core": "3.3.4",
"@vue/shared": "3.3.4",
"estree-walker": "^2.0.2",
"magic-string": "^0.30.0"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/types": "^7.22.5"
"@babel/core": "^7.22.11",
"@babel/types": "^7.22.11"
}
}
2 changes: 1 addition & 1 deletion packages/vue-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"homepage": "https://github.com/vuejs/core/tree/main/packages/vue-compat#readme",
"dependencies": {
"@babel/parser": "^7.22.7",
"@babel/parser": "^7.22.11",
"estree-walker": "^2.0.2",
"source-map-js": "^1.0.2"
},
Expand Down
Loading

0 comments on commit 00b2e14

Please sign in to comment.