8000 fix: clear script cache if recall · unplugin/unplugin-vue@a592150 · GitHub
[go: up one dir, main page]

Skip to content

Commit a592150

Browse files
committed
fix: clear script cache if recall
ref: vitejs/vite-plugin-vue@f5eb5ac
1 parent 5315a91 commit a592150

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/core/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ function resolveOptions(rawOptions: Options): ResolvedOptions {
190190

191191
export const plugin = createUnplugin<Options | undefined, false>(
192192
(rawOptions = {}, meta) => {
193+
clearScriptCache()
194+
193195
const options = shallowRef(resolveOptions(rawOptions))
194196

195197
const filter = computed(() =>
@@ -409,10 +411,6 @@ export const plugin = createUnplugin<Options | undefined, false>(
409411
}
410412
}
411413
},
412-
413-
buildEnd() {
414-
clearScriptCache()
415-
},
416414
}
417415
},
418416
)

0 commit comments

Comments
 (0)
0