]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-sfc): transform destructured props when reactivity transform option...
authorHaoqun Jiang <haoqunjiang@gmail.com>
Mon, 8 May 2023 07:27:28 +0000 (15:27 +0800)
committerGitHub <noreply@github.com>
Mon, 8 May 2023 07:27:28 +0000 (15:27 +0800)
fixup https://github.com/vuejs/core/commit/862edfd91a2c2f6b75f943cb1a9682c4be5d7fa8

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

index 3d2c3d3844b0333e8dab6ef7595d076de3ab8092..87a58d9fabf16296bef20e9a5add73e5a3e506fa 100644 (file)
@@ -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
   }