Skip to content

Commit 287bd99

Browse files
authored
fix(compiler-sfc): transform destructured props when reactivity transform option is enabled (#8252)
fixup 862edfd
1 parent 4495373 commit 287bd99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-sfc/src/script/definePropsDestructure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export function transformDestructuredProps(
103103
ctx: ScriptCompileContext,
104104
vueImportAliases: Record<string, string>
105105
) {
106-
if (!ctx.options.propsDestructure) {
106+
if (!ctx.options.propsDestructure && !ctx.options.reactivityTransform) {
107107
return
108108
}
109109

0 commit comments

Comments
 (0)