tailwind-styled-v4 5.0.37 → 5.0.39

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.
Files changed (123) hide show
  1. package/dist/analyzer.js +213 -161
  2. package/dist/analyzer.js.map +1 -1
  3. package/dist/analyzer.mjs +121 -83
  4. package/dist/analyzer.mjs.map +1 -1
  5. package/dist/animate.js +131 -87
  6. package/dist/animate.js.map +1 -1
  7. package/dist/animate.mjs +31 -15
  8. package/dist/animate.mjs.map +1 -1
  9. package/dist/atomic.js +107 -67
  10. package/dist/atomic.js.map +1 -1
  11. package/dist/atomic.mjs +47 -14
  12. package/dist/atomic.mjs.map +1 -1
  13. package/dist/cli.js +601 -428
  14. package/dist/cli.js.map +1 -1
  15. package/dist/cli.mjs +504 -313
  16. package/dist/cli.mjs.map +1 -1
  17. package/dist/compiler.js +833 -508
  18. package/dist/compiler.js.map +1 -1
  19. package/dist/compiler.mjs +298 -30
  20. package/dist/compiler.mjs.map +1 -1
  21. package/dist/dashboard.js +72 -41
  22. package/dist/dashboard.js.map +1 -1
  23. package/dist/dashboard.mjs +12 -6
  24. package/dist/dashboard.mjs.map +1 -1
  25. package/dist/devtools.js +335 -289
  26. package/dist/devtools.js.map +1 -1
  27. package/dist/devtools.mjs +28 -11
  28. package/dist/devtools.mjs.map +1 -1
  29. package/dist/engine.js +719 -506
  30. package/dist/engine.js.map +1 -1
  31. package/dist/engine.mjs +520 -318
  32. package/dist/engine.mjs.map +1 -1
  33. package/dist/index.d.mts +145 -319
  34. package/dist/index.d.ts +145 -319
  35. package/dist/index.js +1337 -7442
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.mjs +1275 -7386
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/next.js +327 -242
  40. package/dist/next.js.map +1 -1
  41. package/dist/next.mjs +272 -184
  42. package/dist/next.mjs.map +1 -1
  43. package/dist/plugin-api.js +94 -49
  44. package/dist/plugin-api.js.map +1 -1
  45. package/dist/plugin-api.mjs +26 -6
  46. package/dist/plugin-api.mjs.map +1 -1
  47. package/dist/plugin-registry.js +68 -40
  48. package/dist/plugin-registry.js.map +1 -1
  49. package/dist/plugin-registry.mjs +14 -10
  50. package/dist/plugin-registry.mjs.map +1 -1
  51. package/dist/plugin.js +102 -53
  52. package/dist/plugin.js.map +1 -1
  53. package/dist/plugin.mjs +30 -6
  54. package/dist/plugin.mjs.map +1 -1
  55. package/dist/preset.js +48 -15
  56. package/dist/preset.js.map +1 -1
  57. package/dist/preset.mjs +13 -5
  58. package/dist/preset.mjs.map +1 -1
  59. package/dist/rspack.js +108 -53
  60. package/dist/rspack.js.map +1 -1
  61. package/dist/rspack.mjs +50 -18
  62. package/dist/rspack.mjs.map +1 -1
  63. package/dist/runtime-css.js +63 -24
  64. package/dist/runtime-css.js.map +1 -1
  65. package/dist/runtime-css.mjs +15 -7
  66. package/dist/runtime-css.mjs.map +1 -1
  67. package/dist/runtime.js +98 -44
  68. package/dist/runtime.js.map +1 -1
  69. package/dist/runtime.mjs +31 -8
  70. package/dist/runtime.mjs.map +1 -1
  71. package/dist/scanner.js +164 -120
  72. package/dist/scanner.js.map +1 -1
  73. package/dist/scanner.mjs +70 -40
  74. package/dist/scanner.mjs.map +1 -1
  75. package/dist/shared.d.mts +0 -12
  76. package/dist/shared.d.ts +0 -12
  77. package/dist/shared.js +481 -299
  78. package/dist/shared.js.map +1 -1
  79. package/dist/shared.mjs +304 -133
  80. package/dist/shared.mjs.map +1 -1
  81. package/dist/storybook-addon.js +40 -10
  82. package/dist/storybook-addon.js.map +1 -1
  83. package/dist/storybook-addon.mjs +8 -3
  84. package/dist/storybook-addon.mjs.map +1 -1
  85. package/dist/svelte.js +95 -64
  86. package/dist/svelte.js.map +1 -1
  87. package/dist/svelte.mjs +37 -14
  88. package/dist/svelte.mjs.map +1 -1
  89. package/dist/syntax.js +69 -37
  90. package/dist/syntax.js.map +1 -1
  91. package/dist/syntax.mjs +8 -7
  92. package/dist/syntax.mjs.map +1 -1
  93. package/dist/testing.js +56 -18
  94. package/dist/testing.js.map +1 -1
  95. package/dist/testing.mjs +16 -3
  96. package/dist/testing.mjs.map +1 -1
  97. package/dist/theme.js +133 -74
  98. package/dist/theme.js.map +1 -1
  99. package/dist/theme.mjs +45 -14
  100. package/dist/theme.mjs.map +1 -1
  101. package/dist/turbopackLoader.js +156 -115
  102. package/dist/turbopackLoader.js.map +1 -1
  103. package/dist/turbopackLoader.mjs +135 -82
  104. package/dist/turbopackLoader.mjs.map +1 -1
  105. package/dist/tw.js +584 -423
  106. package/dist/tw.js.map +1 -1
  107. package/dist/tw.mjs +498 -311
  108. package/dist/tw.mjs.map +1 -1
  109. package/dist/vite.js +599 -450
  110. package/dist/vite.js.map +1 -1
  111. package/dist/vite.mjs +484 -332
  112. package/dist/vite.mjs.map +1 -1
  113. package/dist/vue.js +102 -70
  114. package/dist/vue.js.map +1 -1
  115. package/dist/vue.mjs +39 -15
  116. package/dist/vue.mjs.map +1 -1
  117. package/dist/webpackLoader.js +112 -77
  118. package/dist/webpackLoader.js.map +1 -1
  119. package/dist/webpackLoader.mjs +52 -18
  120. package/dist/webpackLoader.mjs.map +1 -1
  121. package/native/tailwind-styled-native.linux-x64-gnu.node +0 -0
  122. package/native/tailwind-styled-native.node +0 -0
  123. package/package.json +3 -1
package/dist/compiler.mjs CHANGED
@@ -1,11 +1,3 @@
1
- import { createRequire } from 'module';
2
- import * as fs from 'fs';
3
- import fs__default from 'fs';
4
- import * as path from 'path';
5
- import path__default from 'path';
6
- import 'crypto';
7
- import { fileURLToPath } from 'url';
8
-
9
1
  /* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
10
2
  var __defProp = Object.defineProperty;
11
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -22,6 +14,11 @@ var __export = (target, all) => {
22
14
  for (var name in all)
23
15
  __defProp(target, name, { get: all[name], enumerable: true });
24
16
  };
17
+
18
+ // packages/domain/shared/src/native-resolution.ts
19
+ import { createRequire } from "module";
20
+ import * as fs from "fs";
21
+ import * as path from "path";
25
22
  function platformKey() {
26
23
  if (isBrowser) return "browser";
27
24
  return `${process.platform}-${process.arch}`;
@@ -106,8 +103,11 @@ function resolveNativeBinary(runtimeDir) {
106
103
  var isBrowser, _require, PLATFORM_MAP;
107
104
  var init_native_resolution = __esm({
108
105
  "packages/domain/shared/src/native-resolution.ts"() {
106
+ "use strict";
109
107
  isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
110
- _require = typeof __require !== "undefined" ? __require : createRequire(import.meta.url);
108
+ _require = createRequire(
109
+ typeof __require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : import.meta.url
110
+ );
111
111
  PLATFORM_MAP = {
112
112
  "linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
113
113
  "linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
@@ -118,17 +118,29 @@ var init_native_resolution = __esm({
118
118
  };
119
119
  }
120
120
  });
121
+
122
+ // packages/domain/shared/src/index.ts
123
+ import { createHash } from "crypto";
124
+ import fs2 from "fs";
125
+ import path2 from "path";
126
+ import { fileURLToPath } from "url";
127
+ import { createRequire as createRequire2 } from "module";
121
128
  function resolveRuntimeDir(dir, importMetaUrl) {
129
+ if (dir) return path2.resolve(dir);
122
130
  try {
123
- return path__default.dirname(fileURLToPath(importMetaUrl));
131
+ return path2.dirname(fileURLToPath(importMetaUrl));
124
132
  } catch {
125
133
  return process.cwd();
126
134
  }
127
135
  }
136
+ var _require2;
128
137
  var init_src = __esm({
129
138
  "packages/domain/shared/src/index.ts"() {
139
+ "use strict";
130
140
  init_native_resolution();
131
- createRequire(import.meta.url);
141
+ _require2 = createRequire2(
142
+ typeof __filename !== "undefined" ? `file://${__filename}` : import.meta.url ?? "file://unknown"
143
+ );
132
144
  }
133
145
  });
134
146
 
@@ -136,6 +148,7 @@ var init_src = __esm({
136
148
  var _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge, resetNativeBridgeCache, adaptNativeResult;
137
149
  var init_nativeBridge = __esm({
138
150
  "packages/domain/compiler/src/nativeBridge.ts"() {
151
+ "use strict";
139
152
  init_src();
140
153
  _loadNative = (path4) => __require(path4);
141
154
  log = (...args) => {
@@ -293,6 +306,7 @@ function resetCacheStats() {
293
306
  }
294
307
  var init_cssGeneratorNative = __esm({
295
308
  "packages/domain/compiler/src/compiler/cssGeneratorNative.ts"() {
309
+ "use strict";
296
310
  init_nativeBridge();
297
311
  }
298
312
  });
@@ -365,6 +379,7 @@ function atomicRegistrySize() {
365
379
  }
366
380
  var init_compilationNative = __esm({
367
381
  "packages/domain/compiler/src/compiler/compilationNative.ts"() {
382
+ "use strict";
368
383
  init_nativeBridge();
369
384
  }
370
385
  });
@@ -508,6 +523,7 @@ function twMergeRaw(classLists) {
508
523
  }
509
524
  var init_cssCompilationNative = __esm({
510
525
  "packages/domain/compiler/src/compiler/cssCompilationNative.ts"() {
526
+ "use strict";
511
527
  init_nativeBridge();
512
528
  }
513
529
  });
@@ -607,6 +623,7 @@ function idRegistryImport(importedData) {
607
623
  }
608
624
  var init_idRegistryNative = __esm({
609
625
  "packages/domain/compiler/src/compiler/idRegistryNative.ts"() {
626
+ "use strict";
610
627
  init_nativeBridge();
611
628
  }
612
629
  });
@@ -748,9 +765,13 @@ function scanFilesBatchNative(filesJson) {
748
765
  }
749
766
  var init_streamingNative = __esm({
750
767
  "packages/domain/compiler/src/compiler/streamingNative.ts"() {
768
+ "use strict";
751
769
  init_nativeBridge();
752
770
  }
753
771
  });
772
+
773
+ // packages/domain/compiler/src/tailwindEngine.ts
774
+ import { createRequire as createRequire3 } from "module";
754
775
  function loadTailwindEngine() {
755
776
  if (_twEngine) return _twEngine;
756
777
  if (_twEngineError) throw _twEngineError;
@@ -770,10 +791,10 @@ async function generateRawCss(classes, cssEntryContent, root) {
770
791
  if (classes.length === 0) return "";
771
792
  const tw = loadTailwindEngine();
772
793
  const input = cssEntryContent ?? "@import 'tailwindcss';";
773
- const { readFileSync, existsSync: existsSync2 } = await import('fs');
774
- const { dirname, resolve: resolve2 } = await import('path');
794
+ const { readFileSync, existsSync: existsSync2 } = await import("fs");
795
+ const { dirname, resolve: resolve2 } = await import("path");
775
796
  const projectRoot = root ?? process.cwd();
776
- const req = createRequire(resolve2(projectRoot, "package.json"));
797
+ const req = createRequire3(resolve2(projectRoot, "package.json"));
777
798
  const loadStylesheet = async (id, base) => {
778
799
  try {
779
800
  const cssId = id === "tailwindcss" ? "tailwindcss/index.css" : id === "tailwindcss/preflight" ? "tailwindcss/preflight.css" : id === "tailwindcss/utilities" ? "tailwindcss/utilities.css" : id === "tailwindcss/theme" ? "tailwindcss/theme.css" : id;
@@ -793,10 +814,14 @@ async function generateRawCss(classes, cssEntryContent, root) {
793
814
  const compiler = await Promise.resolve(tw.compile(input, { loadStylesheet }));
794
815
  return compiler.build(classes);
795
816
  }
796
- var require2, _twEngine, _twEngineError;
817
+ var require2, MAX_CACHE_MEMORY, _twEngine, _twEngineError;
797
818
  var init_tailwindEngine = __esm({
798
819
  "packages/domain/compiler/src/tailwindEngine.ts"() {
799
- require2 = createRequire(import.meta.url);
820
+ "use strict";
821
+ require2 = createRequire3(
822
+ typeof __filename !== "undefined" ? `file://${__filename}` : typeof import.meta !== "undefined" && import.meta.url ? import.meta.url : "file://unknown"
823
+ );
824
+ MAX_CACHE_MEMORY = 256 * 1024;
800
825
  _twEngine = null;
801
826
  _twEngineError = null;
802
827
  }
@@ -811,6 +836,7 @@ __export(tailwindEngine_exports, {
811
836
  runCssPipeline: () => runCssPipeline,
812
837
  runCssPipelineSync: () => runCssPipelineSync
813
838
  });
839
+ import { createRequire as createRequire4 } from "module";
814
840
  function _getCacheKey(classes, minify, cssEntry, root) {
815
841
  const sorted = [...classes].sort().join(",");
816
842
  const flags = `${minify ? "1" : "0"}${cssEntry ? "1" : "0"}${root ? "1" : "0"}`;
@@ -977,24 +1003,29 @@ function processTailwindCssWithTargets(css, targets) {
977
1003
  }
978
1004
  return result.css;
979
1005
  }
980
- var _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE;
1006
+ var require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
981
1007
  var init_tailwindEngine2 = __esm({
982
1008
  "packages/domain/compiler/src/compiler/tailwindEngine.ts"() {
1009
+ "use strict";
983
1010
  init_nativeBridge();
984
1011
  init_cssGeneratorNative();
985
1012
  init_cssCompilationNative();
986
1013
  init_tailwindEngine();
987
- createRequire(import.meta.url);
1014
+ require3 = createRequire4(
1015
+ typeof __filename !== "undefined" ? `file://${__filename}` : typeof import.meta !== "undefined" && import.meta.url ? import.meta.url : "file://unknown"
1016
+ );
988
1017
  _cssCache = /* @__PURE__ */ new Map();
989
1018
  _cacheHits = 0;
990
1019
  _cacheMisses = 0;
991
1020
  MAX_CACHE_SIZE = 100;
1021
+ MAX_CACHE_MEMORY2 = 256 * 1024;
992
1022
  }
993
1023
  });
994
1024
 
995
1025
  // packages/domain/compiler/src/compiler/index.ts
996
1026
  var init_compiler = __esm({
997
1027
  "packages/domain/compiler/src/compiler/index.ts"() {
1028
+ "use strict";
998
1029
  init_cssGeneratorNative();
999
1030
  init_compilationNative();
1000
1031
  init_cssCompilationNative();
@@ -1008,6 +1039,7 @@ var init_compiler = __esm({
1008
1039
  var parseClasses, parseClass, extractAllClasses, extractClassesFromSource, astExtractClasses, normalizeClasses, mergeClassesStatic, normalizeAndDedupClasses, extractComponentUsage, batchExtractClasses, checkAgainstSafelist, diffClassLists;
1009
1040
  var init_parser = __esm({
1010
1041
  "packages/domain/compiler/src/parser/index.ts"() {
1042
+ "use strict";
1011
1043
  init_nativeBridge();
1012
1044
  parseClasses = (raw) => {
1013
1045
  const native = getNativeBridge();
@@ -1186,6 +1218,7 @@ function resetMemoryStats() {
1186
1218
  }
1187
1219
  var init_analyzerNative = __esm({
1188
1220
  "packages/domain/compiler/src/analyzer/analyzerNative.ts"() {
1221
+ "use strict";
1189
1222
  init_nativeBridge();
1190
1223
  }
1191
1224
  });
@@ -1279,6 +1312,7 @@ function resolveSimpleVariants(configJson) {
1279
1312
  }
1280
1313
  var init_themeResolutionNative = __esm({
1281
1314
  "packages/domain/compiler/src/analyzer/themeResolutionNative.ts"() {
1315
+ "use strict";
1282
1316
  init_nativeBridge();
1283
1317
  }
1284
1318
  });
@@ -1326,6 +1360,7 @@ function generateSubComponentTypes(root, outputPath) {
1326
1360
  }
1327
1361
  var init_scannerNative = __esm({
1328
1362
  "packages/domain/compiler/src/analyzer/scannerNative.ts"() {
1363
+ "use strict";
1329
1364
  init_nativeBridge();
1330
1365
  }
1331
1366
  });
@@ -1333,6 +1368,7 @@ var init_scannerNative = __esm({
1333
1368
  // packages/domain/compiler/src/analyzer/index.ts
1334
1369
  var init_analyzer = __esm({
1335
1370
  "packages/domain/compiler/src/analyzer/index.ts"() {
1371
+ "use strict";
1336
1372
  init_analyzerNative();
1337
1373
  init_themeResolutionNative();
1338
1374
  init_scannerNative();
@@ -1521,6 +1557,7 @@ function resetResolverPoolStats() {
1521
1557
  }
1522
1558
  var init_cacheNative = __esm({
1523
1559
  "packages/domain/compiler/src/cache/cacheNative.ts"() {
1560
+ "use strict";
1524
1561
  init_nativeBridge();
1525
1562
  }
1526
1563
  });
@@ -1528,6 +1565,7 @@ var init_cacheNative = __esm({
1528
1565
  // packages/domain/compiler/src/cache/index.ts
1529
1566
  var init_cache = __esm({
1530
1567
  "packages/domain/compiler/src/cache/index.ts"() {
1568
+ "use strict";
1531
1569
  init_cacheNative();
1532
1570
  }
1533
1571
  });
@@ -1776,6 +1814,7 @@ function redisDiagnose() {
1776
1814
  }
1777
1815
  var init_redisNative = __esm({
1778
1816
  "packages/domain/compiler/src/redis/redisNative.ts"() {
1817
+ "use strict";
1779
1818
  init_nativeBridge();
1780
1819
  }
1781
1820
  });
@@ -1783,6 +1822,7 @@ var init_redisNative = __esm({
1783
1822
  // packages/domain/compiler/src/redis/index.ts
1784
1823
  var init_redis = __esm({
1785
1824
  "packages/domain/compiler/src/redis/index.ts"() {
1825
+ "use strict";
1786
1826
  init_redisNative();
1787
1827
  }
1788
1828
  });
@@ -1921,6 +1961,7 @@ function getCompilerDiagnostics() {
1921
1961
  }
1922
1962
  var init_watchSystemNative = __esm({
1923
1963
  "packages/domain/compiler/src/watch/watchSystemNative.ts"() {
1964
+ "use strict";
1924
1965
  init_nativeBridge();
1925
1966
  }
1926
1967
  });
@@ -1928,9 +1969,15 @@ var init_watchSystemNative = __esm({
1928
1969
  // packages/domain/compiler/src/watch/index.ts
1929
1970
  var init_watch = __esm({
1930
1971
  "packages/domain/compiler/src/watch/index.ts"() {
1972
+ "use strict";
1931
1973
  init_watchSystemNative();
1932
1974
  }
1933
1975
  });
1976
+
1977
+ // packages/domain/compiler/src/index.ts
1978
+ import fs3 from "fs";
1979
+ import path3 from "path";
1980
+ import { createRequire as createRequire5 } from "module";
1934
1981
  function _layoutClassesToCss(classes) {
1935
1982
  const native = getNativeBridge();
1936
1983
  if (!native?.layoutClassesToCss) {
@@ -1968,6 +2015,7 @@ function extractContainerCssFromSource(source) {
1968
2015
  var _require3, transformSource, hasTwUsage, isAlreadyTransformed, shouldProcess, compileCssFromClasses, buildStyleTag, generateCssForClasses, eliminateDeadCss, findDeadVariants, runElimination, scanProjectUsage, generateSafelist, loadSafelist, loadTailwindConfig, getContentPaths, _CONTAINER_BREAKPOINTS, runLoaderTransform, shouldSkipFile, fileToRoute, getAllRoutes, getRouteClasses, registerFileClasses, registerGlobalClasses, _incrementalEngineInstance, getIncrementalEngine, resetIncrementalEngine, IncrementalEngine, getBucketEngine, resetBucketEngine, BucketEngine, classifyNode, detectConflicts, bucketSort, analyzeFile, analyzeVariantUsage, injectClientDirective, injectServerOnlyComment, analyzeClasses, extractTwStateConfigs, generateStaticStateCss, extractAndGenerateStateCss;
1969
2016
  var init_src2 = __esm({
1970
2017
  "packages/domain/compiler/src/index.ts"() {
2018
+ "use strict";
1971
2019
  init_nativeBridge();
1972
2020
  init_compiler();
1973
2021
  init_parser();
@@ -1975,7 +2023,9 @@ var init_src2 = __esm({
1975
2023
  init_cache();
1976
2024
  init_redis();
1977
2025
  init_watch();
1978
- _require3 = createRequire(import.meta.url);
2026
+ _require3 = createRequire5(
2027
+ typeof __require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : import.meta.url
2028
+ );
1979
2029
  transformSource = (source, opts) => {
1980
2030
  const native = getNativeBridge();
1981
2031
  if (!native?.transformSource) {
@@ -2067,7 +2117,7 @@ var init_src2 = __esm({
2067
2117
  };
2068
2118
  scanProjectUsage = (dirs, cwd) => {
2069
2119
  const { batchExtractClasses: batchExtractClasses2 } = _require3("./parser");
2070
- const files = dirs.map((dir) => path__default.resolve(cwd, dir));
2120
+ const files = dirs.map((dir) => path3.resolve(cwd, dir));
2071
2121
  const results = batchExtractClasses2(files) || [];
2072
2122
  const combined = {};
2073
2123
  for (const result of results) {
@@ -2084,13 +2134,13 @@ var init_src2 = __esm({
2084
2134
  const classes = scanProjectUsage(scanDirs, cwd || process.cwd());
2085
2135
  const allClasses = Object.keys(classes).sort();
2086
2136
  if (outputPath) {
2087
- fs__default.writeFileSync(outputPath, JSON.stringify(allClasses, null, 2));
2137
+ fs3.writeFileSync(outputPath, JSON.stringify(allClasses, null, 2));
2088
2138
  }
2089
2139
  return allClasses;
2090
2140
  };
2091
2141
  loadSafelist = (safelistPath) => {
2092
2142
  try {
2093
- const content = fs__default.readFileSync(safelistPath, "utf-8");
2143
+ const content = fs3.readFileSync(safelistPath, "utf-8");
2094
2144
  return JSON.parse(content);
2095
2145
  } catch {
2096
2146
  return [];
@@ -2104,8 +2154,8 @@ var init_src2 = __esm({
2104
2154
  "tailwind.config.cjs"
2105
2155
  ];
2106
2156
  for (const file of configFiles) {
2107
- const fullPath = path__default.join(cwd, file);
2108
- if (fs__default.existsSync(fullPath)) {
2157
+ const fullPath = path3.join(cwd, file);
2158
+ if (fs3.existsSync(fullPath)) {
2109
2159
  const mod = __require(fullPath);
2110
2160
  return mod.default || mod;
2111
2161
  }
@@ -2115,9 +2165,9 @@ var init_src2 = __esm({
2115
2165
  getContentPaths = (cwd = process.cwd()) => {
2116
2166
  return {
2117
2167
  content: [
2118
- path__default.join(cwd, "src/**/*.{js,ts,jsx,tsx}"),
2119
- path__default.join(cwd, "app/**/*.{js,ts,jsx,tsx}"),
2120
- path__default.join(cwd, "pages/**/*.{js,ts,jsx,tsx}")
2168
+ path3.join(cwd, "src/**/*.{js,ts,jsx,tsx}"),
2169
+ path3.join(cwd, "app/**/*.{js,ts,jsx,tsx}"),
2170
+ path3.join(cwd, "pages/**/*.{js,ts,jsx,tsx}")
2121
2171
  ]
2122
2172
  };
2123
2173
  };
@@ -2314,7 +2364,225 @@ ${source}`;
2314
2364
 
2315
2365
  // src/umbrella/compiler.ts
2316
2366
  init_src2();
2317
-
2318
- export { BucketEngine, IncrementalEngine, adaptNativeResult, analyzeClassUsageNative, analyzeClasses, analyzeClassesNative, analyzeFile, analyzeRscNative, analyzeVariantUsage, astExtractClasses, atomicRegistrySize, batchExtractClasses, batchExtractClassesNative, bucketSort, buildStyleTag, cachePriority, cacheRead, cacheWrite, checkAgainstSafelist, checkAgainstSafelistNative, classifyAndSortClassesNative, classifyNode, clearAllCaches, clearAtomicRegistry, clearCompileCache, clearCssGenCache, clearParseCache, clearResolveCache, clearResolverPool, clearThemeCache, collectFiles, compileAnimation, compileClass, compileClasses, compileCssFromClasses, compileCssLightning, compileCssNative2, compileKeyframes, compileTheme, compileToCss, compileToCssBatch, compileVariantTableNative, computeIncrementalDiff, createFingerprint, detectConflicts, detectDeadCode, diffClassLists, eliminateDeadCss, eliminateDeadCssNative, emitPluginHook, estimateOptimalCacheConfig, estimateOptimalCacheConfigNative, extractAllClasses, extractAndGenerateStateCss, extractAndGenerateStateCssNative, extractClassesFromSource, extractClassesFromSourceNative, extractComponentUsage, extractContainerCssFromSource, extractTwContainerConfigs, extractTwStateConfigs, extractTwStateConfigsNative, fileToRoute, findDeadVariants, generateAtomicCss, generateCss, generateCssBatch, generateCssForClasses, generateCssNative, generateSafelist, generateStaticStateCss, generateStaticStateCssNative, generateSubComponentTypes, getAllRoutes, getBucketEngine, getCacheOptimizationHints, getCacheStatistics, getCacheStats, getCompilationMetrics, getCompilerDiagnostics, getContentPaths, getIncrementalEngine, getMemoryRecommendationsNative, getMemoryStatsNative, getNativeBridge, getPluginHooks, getResolverPoolStats, getRouteClasses, getWatchStats, getWeek6FeaturesStatus, hasTwUsage, hashContent, hoistComponentsNative, idRegistryActiveCount, idRegistryCreate, idRegistryDestroy, idRegistryExport, idRegistryGenerate, idRegistryImport, idRegistryLookup, idRegistryNext, idRegistryReset, idRegistrySnapshot, injectClientDirective, injectServerOnlyComment, injectStateHash, isAlreadyTransformed, isWatchRunning, layoutClassesToCss, loadSafelist, loadTailwindConfig, mergeClassesStatic, mergeCssDeclarationsNative, minifyCss, normalizeAndDedupClasses, normalizeClasses, optimizeCssNative, parseAtomicClass, parseClass, parseClasses, pollWatchEvents, processFileChange, processTailwindCssLightning, propertyIdToString, pruneStaleCacheEntries, rebuildWorkspaceResult, redisCacheClear, redisCacheHitRate, redisCacheKeyCount, redisCacheSize, redisCacheSync, redisClusterStatus, redisDelete, redisDiagnose, redisDisableCacheWarming, redisDisableCluster, redisDisablePersistence, redisEnableCacheWarming, redisEnableCluster, redisEnablePersistence, redisExists, redisExpirationGet, redisExpirationSet, redisFlushAll, redisFlushDb, redisGet, redisGetEvictionPolicy, redisInfo, redisMemoryStats, redisMget, redisMonitor, redisMset, redisOptimizeMemory, redisPing, redisPoolConnect, redisPoolReconnect, redisPoolStats, redisPublish, redisReplicate, redisReplicationStatus, redisSet, redisSetEvictionPolicy, redisSnapshot, redisSubscribe, registerFileClasses, registerGlobalClasses, registerPluginHook, registerPropertyName, registerValueName, resetBucketEngine, resetCacheStats, resetCompilationMetrics, resetIncrementalEngine, resetMemoryStats, resetNativeBridgeCache, resetResolverPoolStats, resolveCascade, resolveClassNames, resolveColorCached, resolveConflictGroup, resolveFontSizeCached, resolveSimpleVariants, resolveSpacingCached, resolveThemeValue, resolveVariants, reverseLookupProperty, reverseLookupValue, runCssPipeline, runElimination, runLoaderTransform, scanCacheOptimizations, scanFile, scanFileNative, scanFilesBatchNative, scanProjectUsage, scanWorkspace, shouldProcess, shouldSkipFile, startWatch, stopWatch, toAtomicClasses, transformSource, twMerge, twMergeMany, twMergeManyWithSeparator, twMergeRaw, twMergeWithSeparator, unregisterPluginHook, validateCssOutput, validateThemeConfig, valueIdToString, walkAndPrefilterSourceFiles, watchAddPattern, watchClearAll, watchEventTypeToString, watchGetActiveHandles, watchPause, watchRemovePattern, watchResume };
2319
- //# sourceMappingURL=compiler.mjs.map
2367
+ export {
2368
+ BucketEngine,
2369
+ IncrementalEngine,
2370
+ adaptNativeResult,
2371
+ analyzeClassUsageNative,
2372
+ analyzeClasses,
2373
+ analyzeClassesNative,
2374
+ analyzeFile,
2375
+ analyzeRscNative,
2376
+ analyzeVariantUsage,
2377
+ astExtractClasses,
2378
+ atomicRegistrySize,
2379
+ batchExtractClasses,
2380
+ batchExtractClassesNative,
2381
+ bucketSort,
2382
+ buildStyleTag,
2383
+ cachePriority,
2384
+ cacheRead,
2385
+ cacheWrite,
2386
+ checkAgainstSafelist,
2387
+ checkAgainstSafelistNative,
2388
+ classifyAndSortClassesNative,
2389
+ classifyNode,
2390
+ clearAllCaches,
2391
+ clearAtomicRegistry,
2392
+ clearCompileCache,
2393
+ clearCssGenCache,
2394
+ clearParseCache,
2395
+ clearResolveCache,
2396
+ clearResolverPool,
2397
+ clearThemeCache,
2398
+ collectFiles,
2399
+ compileAnimation,
2400
+ compileClass,
2401
+ compileClasses,
2402
+ compileCssFromClasses,
2403
+ compileCssLightning,
2404
+ compileCssNative2,
2405
+ compileKeyframes,
2406
+ compileTheme,
2407
+ compileToCss,
2408
+ compileToCssBatch,
2409
+ compileVariantTableNative,
2410
+ computeIncrementalDiff,
2411
+ createFingerprint,
2412
+ detectConflicts,
2413
+ detectDeadCode,
2414
+ diffClassLists,
2415
+ eliminateDeadCss,
2416
+ eliminateDeadCssNative,
2417
+ emitPluginHook,
2418
+ estimateOptimalCacheConfig,
2419
+ estimateOptimalCacheConfigNative,
2420
+ extractAllClasses,
2421
+ extractAndGenerateStateCss,
2422
+ extractAndGenerateStateCssNative,
2423
+ extractClassesFromSource,
2424
+ extractClassesFromSourceNative,
2425
+ extractComponentUsage,
2426
+ extractContainerCssFromSource,
2427
+ extractTwContainerConfigs,
2428
+ extractTwStateConfigs,
2429
+ extractTwStateConfigsNative,
2430
+ fileToRoute,
2431
+ findDeadVariants,
2432
+ generateAtomicCss,
2433
+ generateCss,
2434
+ generateCssBatch,
2435
+ generateCssForClasses,
2436
+ generateCssNative,
2437
+ generateSafelist,
2438
+ generateStaticStateCss,
2439
+ generateStaticStateCssNative,
2440
+ generateSubComponentTypes,
2441
+ getAllRoutes,
2442
+ getBucketEngine,
2443
+ getCacheOptimizationHints,
2444
+ getCacheStatistics,
2445
+ getCacheStats,
2446
+ getCompilationMetrics,
2447
+ getCompilerDiagnostics,
2448
+ getContentPaths,
2449
+ getIncrementalEngine,
2450
+ getMemoryRecommendationsNative,
2451
+ getMemoryStatsNative,
2452
+ getNativeBridge,
2453
+ getPluginHooks,
2454
+ getResolverPoolStats,
2455
+ getRouteClasses,
2456
+ getWatchStats,
2457
+ getWeek6FeaturesStatus,
2458
+ hasTwUsage,
2459
+ hashContent,
2460
+ hoistComponentsNative,
2461
+ idRegistryActiveCount,
2462
+ idRegistryCreate,
2463
+ idRegistryDestroy,
2464
+ idRegistryExport,
2465
+ idRegistryGenerate,
2466
+ idRegistryImport,
2467
+ idRegistryLookup,
2468
+ idRegistryNext,
2469
+ idRegistryReset,
2470
+ idRegistrySnapshot,
2471
+ injectClientDirective,
2472
+ injectServerOnlyComment,
2473
+ injectStateHash,
2474
+ isAlreadyTransformed,
2475
+ isWatchRunning,
2476
+ layoutClassesToCss,
2477
+ loadSafelist,
2478
+ loadTailwindConfig,
2479
+ mergeClassesStatic,
2480
+ mergeCssDeclarationsNative,
2481
+ minifyCss,
2482
+ normalizeAndDedupClasses,
2483
+ normalizeClasses,
2484
+ optimizeCssNative,
2485
+ parseAtomicClass,
2486
+ parseClass,
2487
+ parseClasses,
2488
+ pollWatchEvents,
2489
+ processFileChange,
2490
+ processTailwindCssLightning,
2491
+ propertyIdToString,
2492
+ pruneStaleCacheEntries,
2493
+ rebuildWorkspaceResult,
2494
+ redisCacheClear,
2495
+ redisCacheHitRate,
2496
+ redisCacheKeyCount,
2497
+ redisCacheSize,
2498
+ redisCacheSync,
2499
+ redisClusterStatus,
2500
+ redisDelete,
2501
+ redisDiagnose,
2502
+ redisDisableCacheWarming,
2503
+ redisDisableCluster,
2504
+ redisDisablePersistence,
2505
+ redisEnableCacheWarming,
2506
+ redisEnableCluster,
2507
+ redisEnablePersistence,
2508
+ redisExists,
2509
+ redisExpirationGet,
2510
+ redisExpirationSet,
2511
+ redisFlushAll,
2512
+ redisFlushDb,
2513
+ redisGet,
2514
+ redisGetEvictionPolicy,
2515
+ redisInfo,
2516
+ redisMemoryStats,
2517
+ redisMget,
2518
+ redisMonitor,
2519
+ redisMset,
2520
+ redisOptimizeMemory,
2521
+ redisPing,
2522
+ redisPoolConnect,
2523
+ redisPoolReconnect,
2524
+ redisPoolStats,
2525
+ redisPublish,
2526
+ redisReplicate,
2527
+ redisReplicationStatus,
2528
+ redisSet,
2529
+ redisSetEvictionPolicy,
2530
+ redisSnapshot,
2531
+ redisSubscribe,
2532
+ registerFileClasses,
2533
+ registerGlobalClasses,
2534
+ registerPluginHook,
2535
+ registerPropertyName,
2536
+ registerValueName,
2537
+ resetBucketEngine,
2538
+ resetCacheStats,
2539
+ resetCompilationMetrics,
2540
+ resetIncrementalEngine,
2541
+ resetMemoryStats,
2542
+ resetNativeBridgeCache,
2543
+ resetResolverPoolStats,
2544
+ resolveCascade,
2545
+ resolveClassNames,
2546
+ resolveColorCached,
2547
+ resolveConflictGroup,
2548
+ resolveFontSizeCached,
2549
+ resolveSimpleVariants,
2550
+ resolveSpacingCached,
2551
+ resolveThemeValue,
2552
+ resolveVariants,
2553
+ reverseLookupProperty,
2554
+ reverseLookupValue,
2555
+ runCssPipeline,
2556
+ runElimination,
2557
+ runLoaderTransform,
2558
+ scanCacheOptimizations,
2559
+ scanFile,
2560
+ scanFileNative,
2561
+ scanFilesBatchNative,
2562
+ scanProjectUsage,
2563
+ scanWorkspace,
2564
+ shouldProcess,
2565
+ shouldSkipFile,
2566
+ startWatch,
2567
+ stopWatch,
2568
+ toAtomicClasses,
2569
+ transformSource,
2570
+ twMerge,
2571
+ twMergeMany,
2572
+ twMergeManyWithSeparator,
2573
+ twMergeRaw,
2574
+ twMergeWithSeparator,
2575
+ unregisterPluginHook,
2576
+ validateCssOutput,
2577
+ validateThemeConfig,
2578
+ valueIdToString,
2579
+ walkAndPrefilterSourceFiles,
2580
+ watchAddPattern,
2581
+ watchClearAll,
2582
+ watchEventTypeToString,
2583
+ watchGetActiveHandles,
2584
+ watchPause,
2585
+ watchRemovePattern,
2586
+ watchResume
2587
+ };
2320
2588
  //# sourceMappingURL=compiler.mjs.map