diff --git a/src/jit/lib/setupContextUtils.js b/src/jit/lib/setupContextUtils.js index ec8af952c255..8a41d0b3c1d6 100644 --- a/src/jit/lib/setupContextUtils.js +++ b/src/jit/lib/setupContextUtils.js @@ -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) }