mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Don't reuse fileModifiedMap from existing context
This causes changes in template files to be ignored on the second build.
This commit is contained in:
parent
55653ba004
commit
342a52fccc
@ -565,8 +565,7 @@ export function getContext(
|
||||
)
|
||||
)
|
||||
),
|
||||
// Carry over the existing modified map if we have one.
|
||||
fileModifiedMap: new Map(existingContext ? existingContext.fileModifiedMap : undefined),
|
||||
fileModifiedMap: new Map(),
|
||||
// ---
|
||||
ruleCache: new Set(), // Hit
|
||||
classCache: new Map(), // Hit
|
||||
@ -582,11 +581,6 @@ export function getContext(
|
||||
stylesheetCache: null, // Hit
|
||||
}
|
||||
|
||||
if (!existingContext) {
|
||||
// If we didn't have an existing modified map then populate it now.
|
||||
trackModified([...contextDependencies], context)
|
||||
}
|
||||
|
||||
// ---
|
||||
|
||||
// Update all context tracking state
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user