From 287bd999942e58925377f50540c7134cff2a9279 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 8 May 2023 15:27:28 +0800 Subject: [PATCH] fix(compiler-sfc): transform destructured props when reactivity transform option is enabled (#8252) fixup https://github.com/vuejs/core/commit/862edfd91a2c2f6b75f943cb1a9682c4be5d7fa8 --- packages/compiler-sfc/src/script/definePropsDestructure.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-sfc/src/script/definePropsDestructure.ts b/packages/compiler-sfc/src/script/definePropsDestructure.ts index 3d2c3d3844b..87a58d9fabf 100644 --- a/packages/compiler-sfc/src/script/definePropsDestructure.ts +++ b/packages/compiler-sfc/src/script/definePropsDestructure.ts @@ -103,7 +103,7 @@ export function transformDestructuredProps( ctx: ScriptCompileContext, vueImportAliases: Record ) { - if (!ctx.options.propsDestructure) { + if (!ctx.options.propsDestructure && !ctx.options.reactivityTransform) { return }