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.mjs CHANGED
@@ -3773,7 +3773,13 @@ var init_src2 = __esm({
3773
3773
  const cssChunks = [];
3774
3774
  const stateRules = extractAndGenerateStateCss(source, filepath);
3775
3775
  if (stateRules.length > 0) {
3776
- cssChunks.push(stateRules.map((r) => r.cssRule).join("\n"));
3776
+ const resolvedRules = stateRules.filter((r) => {
3777
+ const decl = r.declarations.trim();
3778
+ return decl.length === 0 || decl.includes(":");
3779
+ });
3780
+ if (resolvedRules.length > 0) {
3781
+ cssChunks.push(resolvedRules.map((r) => r.cssRule).join("\n"));
3782
+ }
3777
3783
  }
3778
3784
  const containerCss = extractContainerCssFromSource(source);
3779
3785
  if (containerCss) cssChunks.push(containerCss);