tailwind-styled-v4 5.0.23 → 5.0.26

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.
@@ -305,6 +305,7 @@ var init_src2 = __esm({
305
305
  init_cache();
306
306
  init_redis();
307
307
  init_watch();
308
+ createRequire(import.meta.url);
308
309
  transformSource = (source, opts) => {
309
310
  const native = getNativeBridge();
310
311
  if (!native?.transformSource) {
@@ -332,7 +333,13 @@ var init_src2 = __esm({
332
333
  const cssChunks = [];
333
334
  const stateRules = extractAndGenerateStateCss(source, filepath);
334
335
  if (stateRules.length > 0) {
335
- cssChunks.push(stateRules.map((r) => r.cssRule).join("\n"));
336
+ const resolvedRules = stateRules.filter((r) => {
337
+ const decl = r.declarations.trim();
338
+ return decl.length === 0 || decl.includes(":");
339
+ });
340
+ if (resolvedRules.length > 0) {
341
+ cssChunks.push(resolvedRules.map((r) => r.cssRule).join("\n"));
342
+ }
336
343
  }
337
344
  const containerCss = extractContainerCssFromSource(source);
338
345
  if (containerCss) cssChunks.push(containerCss);