@@ -192,9 +192,10 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin {
192
192
context . compiler = createCompiler ( )
193
193
}
194
194
195
+ let compiler = await context . compiler
196
+
195
197
if ( context . scanner === null || rebuildStrategy === 'full' ) {
196
198
DEBUG && I . start ( 'Setup scanner' )
197
- let compiler = await context . compiler
198
199
let sources = ( ( ) => {
199
200
// Disable auto source detection
200
201
if ( compiler . root === 'none' ) {
@@ -216,11 +217,10 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin {
216
217
}
217
218
218
219
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 ( ) : [ ]
221
221
DEBUG && I . end ( 'Scan for candidates' )
222
222
223
- if ( ( await context . compiler ) . features & Features . Utilities ) {
223
+ if ( compiler . features & Features . Utilities ) {
224
224
DEBUG && I . start ( 'Register dependency messages' )
225
225
// Add all found files as direct dependencies
226
226
for ( let file of context . scanner . files ) {
@@ -269,7 +269,7 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin {
269
269
}
270
270
271
271
DEBUG && I . start ( 'Build utilities' )
272
- let tailwindCssAst = ( await context . compiler ) . build ( candidates )
272
+ let tailwindCssAst = compiler . build ( candidates )
273
273
DEBUG && I . end ( 'Build utilities' )
274
274
275
275
if ( context . tailwindCssAst !== tailwindCssAst ) {
0 commit comments