Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Temporarily disable waitForRequestIdle
  • Loading branch information
KrisBraun committed Mar 27, 2024
commit 48980b87d1e03605925034d3cf700876672d2ed0
6 changes: 5 additions & 1 deletion packages/@tailwindcss-vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,13 @@ export default function tailwindcss(): Plugin[] {
// In serve mode, we treat cssModules as a set, ignoring the value.
cssModules[id] = ''

// TODO: Re-enable waitForRequestsIdle once issues with it hanging are
// fixed. Until then, this transformation may run multiple times in
// serve mode, possibly giving a FOUC.
//
// Wait until all other files have been processed, so we can extract all
// candidates before generating CSS.
await server?.waitForRequestsIdle?.(id)
// await server?.waitForRequestsIdle?.(id)

let code = await transformWithPlugins(this, id, generateCss(src))
return { code }
Expand Down