Skip to content

Commit

Permalink
fix(vite): extract timing, close #1145
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 24, 2022
1 parent 979b693 commit 456ea0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/modes/global/dev.ts
Expand Up @@ -92,14 +92,14 @@ export function GlobalModeDevPlugin({ uno, tokens, onInvalidate, extract, filter
},
transform(code, id) {
if (filter(code, id))
extract(code, id)
tasks.push(extract(code, id))
return null
},
transformIndexHtml: {
enforce: 'pre',
transform(code, { filename }) {
setWarnTimer()
extract(code, filename)
tasks.push(extract(code, filename))
},
},
resolveId(id) {
Expand Down

0 comments on commit 456ea0a

Please sign in to comment.