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.js CHANGED
@@ -2131,7 +2131,13 @@ var init_src2 = __esm({
2131
2131
  const cssChunks = [];
2132
2132
  const stateRules = exports.extractAndGenerateStateCss(source, filepath);
2133
2133
  if (stateRules.length > 0) {
2134
- cssChunks.push(stateRules.map((r) => r.cssRule).join("\n"));
2134
+ const resolvedRules = stateRules.filter((r) => {
2135
+ const decl = r.declarations.trim();
2136
+ return decl.length === 0 || decl.includes(":");
2137
+ });
2138
+ if (resolvedRules.length > 0) {
2139
+ cssChunks.push(resolvedRules.map((r) => r.cssRule).join("\n"));
2140
+ }
2135
2141
  }
2136
2142
  const containerCss = extractContainerCssFromSource(source);
2137
2143
  if (containerCss) cssChunks.push(containerCss);