Skip to content

Commit

Permalink
fix(compiler-sfc): enable props destructure when reactivity transform…
Browse files Browse the repository at this point in the history
… option is enabled

...to retain backwards compatible behavior before removal
  • Loading branch information
yyx990803 committed May 6, 2023
1 parent cc09cc7 commit 862edfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/script/definePropsDestructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function processPropsDestructure(
ctx: ScriptCompileContext,
declId: ObjectPattern
) {
if (!ctx.options.propsDestructure) {
if (!ctx.options.propsDestructure && !ctx.options.reactivityTransform) {
return
}

Expand Down

0 comments on commit 862edfd

Please sign in to comment.