Skip to content

Commit 862edfd

Browse files
committed
fix(compiler-sfc): enable props destructure when reactivity transform option is enabled
...to retain backwards compatible behavior before removal
1 parent cc09cc7 commit 862edfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function processPropsDestructure(
2727
ctx: ScriptCompileContext,
2828
declId: ObjectPattern
2929
) {
30-
if (!ctx.options.propsDestructure) {
30+
if (!ctx.options.propsDestructure && !ctx.options.reactivityTransform) {
3131
return
3232
}
3333

0 commit comments

Comments
 (0)