Skip to content

Commit

Permalink
fix(plugin-vue): clear script cache if recall
Browse files Browse the repository at this point in the history
closes #431
  • Loading branch information
sxzz committed Jul 27, 2024
1 parent 9c2069f commit f5eb5ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/plugin-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ export interface Api {
}

export default function vuePlugin(rawOptions: Options = {}): Plugin<Api> {
clearScriptCache()

const options = shallowRef<ResolvedOptions>({
isProduction: process.env.NODE_ENV === 'production',
compiler: null as any, // to be set in buildStart
Expand Down Expand Up @@ -361,8 +363,5 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin<Api> {
}
}
},
buildEnd() {
clearScriptCache()
},
}
}

0 comments on commit f5eb5ac

Please sign in to comment.