Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chu121su12 committed Oct 18, 2022
1 parent e6dbc78 commit 5203ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-mini/src/preflights.ts
Expand Up @@ -8,7 +8,7 @@ export const preflights: Preflight[] = [
getCSS(ctx: PreflightContext<Theme>) {
if (ctx.theme.preflightBase) {
const css = entriesToCss(Object.entries(ctx.theme.preflightBase))
let roots = toArray(ctx.theme.preflightRoot)
let roots = toArray(ctx.theme.preflightRoot ?? [])
if (!roots.length)
roots = ['*,::before,::after', '::backdrop']

Expand Down

0 comments on commit 5203ec0

Please sign in to comment.