make sure to populate the file modified map

This commit is contained in:
Robin Malfait 2021-05-26 18:20:31 +02:00
parent 342a52fccc
commit e119fc9745
No known key found for this signature in database
GPG key ID: 92F53D68B9041AFE

View file

@ -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