make sure to populate the file modified map
This commit is contained in:
parent
342a52fccc
commit
e119fc9745
1 changed files with 8 additions and 2 deletions
|
|
@ -478,8 +478,9 @@ export function getContext(
|
|||
getTailwindConfig
|
||||
) {
|
||||
let sourcePath = result.opts.from
|
||||
let [tailwindConfig, userConfigPath, tailwindConfigHash, configDependencies] =
|
||||
getTailwindConfig(configOrPath)
|
||||
let [tailwindConfig, userConfigPath, tailwindConfigHash, configDependencies] = getTailwindConfig(
|
||||
configOrPath
|
||||
)
|
||||
let isConfigFile = userConfigPath !== null
|
||||
|
||||
let contextDependencies = new Set(configDependencies)
|
||||
|
|
@ -581,6 +582,11 @@ 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…
Add table
Add a link
Reference in a new issue