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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|
} |
|
|
|
|
|
|
|