mirror of https://github.com/vuejs/core.git
fix(compiler-sfc): normalize filename when invalidating cache
This commit is contained in:
parent
72be89423d
commit
9b5a34bf8c
|
@ -744,6 +744,7 @@ const fileToScopeCache = createCache<TypeScope>()
|
|||
* @private
|
||||
*/
|
||||
export function invalidateTypeCache(filename: string) {
|
||||
filename = normalizePath(filename)
|
||||
fileToScopeCache.delete(filename)
|
||||
tsConfigCache.delete(filename)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue