Skip to content

Commit

Permalink
fix:duplicate request "hot updated: /__uno.css"
Browse files Browse the repository at this point in the history
  • Loading branch information
LeekJay committed Jan 13, 2024
1 parent c6f7b74 commit 9d33368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function genComponentPreset(option: ComponentOption): ComponentPreset {
if (!candidates.length) {
preflights.push({
getCSS: () =>
(parents.length ? `${parents.reverse().map(([name, params]) => `@${name} ${(params)}`).join('{')}{` : '')
(parents.length ? `${Array.from(parents).reverse().map(([name, params]) => `@${name} ${(params)}`).join('{')}{` : '')
+ (selector ? `${selector}{` : '')
+ entriesToCss(cssbody)
+ (selector ? '}' : '')
Expand Down

0 comments on commit 9d33368

Please sign in to comment.