File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -136,20 +136,20 @@ export function createPlugin(options: UnoPostcssPluginOptions) {
136
136
for ( let i = 0 ; i < entries . length ; i += BATCH_SIZE ) {
137
137
const batch = entries . slice ( i , i + BATCH_SIZE )
138
138
promises . push ( ...batch . map ( async ( file ) => {
139
- const { mtimeMs } = await stat ( file )
140
-
141
- if ( fileMap . has ( file ) && mtimeMs <= fileMap . get ( file ) )
142
- return
143
-
144
- fileMap . set ( file , mtimeMs )
145
-
146
139
result . messages . push ( {
147
140
type : 'dependency' ,
148
141
plugin : directiveMap . unocss ,
149
142
file : normalize ( file ) ,
150
143
parent : from ,
151
144
} )
152
145
146
+ const { mtimeMs } = await stat ( file )
147
+
148
+ if ( fileMap . has ( file ) && mtimeMs <= fileMap . get ( file ) )
149
+ return
150
+
151
+ fileMap . set ( file , mtimeMs )
152
+
153
153
const content = await readFile ( file , 'utf8' )
154
154
const { matched } = await uno . generate ( content , {
155
155
id : file ,
You can’t perform that action at this time.
0 commit comments