Skip to content

Commit

Permalink
revert the Set to an array again
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Oct 1, 2024
1 parent c38688c commit aea94a6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/@tailwindcss-postcss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,11 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin {
})
}

let files = new Set(
result.messages.flatMap((message) => {
if (message.type !== 'dependency') return []
return message.file
}),
)
files.add(inputFile)
let files = result.messages.flatMap((message) => {
if (message.type !== 'dependency') return []
return message.file
})
files.push(inputFile)

for (let file of files) {
let changedTime = fs.statSync(file, { throwIfNoEntry: false })?.mtimeMs ?? null
Expand Down

0 comments on commit aea94a6

Please sign in to comment.