Skip to content

Commit

Permalink
Simplify style data (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchas116 committed Apr 27, 2023
1 parent 3f32f30 commit de730ce
Show file tree
Hide file tree
Showing 34 changed files with 3,519 additions and 3,253 deletions.
4 changes: 4 additions & 0 deletions packages/cli/src/compiler/CSSGenerator.ts
Expand Up @@ -137,6 +137,10 @@ export class CSSGenerator {

for (const target of ["self", "children"] as const) {
for (const [key, value] of Object.entries(diffCSS[target])) {
if (value == null) {
continue;
}

if (key.startsWith("--")) {
// eslint-disable-next-line
body[target].push(` ${key}: ${value};`);
Expand Down

2 comments on commit de730ce

@vercel
Copy link

@vercel vercel bot commented on de730ce Apr 27, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on de730ce Apr 27, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.