From 8cd60171e0be4e65b2edab906987473072f74f70 Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Wed, 26 May 2021 18:20:29 +0100 Subject: [PATCH] always populate the file modified map --- src/jit/lib/setupContextUtils.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/jit/lib/setupContextUtils.js b/src/jit/lib/setupContextUtils.js index 2506d37ad..60a1899e2 100644 --- a/src/jit/lib/setupContextUtils.js +++ b/src/jit/lib/setupContextUtils.js @@ -478,9 +478,8 @@ 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) @@ -582,10 +581,7 @@ export function getContext( stylesheetCache: null, // Hit } - if (!existingContext) { - // If we didn't have an existing modified map then populate it now. - trackModified([...contextDependencies], context) - } + trackModified([...contextDependencies], context) // ---