Skip to content

Commit

Permalink
fix(compiler-sfc): normalize filename when invalidating cache
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 18, 2023
1 parent 72be894 commit 9b5a34b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/compiler-sfc/src/script/resolveType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ const fileToScopeCache = createCache<TypeScope>()
* @private
*/
export function invalidateTypeCache(filename: string) {
filename = normalizePath(filename)
fileToScopeCache.delete(filename)
tsConfigCache.delete(filename)
}
Expand Down

0 comments on commit 9b5a34b

Please sign in to comment.