Skip to content

Commit

Permalink
Fix #78 rule is not iterable error (#79)
Browse files Browse the repository at this point in the history
* fix #78 rule is not iterable error

* add changeset
  • Loading branch information
lecstor authored Jul 4, 2024
1 parent c806b2c commit 00f28ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/few-pumpkins-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vite-plugin-stylex": patch
---

Remove undefined values from rules array before passing to stylex babel plugin.
2 changes: 1 addition & 1 deletion packages/vite-plugin-stylex/src/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default function styleXVitePlugin({

// @ts-ignore
const stylexCSS = stylexBabelPlugin.processStylexRules(
rules,
rules.filter(Boolean),
true
) as string;

Expand Down

0 comments on commit 00f28ca

Please sign in to comment.