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/vite.js CHANGED
@@ -3795,7 +3795,13 @@ var init_src2 = __esm({
3795
3795
  const cssChunks = [];
3796
3796
  const stateRules = extractAndGenerateStateCss(source, filepath);
3797
3797
  if (stateRules.length > 0) {
3798
- cssChunks.push(stateRules.map((r) => r.cssRule).join("\n"));
3798
+ const resolvedRules = stateRules.filter((r) => {
3799
+ const decl = r.declarations.trim();
3800
+ return decl.length === 0 || decl.includes(":");
3801
+ });
3802
+ if (resolvedRules.length > 0) {
3803
+ cssChunks.push(resolvedRules.map((r) => r.cssRule).join("\n"));
3804
+ }
3799
3805
  }
3800
3806
  const containerCss = extractContainerCssFromSource(source);
3801
3807
  if (containerCss) cssChunks.push(containerCss);