Skip to content

Commit f97c4d4

Browse files
chore(deps): update compiler to ^7.28.0 (#13575)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: edison <[email protected]>
1 parent a0bd1f5 commit f97c4d4

File tree

3 files changed

+32
-31
lines changed

3 files changed

+32
-31
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import type {
1818
Declaration,
1919
ExportSpecifier,
2020
Identifier,
21+
LVal,
2122
Node,
2223
ObjectPattern,
2324
Statement,
@@ -540,18 +541,18 @@ export function compileScript(
540541
}
541542

542543
// defineProps
543-
const isDefineProps = processDefineProps(ctx, init, decl.id)
544+
const isDefineProps = processDefineProps(ctx, init, decl.id as LVal)
544545
if (ctx.propsDestructureRestId) {
545546
setupBindings[ctx.propsDestructureRestId] =
546547
BindingTypes.SETUP_REACTIVE_CONST
547548
}
548549

549550
// defineEmits
550551
const isDefineEmits =
551-
!isDefineProps && processDefineEmits(ctx, init, decl.id)
552+
!isDefineProps && processDefineEmits(ctx, init, decl.id as LVal)
552553
!isDefineEmits &&
553-
(processDefineSlots(ctx, init, decl.id) ||
554-
processDefineModel(ctx, init, decl.id))
554+
(processDefineSlots(ctx, init, decl.id as LVal) ||
555+
processDefineModel(ctx, init, decl.id as LVal))
555556

556557
if (
557558
isDefineProps &&

pnpm-lock.yaml

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ packages:
33
- 'packages-private/*'
44

55
catalog:
6-
'@babel/parser': ^7.27.5
7-
'@babel/types': ^7.27.6
6+
'@babel/parser': ^7.28.0
7+
'@babel/types': ^7.28.0
88
'estree-walker': ^2.0.2
99
'magic-string': ^0.30.17
1010
'source-map-js': ^1.2.1

0 commit comments

Comments
 (0)