From: Haoqun Jiang Date: Mon, 8 May 2023 07:27:28 +0000 (+0800) Subject: fix(compiler-sfc): transform destructured props when reactivity transform option... X-Git-Tag: v3.3.0-beta.5~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=287bd999942e58925377f50540c7134cff2a9279;p=thirdparty%2Fvuejs%2Fcore.git fix(compiler-sfc): transform destructured props when reactivity transform option is enabled (#8252) fixup https://github.com/vuejs/core/commit/862edfd91a2c2f6b75f943cb1a9682c4be5d7fa8 --- diff --git a/packages/compiler-sfc/src/script/definePropsDestructure.ts b/packages/compiler-sfc/src/script/definePropsDestructure.ts index 3d2c3d3844..87a58d9fab 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 }