Skip to content

Commit f5eb5ac

Browse files
committedJul 27, 2024··
fix(plugin-vue): clear script cache if recall
closes #431
1 parent 9c2069f commit f5eb5ac

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎packages/plugin-vue/src/index.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ export interface Api {
158158
}
159159

160160
export default function vuePlugin(rawOptions: Options = {}): Plugin<Api> {
161+
clearScriptCache()
162+
161163
const options = shallowRef<ResolvedOptions>({
162164
isProduction: process.env.NODE_ENV === 'production',
163165
compiler: null as any, // to be set in buildStart
@@ -361,8 +363,5 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin<Api> {
361363
}
362364
}
363365
},
364-
buildEnd() {
365-
clearScriptCache()
366-
},
367366
}
368367
}

0 commit comments

Comments
 (0)