Skip to content

Commit

Permalink
perf: remove dead code, unocss/unocss#1617 supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Oct 30, 2022
1 parent 31ede18 commit fcaf2a9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/index.ts
Expand Up @@ -105,7 +105,6 @@ export const presetTheme = <T extends {}>(options: PresetTheme<T>): Preset<T> =>
{
layer: 'theme',
async getCSS(context) {
await context.generator.generate('', { preflights: false })
const { css } = (await context.generator.generate(keys.map(key => `${['dark', 'light'].includes(key) ? `${key}:` : ''}${PRESET_THEME_RULE}:${key}:${Date.now()}`), {
preflights: false,
}))
Expand Down

1 comment on commit fcaf2a9

@vercel
Copy link

@vercel vercel bot commented on fcaf2a9 Oct 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checks for Deployment have failed

Please sign in to comment.