Skip to content

Commit

Permalink
fix: clear script cache if recall
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Aug 24, 2024
1 parent 5315a91 commit a592150
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ function resolveOptions(rawOptions: Options): ResolvedOptions {

export const plugin = createUnplugin<Options | undefined, false>(
(rawOptions = {}, meta) => {
clearScriptCache()

const options = shallowRef(resolveOptions(rawOptions))

const filter = computed(() =>
Expand Down Expand Up @@ -409,10 +411,6 @@ export const plugin = createUnplugin<Options | undefined, false>(
}
}
},

buildEnd() {
clearScriptCache()
},
}
},
)

0 comments on commit a592150

Please sign in to comment.