fix: Don't attempt to read from deleted CSS files (#765)

master
Mark Skelton 2023-04-24 08:26:52 -05:00 committed by GitHub
parent 6fa8861efd
commit c5d20ab343
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1845,7 +1845,7 @@ class TW {
let isCssFile = minimatch(normalizedFilename, `**/${CSS_GLOB}`, { let isCssFile = minimatch(normalizedFilename, `**/${CSS_GLOB}`, {
dot: true, dot: true,
}) })
if (isCssFile) { if (isCssFile && change.type !== FileChangeType.Deleted) {
let configPath = await getConfigFileFromCssFile(change.file) let configPath = await getConfigFileFromCssFile(change.file)
if ( if (
cssFileConfigMap.has(normalizedFilename) && cssFileConfigMap.has(normalizedFilename) &&