tailwind-styled-v4 5.0.23 → 5.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/compiler.mjs CHANGED
@@ -2109,7 +2109,13 @@ var init_src2 = __esm({
2109
2109
  const cssChunks = [];
2110
2110
  const stateRules = extractAndGenerateStateCss(source, filepath);
2111
2111
  if (stateRules.length > 0) {
2112
- cssChunks.push(stateRules.map((r) => r.cssRule).join("\n"));
2112
+ const resolvedRules = stateRules.filter((r) => {
2113
+ const decl = r.declarations.trim();
2114
+ return decl.length === 0 || decl.includes(":");
2115
+ });
2116
+ if (resolvedRules.length > 0) {
2117
+ cssChunks.push(resolvedRules.map((r) => r.cssRule).join("\n"));
2118
+ }
2113
2119
  }
2114
2120
  const containerCss = extractContainerCssFromSource(source);
2115
2121
  if (containerCss) cssChunks.push(containerCss);