File tree 1 file changed +1
-7
lines changed
packages/@tailwindcss-vite/src 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ class Root {
373
373
let inputPath = idToPath ( this . id )
374
374
let inputBase = path . dirname ( path . resolve ( inputPath ) )
375
375
376
- if ( this . compiler === null || this . scanner === null || this . rebuildStrategy === 'full' ) {
376
+ if ( ! this . compiler || ! this . scanner || this . rebuildStrategy === 'full' ) {
377
377
this . rebuildStrategy = 'incremental'
378
378
clearRequireCache ( Array . from ( this . dependencies ) )
379
379
this . dependencies = new Set ( [ idToPath ( inputPath ) ] )
@@ -417,12 +417,6 @@ class Root {
417
417
} )
418
418
}
419
419
420
- if ( ! this . scanner || ! this . compiler ) {
421
- // TypeScript does not properly refine the scanner and compiler properties
422
- // (even when extracted into a variable)
423
- throw new Error ( 'Tailwind CSS compiler is not initialized.' )
424
- }
425
-
426
420
// This should not be here, but right now the Vite plugin is setup where we
427
421
// setup a new scanner and compiler every time we request the CSS file
428
422
// (regardless whether it actually changed or not).
You can’t perform that action at this time.
0 commit comments