From 52a60f7b9f7bb957fed2662969af38df4f14fa02 Mon Sep 17 00:00:00 2001 From: xiaoming <1923740402@qq.com> Date: Mon, 27 Nov 2023 11:45:06 +0800 Subject: [PATCH] chore[build]: add `hoistStatic: false` (#65) --- packages/vue/build/build.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/vue/build/build.ts b/packages/vue/build/build.ts index b9a3836..a6ef6e8 100644 --- a/packages/vue/build/build.ts +++ b/packages/vue/build/build.ts @@ -21,6 +21,8 @@ const buildBundle = () => { vue({ isProduction: true, sourceMap: false, + // https://github.com/vuejs/core/issues/5256#issuecomment-1173891407 + template: { compilerOptions: { hoistStatic: false } }, }), ], bundle: true,