Skip to content

Commit e8cc64b

Browse files
committed
fix: invalidate type cache on file removal
1 parent 334004b commit e8cc64b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/plugin-vue/src/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
162162

163163
configureServer(server) {
164164
options.devServer = server
165+
if (options.compiler.invalidateTypeCache) {
166+
server.watcher.on('unlink', (file) => {
167+
options.compiler.invalidateTypeCache(file)
168+
})
169+
}
165170
},
166171

167172
buildStart() {

0 commit comments

Comments
 (0)