From f5eb5ac5c0517c6718b8b0caca965ad640161d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Sat, 27 Jul 2024 17:22:09 +0800 Subject: [PATCH] fix(plugin-vue): clear script cache if recall closes #431 --- packages/plugin-vue/src/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/plugin-vue/src/index.ts b/packages/plugin-vue/src/index.ts index 72f8944b..be233ff2 100644 --- a/packages/plugin-vue/src/index.ts +++ b/packages/plugin-vue/src/index.ts @@ -158,6 +158,8 @@ export interface Api { } export default function vuePlugin(rawOptions: Options = {}): Plugin { + clearScriptCache() + const options = shallowRef({ isProduction: process.env.NODE_ENV === 'production', compiler: null as any, // to be set in buildStart @@ -361,8 +363,5 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin { } } }, - buildEnd() { - clearScriptCache() - }, } }