File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
packages/@tailwindcss-vite/src Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,15 @@ export default function tailwindcss(): Plugin[] {
419
419
// by vite:css-post.
420
420
async renderStart ( ) {
421
421
for ( let [ id , root ] of roots . entries ( ) ) {
422
- let generated = await regenerateOptimizedCss ( root , ( file ) => this . addWatchFile ( file ) )
422
+ let generated = await regenerateOptimizedCss (
423
+ root ,
424
+ // During the renderStart phase, we can not add watch files since
425
+ // those would not be causing a refresh of the right CSS file. This
426
+ // should not be an issue since we did already process the CSS file
427
+ // before and the dependencies should not be changed (only the
428
+ // candidate list might have)
429
+ ( ) => { } ,
430
+ )
423
431
if ( ! generated ) {
424
432
roots . delete ( id )
425
433
continue
You can’t perform that action at this time.
0 commit comments