@@ -192,9 +192,10 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin {
192192 context . compiler = createCompiler ( )
193193 }
194194
195+ let compiler = await context . compiler
196+
195197 if ( context . scanner === null || rebuildStrategy === 'full' ) {
196198 DEBUG && I . start ( 'Setup scanner' )
197- let compiler = await context . compiler
198199 let sources = ( ( ) => {
199200 // Disable auto source detection
200201 if ( compiler . root === 'none' ) {
@@ -216,11 +217,10 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin {
216217 }
217218
218219 DEBUG && I . start ( 'Scan for candidates' )
219- let candidates =
220- ( await context . compiler ) . features & Features . Utilities ? context . scanner . scan ( ) : [ ]
220+ let candidates = compiler . features & Features . Utilities ? context . scanner . scan ( ) : [ ]
221221 DEBUG && I . end ( 'Scan for candidates' )
222222
223- if ( ( await context . compiler ) . features & Features . Utilities ) {
223+ if ( compiler . features & Features . Utilities ) {
224224 DEBUG && I . start ( 'Register dependency messages' )
225225 // Add all found files as direct dependencies
226226 for ( let file of context . scanner . files ) {
@@ -269,7 +269,7 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin {
269269 }
270270
271271 DEBUG && I . start ( 'Build utilities' )
272- let tailwindCssAst = ( await context . compiler ) . build ( candidates )
272+ let tailwindCssAst = compiler . build ( candidates )
273273 DEBUG && I . end ( 'Build utilities' )
274274
275275 if ( context . tailwindCssAst !== tailwindCssAst ) {
0 commit comments