cleanup old contexts in config hash map (#4571)
This commit is contained in:
parent
67ee5e033d
commit
f1e31682c8
1 changed files with 5 additions and 0 deletions
|
|
@ -558,6 +558,11 @@ export function getContext(
|
|||
contextSourcesMap.get(oldContext).delete(sourcePath)
|
||||
if (contextSourcesMap.get(oldContext).size === 0) {
|
||||
contextSourcesMap.delete(oldContext)
|
||||
for (let [tailwindConfigHash, context] of configContextMap) {
|
||||
if (context === oldContext) {
|
||||
configContextMap.delete(tailwindConfigHash)
|
||||
}
|
||||
}
|
||||
for (let disposable of oldContext.disposables.splice(0)) {
|
||||
disposable(oldContext)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue