Browse Source

fix(compiler-sfc): transform destructured props when reactivity transform option is enabled (#8252)

fixup 862edfd91a
pull/8259/head
Haoqun Jiang 2 years ago
committed by GitHub
parent
commit
287bd99994
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/compiler-sfc/src/script/definePropsDestructure.ts

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

@ -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
}

Loading…
Cancel
Save