Skip to content

Commit

Permalink
fix(compiler-sfc): transform destructured props when reactivity trans…
Browse files Browse the repository at this point in the history
…form option is enabled (#8252)

fixup 862edfd
  • Loading branch information
haoqunjiang authored May 8, 2023
1 parent 4495373 commit 287bd99
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 @@ -103,7 +103,7 @@ export function transformDestructuredProps(
ctx: ScriptCompileContext,
vueImportAliases: Record<string, string>
) {
if (!ctx.options.propsDestructure) {
if (!ctx.options.propsDestructure && !ctx.options.reactivityTransform) {
return
}

Expand Down

0 comments on commit 287bd99

Please sign in to comment.