tailwind-styled-v4 5.0.39 → 5.0.411

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 (101) hide show
  1. package/dist/analyzer.js +38 -13
  2. package/dist/analyzer.js.map +1 -1
  3. package/dist/analyzer.mjs +104 -72
  4. package/dist/analyzer.mjs.map +1 -1
  5. package/dist/animate.js +33 -7
  6. package/dist/animate.js.map +1 -1
  7. package/dist/animate.mjs +55 -22
  8. package/dist/animate.mjs.map +1 -1
  9. package/dist/atomic.js +39 -10
  10. package/dist/atomic.js.map +1 -1
  11. package/dist/atomic.mjs +56 -23
  12. package/dist/atomic.mjs.map +1 -1
  13. package/dist/cli.js +151 -39
  14. package/dist/cli.js.map +1 -1
  15. package/dist/cli.mjs +321 -203
  16. package/dist/cli.mjs.map +1 -1
  17. package/dist/compiler.js +57 -16
  18. package/dist/compiler.js.map +1 -1
  19. package/dist/compiler.mjs +71 -28
  20. package/dist/compiler.mjs.map +1 -1
  21. package/dist/dashboard.js +0 -1
  22. package/dist/dashboard.js.map +1 -1
  23. package/dist/devtools.js +16 -2
  24. package/dist/devtools.js.map +1 -1
  25. package/dist/devtools.mjs +21 -2
  26. package/dist/devtools.mjs.map +1 -1
  27. package/dist/engine.js +140 -56
  28. package/dist/engine.js.map +1 -1
  29. package/dist/engine.mjs +238 -148
  30. package/dist/engine.mjs.map +1 -1
  31. package/dist/index.js +50 -9
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.mjs +74 -29
  34. package/dist/index.mjs.map +1 -1
  35. package/dist/next.js +97 -41
  36. package/dist/next.js.map +1 -1
  37. package/dist/next.mjs +177 -115
  38. package/dist/next.mjs.map +1 -1
  39. package/dist/plugin-api.js +0 -1
  40. package/dist/plugin-api.js.map +1 -1
  41. package/dist/plugin-registry.js +5 -2
  42. package/dist/plugin-registry.js.map +1 -1
  43. package/dist/plugin-registry.mjs +9 -2
  44. package/dist/plugin-registry.mjs.map +1 -1
  45. package/dist/plugin.js +0 -1
  46. package/dist/plugin.js.map +1 -1
  47. package/dist/preset.js +0 -1
  48. package/dist/preset.js.map +1 -1
  49. package/dist/rspack.js +22 -8
  50. package/dist/rspack.js.map +1 -1
  51. package/dist/rspack.mjs +39 -18
  52. package/dist/rspack.mjs.map +1 -1
  53. package/dist/runtime-css.js +0 -1
  54. package/dist/runtime-css.js.map +1 -1
  55. package/dist/runtime.js +0 -1
  56. package/dist/runtime.js.map +1 -1
  57. package/dist/scanner.js +25 -9
  58. package/dist/scanner.js.map +1 -1
  59. package/dist/scanner.mjs +84 -61
  60. package/dist/scanner.mjs.map +1 -1
  61. package/dist/shared.js +91 -37
  62. package/dist/shared.js.map +1 -1
  63. package/dist/shared.mjs +122 -64
  64. package/dist/shared.mjs.map +1 -1
  65. package/dist/storybook-addon.js +0 -1
  66. package/dist/storybook-addon.js.map +1 -1
  67. package/dist/svelte.js +40 -9
  68. package/dist/svelte.js.map +1 -1
  69. package/dist/svelte.mjs +57 -28
  70. package/dist/svelte.mjs.map +1 -1
  71. package/dist/syntax.js +6 -3
  72. package/dist/syntax.js.map +1 -1
  73. package/dist/syntax.mjs +30 -23
  74. package/dist/syntax.mjs.map +1 -1
  75. package/dist/testing.js +0 -1
  76. package/dist/testing.js.map +1 -1
  77. package/dist/theme.js +21 -4
  78. package/dist/theme.js.map +1 -1
  79. package/dist/theme.mjs +41 -17
  80. package/dist/theme.mjs.map +1 -1
  81. package/dist/turbopackLoader.js +58 -16
  82. package/dist/turbopackLoader.js.map +1 -1
  83. package/dist/turbopackLoader.mjs +89 -45
  84. package/dist/turbopackLoader.mjs.map +1 -1
  85. package/dist/tw.js +153 -39
  86. package/dist/tw.js.map +1 -1
  87. package/dist/tw.mjs +321 -203
  88. package/dist/tw.mjs.map +1 -1
  89. package/dist/vite.js +131 -54
  90. package/dist/vite.js.map +1 -1
  91. package/dist/vite.mjs +226 -143
  92. package/dist/vite.mjs.map +1 -1
  93. package/dist/vue.js +40 -9
  94. package/dist/vue.js.map +1 -1
  95. package/dist/vue.mjs +57 -28
  96. package/dist/vue.mjs.map +1 -1
  97. package/dist/webpackLoader.js +40 -10
  98. package/dist/webpackLoader.js.map +1 -1
  99. package/dist/webpackLoader.mjs +59 -27
  100. package/dist/webpackLoader.mjs.map +1 -1
  101. package/package.json +1 -1
package/dist/engine.mjs CHANGED
@@ -26,6 +26,20 @@ var __copyProps = (to, from, except, desc) => {
26
26
  };
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
28
 
29
+ // node_modules/tsup/assets/esm_shims.js
30
+ import path from "path";
31
+ import { fileURLToPath } from "url";
32
+ var getFilename, getDirname, __dirname, __filename;
33
+ var init_esm_shims = __esm({
34
+ "node_modules/tsup/assets/esm_shims.js"() {
35
+ "use strict";
36
+ getFilename = () => fileURLToPath(import.meta.url);
37
+ getDirname = () => path.dirname(getFilename());
38
+ __dirname = /* @__PURE__ */ getDirname();
39
+ __filename = /* @__PURE__ */ getFilename();
40
+ }
41
+ });
42
+
29
43
  // packages/domain/shared/src/trace.ts
30
44
  function getHealthColor(status) {
31
45
  switch (status) {
@@ -119,6 +133,7 @@ function getPipelinePercentages(metrics) {
119
133
  var init_trace = __esm({
120
134
  "packages/domain/shared/src/trace.ts"() {
121
135
  "use strict";
136
+ init_esm_shims();
122
137
  }
123
138
  });
124
139
 
@@ -134,6 +149,7 @@ var ERROR_CODES, ERROR_SUGGESTIONS;
134
149
  var init_error_codes = __esm({
135
150
  "packages/domain/shared/src/error-codes.ts"() {
136
151
  "use strict";
152
+ init_esm_shims();
137
153
  ERROR_CODES = {
138
154
  // E0xx — Native binding
139
155
  NATIVE_NOT_FOUND: "E001",
@@ -201,6 +217,7 @@ function isTailwindV4() {
201
217
  var init_compatibility = __esm({
202
218
  "packages/domain/shared/src/compatibility.ts"() {
203
219
  "use strict";
220
+ init_esm_shims();
204
221
  }
205
222
  });
206
223
 
@@ -214,9 +231,9 @@ function parseNative(schema, data, context) {
214
231
  const result = schema.safeParse(data);
215
232
  if (!result.success) {
216
233
  const first = result.error.issues[0];
217
- const path16 = first?.path?.join(".") ?? "(root)";
234
+ const path17 = first?.path?.join(".") ?? "(root)";
218
235
  throw new Error(
219
- `[${context}] Native binding returned unexpected data: ${path16}: ${first?.message ?? "validation failed"}`
236
+ `[${context}] Native binding returned unexpected data: ${path17}: ${first?.message ?? "validation failed"}`
220
237
  );
221
238
  }
222
239
  return result.data;
@@ -225,6 +242,7 @@ var NativeScanFileSchema, NativeScanResultSchema, NativeClassUsageSchema, Native
225
242
  var init_native_schemas = __esm({
226
243
  "packages/domain/shared/src/native-schemas.ts"() {
227
244
  "use strict";
245
+ init_esm_shims();
228
246
  NativeScanFileSchema = z.object({
229
247
  file: z.string().min(1, "file path cannot be empty"),
230
248
  classes: z.array(z.string()),
@@ -355,14 +373,14 @@ function createEsmRequire(importMetaUrl) {
355
373
  if (!nodeRequire) throw new Error("require not available");
356
374
  return nodeRequire.createRequire(importMetaUrl);
357
375
  }
358
- function getDirname(importMetaUrl) {
376
+ function getDirname2(importMetaUrl) {
359
377
  if (isBrowser) return "";
360
378
  if (typeof __dirname !== "undefined") return __dirname;
361
379
  const nodePath = getNodePath();
362
380
  const nodeUrl = getNodeUrl();
363
381
  return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl));
364
382
  }
365
- function getFilename(importMetaUrl) {
383
+ function getFilename2(importMetaUrl) {
366
384
  if (isBrowser) return "";
367
385
  if (typeof __filename !== "undefined") return __filename;
368
386
  return getNodeUrl().fileURLToPath(importMetaUrl);
@@ -371,7 +389,7 @@ function resolveFromRoot(...segments) {
371
389
  if (isBrowser) return segments.join("/");
372
390
  const nodePath = getNodePath();
373
391
  const nodeFs = getNodeFs();
374
- let dir = typeof __dirname !== "undefined" ? __dirname : getDirname(getCurrentFileUrl());
392
+ let dir = typeof __dirname !== "undefined" ? __dirname : getDirname2(getCurrentFileUrl());
375
393
  for (let i = 0; i < 10; i++) {
376
394
  const pkgPath = nodePath.join(dir, "package.json");
377
395
  try {
@@ -395,12 +413,13 @@ function tryRequire(moduleName, importMetaUrl) {
395
413
  }
396
414
  function resolveNativeNodePath(importMetaUrl, ...relativeSegments) {
397
415
  if (isBrowser) return relativeSegments.join("/");
398
- return getNodePath().resolve(getDirname(importMetaUrl), ...relativeSegments);
416
+ return getNodePath().resolve(getDirname2(importMetaUrl), ...relativeSegments);
399
417
  }
400
418
  var isBrowser, nodeModuleRef, _nodePath, _nodeUrl, _nodeFs;
401
419
  var init_esmHelpers = __esm({
402
420
  "packages/domain/shared/src/esmHelpers.ts"() {
403
421
  "use strict";
422
+ init_esm_shims();
404
423
  isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
405
424
  nodeModuleRef = null;
406
425
  _nodePath = null;
@@ -452,6 +471,7 @@ var RING_BUFFER_SIZE, TelemetryCollector, _globalCollector;
452
471
  var init_telemetry = __esm({
453
472
  "packages/domain/shared/src/telemetry.ts"() {
454
473
  "use strict";
474
+ init_esm_shims();
455
475
  RING_BUFFER_SIZE = 100;
456
476
  TelemetryCollector = class {
457
477
  data = [];
@@ -555,6 +575,7 @@ var ScanCacheClassEntrySchema, ScanCacheSchema, TailwindContentItemSchema, Tailw
555
575
  var init_configSchemas = __esm({
556
576
  "packages/domain/shared/src/configSchemas.ts"() {
557
577
  "use strict";
578
+ init_esm_shims();
558
579
  ScanCacheClassEntrySchema = z2.object({
559
580
  name: z2.string().min(1),
560
581
  usedIn: z2.array(z2.string()),
@@ -646,11 +667,11 @@ function resolvePath(...segments) {
646
667
  return segments.join("/").replace(/\/+/g, "/");
647
668
  }
648
669
  }
649
- function existsSync(path16) {
670
+ function existsSync(path17) {
650
671
  if (isBrowser2) return false;
651
672
  try {
652
673
  const nodeFs = __require(NODE_FS);
653
- return nodeFs.existsSync(path16);
674
+ return nodeFs.existsSync(path17);
654
675
  } catch {
655
676
  return false;
656
677
  }
@@ -704,6 +725,7 @@ var isBrowser2, NODE_URL, NODE_FS, NODE_PATH;
704
725
  var init_workerResolver = __esm({
705
726
  "packages/domain/shared/src/workerResolver.ts"() {
706
727
  "use strict";
728
+ init_esm_shims();
707
729
  isBrowser2 = typeof window !== "undefined" || typeof document !== "undefined";
708
730
  NODE_URL = typeof window === "undefined" || typeof document === "undefined" ? "node:url" : null;
709
731
  NODE_FS = typeof window === "undefined" || typeof document === "undefined" ? "node:fs" : null;
@@ -870,13 +892,23 @@ function generateBarrelFile(exports, dir, opts = {}) {
870
892
  var init_codegen = __esm({
871
893
  "packages/domain/shared/src/codegen.ts"() {
872
894
  "use strict";
895
+ init_esm_shims();
873
896
  }
874
897
  });
875
898
 
876
899
  // packages/domain/shared/src/native-resolution.ts
877
900
  import { createRequire } from "module";
878
901
  import * as fs from "fs";
879
- import * as path from "path";
902
+ import * as path2 from "path";
903
+ function _safeCreateRequire() {
904
+ if (typeof import.meta !== "undefined" && import.meta.url && !import.meta.url.includes("unknown")) {
905
+ return createRequire(import.meta.url);
906
+ }
907
+ if (typeof __filename !== "undefined") {
908
+ return createRequire(__filename);
909
+ }
910
+ return createRequire(new URL(`file://${process.cwd()}/`).href);
911
+ }
880
912
  function platformKey() {
881
913
  if (isBrowser3) return "browser";
882
914
  return `${process.platform}-${process.arch}`;
@@ -912,11 +944,11 @@ function resolveNativeBinary(runtimeDir) {
912
944
  const napiPlatform = platform === "linux-x64" ? "linux-x64-gnu" : platform === "linux-arm64" ? "linux-arm64-gnu" : platform;
913
945
  const BINARY_NAMES_SELF = ["tailwind-styled-native", "tailwind_styled_parser"];
914
946
  if (runtimeDir) {
915
- for (const depth of ["..", path.join("..", ".."), path.join("..", "..", "..")]) {
916
- const pkgRoot = path.resolve(runtimeDir, depth);
947
+ for (const depth of ["..", path2.join("..", ".."), path2.join("..", "..", "..")]) {
948
+ const pkgRoot = path2.resolve(runtimeDir, depth);
917
949
  for (const bin of BINARY_NAMES_SELF) {
918
950
  for (const suffix of ["", `.${platform}`, `.${napiPlatform}`]) {
919
- const candidate = path.resolve(pkgRoot, "native", `${bin}${suffix}.node`);
951
+ const candidate = path2.resolve(pkgRoot, "native", `${bin}${suffix}.node`);
920
952
  tried.push(`self-bundled:${candidate}`);
921
953
  if (fs.existsSync(candidate)) {
922
954
  return { path: candidate, source: "prebuilt", platform, tried };
@@ -930,22 +962,22 @@ function resolveNativeBinary(runtimeDir) {
930
962
  const BINARY_NAMES = ["tailwind-styled-native", "tailwind_styled_parser"];
931
963
  const localCandidates = [];
932
964
  for (const bin of BINARY_NAMES) {
933
- localCandidates.push(path.resolve(base, `${bin}.node`));
934
- localCandidates.push(path.resolve(base, "..", `${bin}.node`));
935
- localCandidates.push(path.resolve(base, `${bin}.${platform}.node`));
936
- localCandidates.push(path.resolve(base, `${bin}.${napiPlatform}.node`));
965
+ localCandidates.push(path2.resolve(base, `${bin}.node`));
966
+ localCandidates.push(path2.resolve(base, "..", `${bin}.node`));
967
+ localCandidates.push(path2.resolve(base, `${bin}.${platform}.node`));
968
+ localCandidates.push(path2.resolve(base, `${bin}.${napiPlatform}.node`));
937
969
  }
938
970
  for (const startDir of [cwd, base]) {
939
971
  let dir = startDir;
940
972
  for (let i = 0; i < 6; i++) {
941
- const nativeDir = path.resolve(dir, "native");
973
+ const nativeDir = path2.resolve(dir, "native");
942
974
  for (const bin of BINARY_NAMES) {
943
- localCandidates.push(path.resolve(nativeDir, `${bin}.node`));
944
- localCandidates.push(path.resolve(nativeDir, `${bin}.${platform}.node`));
945
- localCandidates.push(path.resolve(nativeDir, `${bin}.${napiPlatform}.node`));
946
- localCandidates.push(path.resolve(nativeDir, "target", "release", `${bin}.node`));
975
+ localCandidates.push(path2.resolve(nativeDir, `${bin}.node`));
976
+ localCandidates.push(path2.resolve(nativeDir, `${bin}.${platform}.node`));
977
+ localCandidates.push(path2.resolve(nativeDir, `${bin}.${napiPlatform}.node`));
978
+ localCandidates.push(path2.resolve(nativeDir, "target", "release", `${bin}.node`));
947
979
  }
948
- const parent = path.resolve(dir, "..");
980
+ const parent = path2.resolve(dir, "..");
949
981
  if (parent === dir) break;
950
982
  dir = parent;
951
983
  }
@@ -976,10 +1008,9 @@ var isBrowser3, _require, PLATFORM_MAP;
976
1008
  var init_native_resolution = __esm({
977
1009
  "packages/domain/shared/src/native-resolution.ts"() {
978
1010
  "use strict";
1011
+ init_esm_shims();
979
1012
  isBrowser3 = typeof window !== "undefined" || typeof document !== "undefined";
980
- _require = createRequire(
981
- typeof __require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : import.meta.url
982
- );
1013
+ _require = _safeCreateRequire();
983
1014
  PLATFORM_MAP = {
984
1015
  "linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
985
1016
  "linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
@@ -994,9 +1025,9 @@ var init_native_resolution = __esm({
994
1025
  // packages/domain/shared/src/observability.ts
995
1026
  function createObservabilityClient(opts = {}) {
996
1027
  const { baseUrl = "http://localhost:7421", timeoutMs = 3e3 } = opts;
997
- async function fetchJson(path16) {
1028
+ async function fetchJson(path17) {
998
1029
  try {
999
- const res = await fetch(`${baseUrl}${path16}`, {
1030
+ const res = await fetch(`${baseUrl}${path17}`, {
1000
1031
  signal: AbortSignal.timeout(timeoutMs)
1001
1032
  });
1002
1033
  if (!res.ok) return null;
@@ -1026,6 +1057,7 @@ function createObservabilityClient(opts = {}) {
1026
1057
  var init_observability = __esm({
1027
1058
  "packages/domain/shared/src/observability.ts"() {
1028
1059
  "use strict";
1060
+ init_esm_shims();
1029
1061
  }
1030
1062
  });
1031
1063
 
@@ -1034,8 +1066,9 @@ var _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttemp
1034
1066
  var init_nativeBridge = __esm({
1035
1067
  "packages/domain/compiler/src/nativeBridge.ts"() {
1036
1068
  "use strict";
1069
+ init_esm_shims();
1037
1070
  init_src2();
1038
- _loadNative = (path16) => __require(path16);
1071
+ _loadNative = (path17) => __require(path17);
1039
1072
  log = (...args) => {
1040
1073
  if (process.env.DEBUG?.includes("compiler:native")) {
1041
1074
  console.log("[compiler:native]", ...args);
@@ -1174,6 +1207,7 @@ function resetCacheStats() {
1174
1207
  var init_cssGeneratorNative = __esm({
1175
1208
  "packages/domain/compiler/src/compiler/cssGeneratorNative.ts"() {
1176
1209
  "use strict";
1210
+ init_esm_shims();
1177
1211
  init_nativeBridge();
1178
1212
  }
1179
1213
  });
@@ -1247,6 +1281,7 @@ function atomicRegistrySize() {
1247
1281
  var init_compilationNative = __esm({
1248
1282
  "packages/domain/compiler/src/compiler/compilationNative.ts"() {
1249
1283
  "use strict";
1284
+ init_esm_shims();
1250
1285
  init_nativeBridge();
1251
1286
  }
1252
1287
  });
@@ -1391,6 +1426,7 @@ function twMergeRaw(classLists) {
1391
1426
  var init_cssCompilationNative = __esm({
1392
1427
  "packages/domain/compiler/src/compiler/cssCompilationNative.ts"() {
1393
1428
  "use strict";
1429
+ init_esm_shims();
1394
1430
  init_nativeBridge();
1395
1431
  }
1396
1432
  });
@@ -1491,6 +1527,7 @@ function idRegistryImport(importedData) {
1491
1527
  var init_idRegistryNative = __esm({
1492
1528
  "packages/domain/compiler/src/compiler/idRegistryNative.ts"() {
1493
1529
  "use strict";
1530
+ init_esm_shims();
1494
1531
  init_nativeBridge();
1495
1532
  }
1496
1533
  });
@@ -1633,6 +1670,7 @@ function scanFilesBatchNative(filesJson) {
1633
1670
  var init_streamingNative = __esm({
1634
1671
  "packages/domain/compiler/src/compiler/streamingNative.ts"() {
1635
1672
  "use strict";
1673
+ init_esm_shims();
1636
1674
  init_nativeBridge();
1637
1675
  }
1638
1676
  });
@@ -1685,6 +1723,7 @@ var require2, MAX_CACHE_MEMORY, _twEngine, _twEngineError;
1685
1723
  var init_tailwindEngine = __esm({
1686
1724
  "packages/domain/compiler/src/tailwindEngine.ts"() {
1687
1725
  "use strict";
1726
+ init_esm_shims();
1688
1727
  require2 = createRequire2(
1689
1728
  typeof __filename !== "undefined" ? `file://${__filename}` : typeof import.meta !== "undefined" && import.meta.url ? import.meta.url : "file://unknown"
1690
1729
  );
@@ -1874,6 +1913,7 @@ var require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEM
1874
1913
  var init_tailwindEngine2 = __esm({
1875
1914
  "packages/domain/compiler/src/compiler/tailwindEngine.ts"() {
1876
1915
  "use strict";
1916
+ init_esm_shims();
1877
1917
  init_nativeBridge();
1878
1918
  init_cssGeneratorNative();
1879
1919
  init_cssCompilationNative();
@@ -1893,6 +1933,7 @@ var init_tailwindEngine2 = __esm({
1893
1933
  var init_compiler = __esm({
1894
1934
  "packages/domain/compiler/src/compiler/index.ts"() {
1895
1935
  "use strict";
1936
+ init_esm_shims();
1896
1937
  init_cssGeneratorNative();
1897
1938
  init_compilationNative();
1898
1939
  init_cssCompilationNative();
@@ -1906,6 +1947,7 @@ var parseClasses, parseClass, extractAllClasses, extractClassesFromSource, astEx
1906
1947
  var init_parser = __esm({
1907
1948
  "packages/domain/compiler/src/parser/index.ts"() {
1908
1949
  "use strict";
1950
+ init_esm_shims();
1909
1951
  init_nativeBridge();
1910
1952
  parseClasses = (raw) => {
1911
1953
  const native = getNativeBridge();
@@ -2085,6 +2127,7 @@ function resetMemoryStats() {
2085
2127
  var init_analyzerNative = __esm({
2086
2128
  "packages/domain/compiler/src/analyzer/analyzerNative.ts"() {
2087
2129
  "use strict";
2130
+ init_esm_shims();
2088
2131
  init_nativeBridge();
2089
2132
  }
2090
2133
  });
@@ -2179,6 +2222,7 @@ function resolveSimpleVariants(configJson) {
2179
2222
  var init_themeResolutionNative = __esm({
2180
2223
  "packages/domain/compiler/src/analyzer/themeResolutionNative.ts"() {
2181
2224
  "use strict";
2225
+ init_esm_shims();
2182
2226
  init_nativeBridge();
2183
2227
  }
2184
2228
  });
@@ -2227,6 +2271,7 @@ function generateSubComponentTypes(root, outputPath) {
2227
2271
  var init_scannerNative = __esm({
2228
2272
  "packages/domain/compiler/src/analyzer/scannerNative.ts"() {
2229
2273
  "use strict";
2274
+ init_esm_shims();
2230
2275
  init_nativeBridge();
2231
2276
  }
2232
2277
  });
@@ -2235,6 +2280,7 @@ var init_scannerNative = __esm({
2235
2280
  var init_analyzer = __esm({
2236
2281
  "packages/domain/compiler/src/analyzer/index.ts"() {
2237
2282
  "use strict";
2283
+ init_esm_shims();
2238
2284
  init_analyzerNative();
2239
2285
  init_themeResolutionNative();
2240
2286
  init_scannerNative();
@@ -2424,6 +2470,7 @@ function resetResolverPoolStats() {
2424
2470
  var init_cacheNative = __esm({
2425
2471
  "packages/domain/compiler/src/cache/cacheNative.ts"() {
2426
2472
  "use strict";
2473
+ init_esm_shims();
2427
2474
  init_nativeBridge();
2428
2475
  }
2429
2476
  });
@@ -2432,6 +2479,7 @@ var init_cacheNative = __esm({
2432
2479
  var init_cache = __esm({
2433
2480
  "packages/domain/compiler/src/cache/index.ts"() {
2434
2481
  "use strict";
2482
+ init_esm_shims();
2435
2483
  init_cacheNative();
2436
2484
  }
2437
2485
  });
@@ -2681,6 +2729,7 @@ function redisDiagnose() {
2681
2729
  var init_redisNative = __esm({
2682
2730
  "packages/domain/compiler/src/redis/redisNative.ts"() {
2683
2731
  "use strict";
2732
+ init_esm_shims();
2684
2733
  init_nativeBridge();
2685
2734
  }
2686
2735
  });
@@ -2689,6 +2738,7 @@ var init_redisNative = __esm({
2689
2738
  var init_redis = __esm({
2690
2739
  "packages/domain/compiler/src/redis/index.ts"() {
2691
2740
  "use strict";
2741
+ init_esm_shims();
2692
2742
  init_redisNative();
2693
2743
  }
2694
2744
  });
@@ -2828,6 +2878,7 @@ function getCompilerDiagnostics() {
2828
2878
  var init_watchSystemNative = __esm({
2829
2879
  "packages/domain/compiler/src/watch/watchSystemNative.ts"() {
2830
2880
  "use strict";
2881
+ init_esm_shims();
2831
2882
  init_nativeBridge();
2832
2883
  }
2833
2884
  });
@@ -2836,13 +2887,14 @@ var init_watchSystemNative = __esm({
2836
2887
  var init_watch = __esm({
2837
2888
  "packages/domain/compiler/src/watch/index.ts"() {
2838
2889
  "use strict";
2890
+ init_esm_shims();
2839
2891
  init_watchSystemNative();
2840
2892
  }
2841
2893
  });
2842
2894
 
2843
2895
  // packages/domain/compiler/src/index.ts
2844
2896
  import fs2 from "fs";
2845
- import path2 from "path";
2897
+ import path3 from "path";
2846
2898
  import { createRequire as createRequire4 } from "module";
2847
2899
  function _layoutClassesToCss(classes) {
2848
2900
  const native = getNativeBridge();
@@ -2882,6 +2934,7 @@ var _require2, transformSource, hasTwUsage, isAlreadyTransformed, shouldProcess,
2882
2934
  var init_src = __esm({
2883
2935
  "packages/domain/compiler/src/index.ts"() {
2884
2936
  "use strict";
2937
+ init_esm_shims();
2885
2938
  init_nativeBridge();
2886
2939
  init_compiler();
2887
2940
  init_parser();
@@ -2983,7 +3036,7 @@ var init_src = __esm({
2983
3036
  };
2984
3037
  scanProjectUsage = (dirs, cwd) => {
2985
3038
  const { batchExtractClasses: batchExtractClasses2 } = _require2("./parser");
2986
- const files = dirs.map((dir) => path2.resolve(cwd, dir));
3039
+ const files = dirs.map((dir) => path3.resolve(cwd, dir));
2987
3040
  const results = batchExtractClasses2(files) || [];
2988
3041
  const combined = {};
2989
3042
  for (const result of results) {
@@ -3020,7 +3073,7 @@ var init_src = __esm({
3020
3073
  "tailwind.config.cjs"
3021
3074
  ];
3022
3075
  for (const file of configFiles) {
3023
- const fullPath = path2.join(cwd, file);
3076
+ const fullPath = path3.join(cwd, file);
3024
3077
  if (fs2.existsSync(fullPath)) {
3025
3078
  const mod = __require(fullPath);
3026
3079
  return mod.default || mod;
@@ -3031,9 +3084,9 @@ var init_src = __esm({
3031
3084
  getContentPaths = (cwd = process.cwd()) => {
3032
3085
  return {
3033
3086
  content: [
3034
- path2.join(cwd, "src/**/*.{js,ts,jsx,tsx}"),
3035
- path2.join(cwd, "app/**/*.{js,ts,jsx,tsx}"),
3036
- path2.join(cwd, "pages/**/*.{js,ts,jsx,tsx}")
3087
+ path3.join(cwd, "src/**/*.{js,ts,jsx,tsx}"),
3088
+ path3.join(cwd, "app/**/*.{js,ts,jsx,tsx}"),
3089
+ path3.join(cwd, "pages/**/*.{js,ts,jsx,tsx}")
3037
3090
  ]
3038
3091
  };
3039
3092
  };
@@ -3448,6 +3501,7 @@ __export(internal_exports, {
3448
3501
  var init_internal = __esm({
3449
3502
  "packages/domain/compiler/src/internal.ts"() {
3450
3503
  "use strict";
3504
+ init_esm_shims();
3451
3505
  init_src();
3452
3506
  init_tailwindEngine2();
3453
3507
  init_compiler();
@@ -3461,7 +3515,7 @@ var init_internal = __esm({
3461
3515
 
3462
3516
  // packages/domain/shared/src/staticStateExtractor.ts
3463
3517
  import fs3 from "fs";
3464
- import path3 from "path";
3518
+ import path4 from "path";
3465
3519
  function getNative() {
3466
3520
  if (_native) return _native;
3467
3521
  try {
@@ -3496,12 +3550,12 @@ function* walkSourceFiles(dir) {
3496
3550
  return;
3497
3551
  }
3498
3552
  for (const entry of entries) {
3499
- const fullPath = path3.join(dir, entry.name);
3553
+ const fullPath = path4.join(dir, entry.name);
3500
3554
  if (entry.isDirectory()) {
3501
3555
  if (IGNORE_PATTERNS.some((p) => entry.name === p || entry.name.startsWith(p))) continue;
3502
3556
  yield* walkSourceFiles(fullPath);
3503
3557
  } else if (entry.isFile()) {
3504
- const ext = path3.extname(entry.name);
3558
+ const ext = path4.extname(entry.name);
3505
3559
  if (SOURCE_EXTENSIONS.has(ext)) yield fullPath;
3506
3560
  }
3507
3561
  }
@@ -3565,7 +3619,7 @@ function extractStaticStateCss(srcDir, options = {}) {
3565
3619
  allConfigs.push(...configs);
3566
3620
  if (verbose) {
3567
3621
  process.stderr.write(
3568
- `[tw:static-state] ${path3.relative(srcDir, filePath)}: ${configs.length} komponen
3622
+ `[tw:static-state] ${path4.relative(srcDir, filePath)}: ${configs.length} komponen
3569
3623
  `
3570
3624
  );
3571
3625
  }
@@ -3589,7 +3643,7 @@ function extractStaticStateCss(srcDir, options = {}) {
3589
3643
  allConfigs.push(...configs);
3590
3644
  if (verbose) {
3591
3645
  process.stderr.write(
3592
- `[tw:static-state] ${path3.relative(srcDir, filePath)}: ${configs.length} komponen
3646
+ `[tw:static-state] ${path4.relative(srcDir, filePath)}: ${configs.length} komponen
3593
3647
  `
3594
3648
  );
3595
3649
  }
@@ -3683,9 +3737,9 @@ function appendStaticStateCssToSafelist(srcDir, safelistPath, options = {}) {
3683
3737
  resolvedCss: options.resolvedCss || ""
3684
3738
  // ← ensure always passed
3685
3739
  });
3686
- const twClassesDir = path3.join(path3.dirname(safelistPath), "tw-classes");
3740
+ const twClassesDir = path4.join(path4.dirname(safelistPath), "tw-classes");
3687
3741
  fs3.mkdirSync(twClassesDir, { recursive: true });
3688
- const stateFilePath = path3.join(twClassesDir, TW_STATE_STATIC_FILENAME);
3742
+ const stateFilePath = path4.join(twClassesDir, TW_STATE_STATIC_FILENAME);
3689
3743
  if (result.rulesGenerated === 0) {
3690
3744
  try {
3691
3745
  fs3.writeFileSync(
@@ -3714,6 +3768,7 @@ var SOURCE_EXTENSIONS, IGNORE_PATTERNS, _native, TW_STATE_STATIC_FILENAME;
3714
3768
  var init_staticStateExtractor = __esm({
3715
3769
  "packages/domain/shared/src/staticStateExtractor.ts"() {
3716
3770
  "use strict";
3771
+ init_esm_shims();
3717
3772
  SOURCE_EXTENSIONS = /* @__PURE__ */ new Set([".ts", ".tsx", ".js", ".jsx", ".mts", ".mjs"]);
3718
3773
  IGNORE_PATTERNS = ["node_modules", ".next", "dist", "build", ".git", "coverage", "__tests__"];
3719
3774
  _native = null;
@@ -3723,7 +3778,7 @@ var init_staticStateExtractor = __esm({
3723
3778
 
3724
3779
  // packages/domain/shared/src/logger.ts
3725
3780
  import fs4 from "fs";
3726
- import path4 from "path";
3781
+ import path5 from "path";
3727
3782
  function getEnvLevel() {
3728
3783
  const env = process.env.TWS_LOG_LEVEL?.toLowerCase();
3729
3784
  if (env && env in LEVELS) return env;
@@ -3733,7 +3788,7 @@ function setGlobalLogFile(filePath) {
3733
3788
  _globalLogFile = filePath;
3734
3789
  _logFileInitialized = false;
3735
3790
  try {
3736
- fs4.mkdirSync(path4.dirname(filePath), { recursive: true });
3791
+ fs4.mkdirSync(path5.dirname(filePath), { recursive: true });
3737
3792
  fs4.writeFileSync(
3738
3793
  filePath,
3739
3794
  `# tailwind-styled build log \u2014 ${(/* @__PURE__ */ new Date()).toISOString()}
@@ -3778,6 +3833,7 @@ var LEVELS, _globalLogFile, _logFileInitialized, logger;
3778
3833
  var init_logger = __esm({
3779
3834
  "packages/domain/shared/src/logger.ts"() {
3780
3835
  "use strict";
3836
+ init_esm_shims();
3781
3837
  LEVELS = { silent: 0, error: 1, warn: 2, info: 3, debug: 4 };
3782
3838
  _globalLogFile = null;
3783
3839
  _logFileInitialized = false;
@@ -3828,8 +3884,8 @@ __export(src_exports, {
3828
3884
  generateComponentCode: () => generateComponentCode,
3829
3885
  generateStorybookStory: () => generateStorybookStory,
3830
3886
  getBuildTimeColor: () => getBuildTimeColor,
3831
- getDirname: () => getDirname,
3832
- getFilename: () => getFilename,
3887
+ getDirname: () => getDirname2,
3888
+ getFilename: () => getFilename2,
3833
3889
  getGlobalTelemetry: () => getGlobalTelemetry,
3834
3890
  getHealthColor: () => getHealthColor,
3835
3891
  getMemoryColor: () => getMemoryColor,
@@ -3859,8 +3915,8 @@ __export(src_exports, {
3859
3915
  });
3860
3916
  import { createHash } from "crypto";
3861
3917
  import fs5 from "fs";
3862
- import path5 from "path";
3863
- import { fileURLToPath } from "url";
3918
+ import path6 from "path";
3919
+ import { fileURLToPath as fileURLToPath2 } from "url";
3864
3920
  import { createRequire as createRequire5 } from "module";
3865
3921
  function createLogger2(namespace) {
3866
3922
  const prefix = `[${namespace}]`;
@@ -3891,9 +3947,9 @@ function createDebugLogger(namespace, label) {
3891
3947
  }
3892
3948
  };
3893
3949
  }
3894
- function formatIssuePath(path16) {
3895
- if (!path16 || path16.length === 0) return "(root)";
3896
- return path16.map(
3950
+ function formatIssuePath(path17) {
3951
+ if (!path17 || path17.length === 0) return "(root)";
3952
+ return path17.map(
3897
3953
  (segment) => typeof segment === "symbol" ? segment.description ?? segment.toString() : String(segment)
3898
3954
  ).join(".");
3899
3955
  }
@@ -3907,7 +3963,7 @@ function loadNativeBinding(options) {
3907
3963
  const { runtimeDir, candidates, isValid } = options;
3908
3964
  const loadErrors = [];
3909
3965
  for (const candidate of candidates) {
3910
- const candidatePath = path5.resolve(runtimeDir, candidate);
3966
+ const candidatePath = path6.resolve(runtimeDir, candidate);
3911
3967
  try {
3912
3968
  if (!fs5.existsSync(candidatePath) && !fs5.existsSync(candidatePath + ".node")) {
3913
3969
  continue;
@@ -3952,22 +4008,22 @@ function resolveNativeBindingCandidates(options) {
3952
4008
  const BINARY_NAMES = ["tailwind-styled-native", "tailwind_styled_parser"];
3953
4009
  const napiPlatform = process.platform === "linux" && process.arch === "x64" ? "linux-x64-gnu" : process.platform === "linux" && process.arch === "arm64" ? "linux-arm64-gnu" : `${process.platform}-${process.arch}`;
3954
4010
  for (const bin of BINARY_NAMES) {
3955
- candidates.push(path5.resolve(runtimeDir, `${bin}.node`));
3956
- candidates.push(path5.resolve(runtimeDir, `${bin}.${napiPlatform}.node`));
3957
- candidates.push(path5.resolve(runtimeDir, "..", "native", `${bin}.node`));
3958
- candidates.push(path5.resolve(runtimeDir, "..", "native", `${bin}.${napiPlatform}.node`));
3959
- candidates.push(path5.resolve(process.cwd(), "native", `${bin}.node`));
3960
- candidates.push(path5.resolve(process.cwd(), "native", `${bin}.${napiPlatform}.node`));
3961
- candidates.push(path5.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.node`));
3962
- candidates.push(path5.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.${napiPlatform}.node`));
3963
- candidates.push(path5.resolve(runtimeDir, "..", "..", "..", "native", `${bin}.node`));
4011
+ candidates.push(path6.resolve(runtimeDir, `${bin}.node`));
4012
+ candidates.push(path6.resolve(runtimeDir, `${bin}.${napiPlatform}.node`));
4013
+ candidates.push(path6.resolve(runtimeDir, "..", "native", `${bin}.node`));
4014
+ candidates.push(path6.resolve(runtimeDir, "..", "native", `${bin}.${napiPlatform}.node`));
4015
+ candidates.push(path6.resolve(process.cwd(), "native", `${bin}.node`));
4016
+ candidates.push(path6.resolve(process.cwd(), "native", `${bin}.${napiPlatform}.node`));
4017
+ candidates.push(path6.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.node`));
4018
+ candidates.push(path6.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.${napiPlatform}.node`));
4019
+ candidates.push(path6.resolve(runtimeDir, "..", "..", "..", "native", `${bin}.node`));
3964
4020
  }
3965
4021
  return Array.from(new Set(candidates));
3966
4022
  }
3967
4023
  function resolveRuntimeDir(dir, importMetaUrl) {
3968
- if (dir) return path5.resolve(dir);
4024
+ if (dir) return path6.resolve(dir);
3969
4025
  try {
3970
- return path5.dirname(fileURLToPath(importMetaUrl));
4026
+ return path6.dirname(fileURLToPath2(importMetaUrl));
3971
4027
  } catch {
3972
4028
  return process.cwd();
3973
4029
  }
@@ -3985,6 +4041,7 @@ var TwError, _require3, LRUCache;
3985
4041
  var init_src2 = __esm({
3986
4042
  "packages/domain/shared/src/index.ts"() {
3987
4043
  "use strict";
4044
+ init_esm_shims();
3988
4045
  init_trace();
3989
4046
  init_error_codes();
3990
4047
  init_compatibility();
@@ -4031,8 +4088,8 @@ var init_src2 = __esm({
4031
4088
  /** Buat TwError dari ZodError — dukung shape Zod v3 (`errors`) dan v4 (`issues`). */
4032
4089
  static fromZod(err) {
4033
4090
  const first = err.issues?.[0] ?? err.errors?.[0];
4034
- const path16 = formatIssuePath(first?.path);
4035
- const message = first ? `${path16}: ${first.message}` : "Schema validation failed";
4091
+ const path17 = formatIssuePath(first?.path);
4092
+ const message = first ? `${path17}: ${first.message}` : "Schema validation failed";
4036
4093
  return new _TwError("validation", "SCHEMA_VALIDATION_FAILED", message, err);
4037
4094
  }
4038
4095
  static wrap(source, code, err) {
@@ -4126,14 +4183,14 @@ __export(native_bridge_exports, {
4126
4183
  startWatchNative: () => startWatchNative,
4127
4184
  stopWatchNative: () => stopWatchNative
4128
4185
  });
4129
- import path6 from "path";
4130
- import { fileURLToPath as fileURLToPath2 } from "url";
4131
- function getDirname2() {
4186
+ import path7 from "path";
4187
+ import { fileURLToPath as fileURLToPath3 } from "url";
4188
+ function getDirname3() {
4132
4189
  if (typeof __dirname !== "undefined") {
4133
4190
  return __dirname;
4134
4191
  }
4135
4192
  if (typeof import.meta !== "undefined" && import.meta.url) {
4136
- return path6.dirname(fileURLToPath2(import.meta.url));
4193
+ return path7.dirname(fileURLToPath3(import.meta.url));
4137
4194
  }
4138
4195
  return process.cwd();
4139
4196
  }
@@ -4342,6 +4399,7 @@ var log2, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader,
4342
4399
  var init_native_bridge = __esm({
4343
4400
  "packages/domain/scanner/src/native-bridge.ts"() {
4344
4401
  "use strict";
4402
+ init_esm_shims();
4345
4403
  init_src2();
4346
4404
  log2 = createDebugLogger("scanner:native");
4347
4405
  isValidScannerBinding = (module) => {
@@ -4384,7 +4442,7 @@ var init_native_bridge = __esm({
4384
4442
  }
4385
4443
  return throwNativeBindingError();
4386
4444
  }
4387
- const runtimeDir = getDirname2();
4445
+ const runtimeDir = getDirname3();
4388
4446
  const candidates = resolveNativeBindingCandidates({
4389
4447
  runtimeDir,
4390
4448
  includeDefaultCandidates: true
@@ -4425,14 +4483,14 @@ var init_native_bridge = __esm({
4425
4483
 
4426
4484
  // packages/domain/scanner/src/cache-native.ts
4427
4485
  import fs6 from "fs";
4428
- import path7 from "path";
4486
+ import path8 from "path";
4429
4487
  function defaultCachePath(rootDir, cacheDir) {
4430
- const dir = cacheDir ? path7.resolve(rootDir, cacheDir) : path7.join(process.cwd(), ".cache", "tailwind-styled");
4431
- return path7.join(dir, "scanner-cache.json");
4488
+ const dir = cacheDir ? path8.resolve(rootDir, cacheDir) : path8.join(process.cwd(), ".cache", "tailwind-styled");
4489
+ return path8.join(dir, "scanner-cache.json");
4432
4490
  }
4433
4491
  function readCache(rootDir, cacheDir) {
4434
4492
  const cachePath = defaultCachePath(rootDir, cacheDir);
4435
- fs6.mkdirSync(path7.dirname(cachePath), { recursive: true });
4493
+ fs6.mkdirSync(path8.dirname(cachePath), { recursive: true });
4436
4494
  const result = cacheReadNative(cachePath);
4437
4495
  if (!result) return [];
4438
4496
  return result.entries.map((e) => ({
@@ -4447,7 +4505,7 @@ function readCache(rootDir, cacheDir) {
4447
4505
  }
4448
4506
  function writeCache(rootDir, entries, cacheDir) {
4449
4507
  const cachePath = defaultCachePath(rootDir, cacheDir);
4450
- fs6.mkdirSync(path7.dirname(cachePath), { recursive: true });
4508
+ fs6.mkdirSync(path8.dirname(cachePath), { recursive: true });
4451
4509
  const success = cacheWriteNative(cachePath, entries);
4452
4510
  if (!success) {
4453
4511
  throw new Error(
@@ -4470,6 +4528,7 @@ var STALE_THRESHOLD_MS;
4470
4528
  var init_cache_native = __esm({
4471
4529
  "packages/domain/scanner/src/cache-native.ts"() {
4472
4530
  "use strict";
4531
+ init_esm_shims();
4473
4532
  init_native_bridge();
4474
4533
  STALE_THRESHOLD_MS = 7 * 24 * 60 * 60 * 1e3;
4475
4534
  }
@@ -4477,9 +4536,9 @@ var init_cache_native = __esm({
4477
4536
 
4478
4537
  // packages/domain/scanner/src/parallel-scanner.ts
4479
4538
  import { Worker, isMainThread, parentPort, workerData } from "worker_threads";
4480
- import path8 from "path";
4539
+ import path9 from "path";
4481
4540
  import { availableParallelism } from "os";
4482
- import { fileURLToPath as fileURLToPath3 } from "url";
4541
+ import { fileURLToPath as fileURLToPath4 } from "url";
4483
4542
  function collectFiles2(rootDir, extensions, ignoreDirs) {
4484
4543
  const native = collectFilesNative(rootDir, extensions, ignoreDirs);
4485
4544
  if (native !== null) return native;
@@ -4520,7 +4579,7 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
4520
4579
  maxWorkers = Math.max(1, availableParallelism() - 1),
4521
4580
  chunkSize = DEFAULT_CHUNK_SIZE
4522
4581
  } = options;
4523
- const files = collectFiles2(path8.resolve(rootDir), extensions, ignoreDirs);
4582
+ const files = collectFiles2(path9.resolve(rootDir), extensions, ignoreDirs);
4524
4583
  if (files.length < PARALLEL_THRESHOLD) {
4525
4584
  return mergeResults(batchExtractClassesNative2(files));
4526
4585
  }
@@ -4540,6 +4599,7 @@ var PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
4540
4599
  var init_parallel_scanner = __esm({
4541
4600
  "packages/domain/scanner/src/parallel-scanner.ts"() {
4542
4601
  "use strict";
4602
+ init_esm_shims();
4543
4603
  init_src3();
4544
4604
  init_native_bridge();
4545
4605
  PARALLEL_THRESHOLD = 50;
@@ -4558,7 +4618,7 @@ var init_parallel_scanner = __esm({
4558
4618
  parentPort.postMessage(msg);
4559
4619
  }
4560
4620
  }
4561
- _workerFilename = typeof __filename !== "undefined" ? __filename : fileURLToPath3(import.meta.url);
4621
+ _workerFilename = typeof __filename !== "undefined" ? __filename : fileURLToPath4(import.meta.url);
4562
4622
  }
4563
4623
  });
4564
4624
 
@@ -4568,13 +4628,14 @@ var formatIssuePath2, formatIssues, parseWithSchema, NonNegativeIntegerSchema, S
4568
4628
  var init_schemas = __esm({
4569
4629
  "packages/domain/scanner/src/schemas.ts"() {
4570
4630
  "use strict";
4631
+ init_esm_shims();
4571
4632
  init_src2();
4572
- formatIssuePath2 = (path16) => path16.length > 0 ? path16.map(
4633
+ formatIssuePath2 = (path17) => path17.length > 0 ? path17.map(
4573
4634
  (segment) => typeof segment === "symbol" ? segment.description ?? segment.toString() : String(segment)
4574
4635
  ).join(".") : "<root>";
4575
4636
  formatIssues = (error) => error.issues.map((issue) => {
4576
- const path16 = formatIssuePath2(issue.path);
4577
- return `${path16}: ${issue.message}`;
4637
+ const path17 = formatIssuePath2(issue.path);
4638
+ return `${path17}: ${issue.message}`;
4578
4639
  }).join("; ");
4579
4640
  parseWithSchema = (schema, data, label) => {
4580
4641
  const parsed = schema.safeParse(data);
@@ -4648,15 +4709,15 @@ __export(src_exports2, {
4648
4709
  });
4649
4710
  import fs7 from "fs";
4650
4711
  import { createRequire as createRequire6 } from "module";
4651
- import path9 from "path";
4652
- import { fileURLToPath as fileURLToPath4 } from "url";
4712
+ import path10 from "path";
4713
+ import { fileURLToPath as fileURLToPath5 } from "url";
4653
4714
  import { Worker as Worker2 } from "worker_threads";
4654
4715
  function getRuntimeDir() {
4655
4716
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
4656
4717
  return __dirname;
4657
4718
  }
4658
4719
  if (typeof import.meta !== "undefined" && import.meta.url) {
4659
- return path9.dirname(fileURLToPath4(import.meta.url));
4720
+ return path10.dirname(fileURLToPath5(import.meta.url));
4660
4721
  }
4661
4722
  return process.cwd();
4662
4723
  }
@@ -4666,14 +4727,14 @@ function resolveScannerWorkerModulePath() {
4666
4727
  return __dirname;
4667
4728
  }
4668
4729
  if (typeof import.meta !== "undefined" && import.meta.url) {
4669
- return path9.dirname(fileURLToPath4(import.meta.url));
4730
+ return path10.dirname(fileURLToPath5(import.meta.url));
4670
4731
  }
4671
4732
  return process.cwd();
4672
4733
  })();
4673
4734
  const candidates = [
4674
- path9.resolve(runtimeDir, "worker.cjs"),
4675
- path9.resolve(runtimeDir, "worker.js"),
4676
- path9.resolve(runtimeDir, "worker.ts")
4735
+ path10.resolve(runtimeDir, "worker.cjs"),
4736
+ path10.resolve(runtimeDir, "worker.js"),
4737
+ path10.resolve(runtimeDir, "worker.ts")
4677
4738
  ];
4678
4739
  for (const candidate of candidates) {
4679
4740
  if (fs7.existsSync(candidate)) return candidate;
@@ -4739,13 +4800,13 @@ function collectCandidates(rootDir, ignoreDirectories, extensionSet) {
4739
4800
  }
4740
4801
  })();
4741
4802
  for (const entry of entries) {
4742
- const fullPath = path9.join(currentDir, entry.name);
4803
+ const fullPath = path10.join(currentDir, entry.name);
4743
4804
  if (entry.isDirectory()) {
4744
4805
  if (!ignoreDirectories.has(entry.name)) directories.push(fullPath);
4745
4806
  continue;
4746
4807
  }
4747
4808
  if (!entry.isFile()) continue;
4748
- if (!extensionSet.has(path9.extname(entry.name))) continue;
4809
+ if (!extensionSet.has(path10.extname(entry.name))) continue;
4749
4810
  candidates.push(fullPath);
4750
4811
  }
4751
4812
  }
@@ -4772,7 +4833,7 @@ function scanSource(source) {
4772
4833
  );
4773
4834
  }
4774
4835
  function isScannableFile2(filePath, includeExtensions = DEFAULT_EXTENSIONS) {
4775
- return includeExtensions.includes(path9.extname(filePath));
4836
+ return includeExtensions.includes(path10.extname(filePath));
4776
4837
  }
4777
4838
  function scanFile2(filePath) {
4778
4839
  const { scanFileNative: scanFileNative3 } = (init_native_bridge(), __toCommonJS(native_bridge_exports));
@@ -4943,6 +5004,7 @@ var log3, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader,
4943
5004
  var init_src3 = __esm({
4944
5005
  "packages/domain/scanner/src/index.ts"() {
4945
5006
  "use strict";
5007
+ init_esm_shims();
4946
5008
  init_src2();
4947
5009
  init_cache_native();
4948
5010
  init_native_bridge();
@@ -4963,7 +5025,7 @@ var init_src3 = __esm({
4963
5025
  const loadNativeParserBinding = () => {
4964
5026
  if (_state.binding !== void 0) return _state.binding;
4965
5027
  const runtimeDir = getRuntimeDir();
4966
- const req = createRequire6(path9.join(runtimeDir, "noop.cjs"));
5028
+ const req = createRequire6(path10.join(runtimeDir, "noop.cjs"));
4967
5029
  const _platform = process.platform;
4968
5030
  const _arch = process.arch;
4969
5031
  const _platformArch = `${_platform}-${_arch}`;
@@ -4971,27 +5033,27 @@ var init_src3 = __esm({
4971
5033
  const candidates = [
4972
5034
  // ── binaryName baru: tailwind-styled-native (napi-rs naming) ──
4973
5035
  // cwd = repo root saat run dari root, atau package dir saat workspaces
4974
- path9.resolve(process.cwd(), "native", "tailwind-styled-native.node"),
4975
- path9.resolve(process.cwd(), "native", `tailwind-styled-native.${_platformArch}.node`),
4976
- path9.resolve(process.cwd(), "native", `tailwind-styled-native.${_platformArchGnu}.node`),
5036
+ path10.resolve(process.cwd(), "native", "tailwind-styled-native.node"),
5037
+ path10.resolve(process.cwd(), "native", `tailwind-styled-native.${_platformArch}.node`),
5038
+ path10.resolve(process.cwd(), "native", `tailwind-styled-native.${_platformArchGnu}.node`),
4977
5039
  // runtimeDir = dist/ → naik 1 level ke package root (npm install case)
4978
5040
  // e.g. node_modules/tailwind-styled-v4/dist/ → node_modules/tailwind-styled-v4/native/
4979
- path9.resolve(runtimeDir, "..", "native", "tailwind-styled-native.node"),
4980
- path9.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_platformArch}.node`),
4981
- path9.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
5041
+ path10.resolve(runtimeDir, "..", "native", "tailwind-styled-native.node"),
5042
+ path10.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_platformArch}.node`),
5043
+ path10.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
4982
5044
  // runtimeDir = dist/ → naik 4 level ke repo root (monorepo dev case)
4983
- path9.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind-styled-native.node"),
4984
- path9.resolve(runtimeDir, "..", "..", "..", "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
5045
+ path10.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind-styled-native.node"),
5046
+ path10.resolve(runtimeDir, "..", "..", "..", "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
4985
5047
  // 3 level fallback (jika package di-nest lebih dangkal)
4986
- path9.resolve(runtimeDir, "..", "..", "..", "native", "tailwind-styled-native.node"),
4987
- path9.resolve(runtimeDir, "..", "..", "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
5048
+ path10.resolve(runtimeDir, "..", "..", "..", "native", "tailwind-styled-native.node"),
5049
+ path10.resolve(runtimeDir, "..", "..", "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
4988
5050
  // ── binaryName lama: tailwind_styled_parser (backward compat) ──
4989
- path9.resolve(process.cwd(), "native/tailwind_styled_parser.node"),
4990
- path9.resolve(process.cwd(), "native/build/Release/tailwind_styled_parser.node"),
4991
- path9.resolve(runtimeDir, "..", "native", "tailwind_styled_parser.node"),
4992
- path9.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind_styled_parser.node"),
4993
- path9.resolve(runtimeDir, "..", "..", "..", "native", "tailwind_styled_parser.node"),
4994
- path9.resolve(
5051
+ path10.resolve(process.cwd(), "native/tailwind_styled_parser.node"),
5052
+ path10.resolve(process.cwd(), "native/build/Release/tailwind_styled_parser.node"),
5053
+ path10.resolve(runtimeDir, "..", "native", "tailwind_styled_parser.node"),
5054
+ path10.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind_styled_parser.node"),
5055
+ path10.resolve(runtimeDir, "..", "..", "..", "native", "tailwind_styled_parser.node"),
5056
+ path10.resolve(
4995
5057
  runtimeDir,
4996
5058
  "..",
4997
5059
  "..",
@@ -5037,10 +5099,10 @@ var init_src3 = __esm({
5037
5099
  });
5038
5100
 
5039
5101
  // packages/domain/engine/src/native-bridge.ts
5040
- function getDirname3() {
5102
+ function getDirname4() {
5041
5103
  if (typeof __dirname !== "undefined") return __dirname;
5042
5104
  if (typeof import.meta !== "undefined" && import.meta.url) {
5043
- return getDirname(import.meta.url);
5105
+ return getDirname2(import.meta.url);
5044
5106
  }
5045
5107
  return process.cwd();
5046
5108
  }
@@ -5051,6 +5113,7 @@ var log4, isValidEngineBinding, createEngineBindingLoader, engineBindingLoader;
5051
5113
  var init_native_bridge2 = __esm({
5052
5114
  "packages/domain/engine/src/native-bridge.ts"() {
5053
5115
  "use strict";
5116
+ init_esm_shims();
5054
5117
  init_src2();
5055
5118
  log4 = createDebugLogger("engine:native");
5056
5119
  isValidEngineBinding = (module) => {
@@ -5093,7 +5156,7 @@ var init_native_bridge2 = __esm({
5093
5156
  }
5094
5157
  return cached;
5095
5158
  }
5096
- const runtimeDir = getDirname3();
5159
+ const runtimeDir = getDirname4();
5097
5160
  const candidates = resolveNativeBindingCandidates({
5098
5161
  runtimeDir,
5099
5162
  includeDefaultCandidates: true
@@ -5175,6 +5238,7 @@ var RuleId, SelectorId, VariantChainId, PropertyId, ValueId, LayerId, ConditionI
5175
5238
  var init_ir = __esm({
5176
5239
  "packages/domain/engine/src/ir.ts"() {
5177
5240
  "use strict";
5241
+ init_esm_shims();
5178
5242
  init_native_bridge2();
5179
5243
  RuleId = class {
5180
5244
  constructor(value) {
@@ -5347,6 +5411,7 @@ var CascadeResolver;
5347
5411
  var init_resolver = __esm({
5348
5412
  "packages/domain/engine/src/resolver.ts"() {
5349
5413
  "use strict";
5414
+ init_esm_shims();
5350
5415
  init_ir();
5351
5416
  init_native_bridge2();
5352
5417
  CascadeResolver = class {
@@ -5581,6 +5646,7 @@ var _defaultIdGen, generateRuleId, generateSelectorId, generatePropertyId, gener
5581
5646
  var init_cssToIr = __esm({
5582
5647
  "packages/domain/engine/src/cssToIr.ts"() {
5583
5648
  "use strict";
5649
+ init_esm_shims();
5584
5650
  init_native_bridge2();
5585
5651
  init_ir();
5586
5652
  _defaultIdGen = createIdGenerator();
@@ -5714,23 +5780,34 @@ function trace(className, resolver) {
5714
5780
  var init_trace2 = __esm({
5715
5781
  "packages/domain/engine/src/trace.ts"() {
5716
5782
  "use strict";
5783
+ init_esm_shims();
5717
5784
  init_ir();
5718
5785
  }
5719
5786
  });
5720
5787
 
5788
+ // src/umbrella/engine.ts
5789
+ init_esm_shims();
5790
+
5721
5791
  // packages/domain/engine/src/index.ts
5792
+ init_esm_shims();
5722
5793
  import fs12 from "fs";
5723
- import path15 from "path";
5794
+ import path16 from "path";
5724
5795
  import { pathToFileURL as pathToFileURL2 } from "url";
5725
5796
 
5797
+ // packages/domain/analyzer/src/index.ts
5798
+ init_esm_shims();
5799
+
5726
5800
  // packages/domain/analyzer/src/analyzeWorkspace.ts
5801
+ init_esm_shims();
5727
5802
  init_src3();
5728
- import path11 from "path";
5803
+ import path12 from "path";
5729
5804
 
5730
5805
  // packages/domain/analyzer/src/binding.ts
5806
+ init_esm_shims();
5731
5807
  init_src2();
5732
5808
 
5733
5809
  // packages/domain/analyzer/src/utils.ts
5810
+ init_esm_shims();
5734
5811
  init_src2();
5735
5812
  import fs8 from "fs";
5736
5813
  var DEFAULT_TOP_LIMIT = 10;
@@ -5844,9 +5921,10 @@ async function requireNativeBinding() {
5844
5921
  }
5845
5922
 
5846
5923
  // packages/domain/analyzer/src/schemas.ts
5924
+ init_esm_shims();
5847
5925
  init_src2();
5848
5926
  import { z as z4 } from "zod";
5849
- var formatIssuePath3 = (path16) => path16.length > 0 ? path16.map(
5927
+ var formatIssuePath3 = (path17) => path17.length > 0 ? path17.map(
5850
5928
  (segment) => typeof segment === "symbol" ? segment.description ?? segment.toString() : String(segment)
5851
5929
  ).join(".") : "<root>";
5852
5930
  var isPlainObject = (value) => {
@@ -5855,8 +5933,8 @@ var isPlainObject = (value) => {
5855
5933
  return proto === Object.prototype || proto === null;
5856
5934
  };
5857
5935
  var formatIssues2 = (error) => error.issues.map((issue) => {
5858
- const path16 = formatIssuePath3(issue.path);
5859
- return `${path16}: ${issue.message}`;
5936
+ const path17 = formatIssuePath3(issue.path);
5937
+ return `${path17}: ${issue.message}`;
5860
5938
  }).join("; ");
5861
5939
  var parseWithSchema2 = (schema, data, label) => {
5862
5940
  const parsed = schema.safeParse(data);
@@ -5946,8 +6024,9 @@ var parseAnalyzerOptions = (options) => parseWithSchema2(AnalyzerOptionsSchema,
5946
6024
  var parseNativeReport = (report) => parseWithSchema2(NativeReportSchema, report, "Native analyzer report is invalid");
5947
6025
 
5948
6026
  // packages/domain/analyzer/src/semantic.ts
6027
+ init_esm_shims();
5949
6028
  import fs9 from "fs";
5950
- import path10 from "path";
6029
+ import path11 from "path";
5951
6030
  import { pathToFileURL } from "url";
5952
6031
  var SUPPORTED_TAILWIND_CONFIG_EXTENSIONS = /* @__PURE__ */ new Set([".ts", ".js", ".cjs", ".mjs"]);
5953
6032
  var tailwindConfigCache = /* @__PURE__ */ new Map();
@@ -5968,11 +6047,11 @@ var detectConflicts2 = async (usages) => {
5968
6047
  };
5969
6048
  };
5970
6049
  var isSupportedTailwindConfigPath = (configPath) => {
5971
- return SUPPORTED_TAILWIND_CONFIG_EXTENSIONS.has(path10.extname(configPath).toLowerCase());
6050
+ return SUPPORTED_TAILWIND_CONFIG_EXTENSIONS.has(path11.extname(configPath).toLowerCase());
5972
6051
  };
5973
6052
  var resolveTailwindConfigPath = async (root, explicitPath) => {
5974
6053
  if (explicitPath) {
5975
- const resolved = path10.resolve(root, explicitPath);
6054
+ const resolved = path11.resolve(root, explicitPath);
5976
6055
  if (!await pathExists(resolved)) return null;
5977
6056
  return resolved;
5978
6057
  }
@@ -5983,7 +6062,7 @@ var resolveTailwindConfigPath = async (root, explicitPath) => {
5983
6062
  "tailwind.config.mjs"
5984
6063
  ];
5985
6064
  for (const candidate of candidates) {
5986
- const fullPath = path10.resolve(root, candidate);
6065
+ const fullPath = path11.resolve(root, candidate);
5987
6066
  if (await pathExists(fullPath)) return fullPath;
5988
6067
  }
5989
6068
  return null;
@@ -6223,7 +6302,7 @@ async function buildDistribution(usages, native) {
6223
6302
  }
6224
6303
  async function analyzeWorkspace(root, options = {}) {
6225
6304
  const startedAtMs = Date.now();
6226
- const resolvedRoot = path11.resolve(root);
6305
+ const resolvedRoot = path12.resolve(root);
6227
6306
  const normalizedOptions = parseAnalyzerOptions(options);
6228
6307
  const scan = await (async () => {
6229
6308
  const scanStartedAtMs = Date.now();
@@ -6332,11 +6411,12 @@ init_src3();
6332
6411
  init_src2();
6333
6412
 
6334
6413
  // packages/domain/engine/src/incremental.ts
6414
+ init_esm_shims();
6335
6415
  init_src3();
6336
6416
  init_src2();
6337
6417
  init_native_bridge2();
6338
6418
  import fs10 from "fs";
6339
- import path12 from "path";
6419
+ import path13 from "path";
6340
6420
  var DEFAULT_EXTENSIONS2 = [".js", ".jsx", ".ts", ".tsx", ".mjs", ".cjs"];
6341
6421
  var log5 = createLogger2("engine:incremental");
6342
6422
  function rebuildWorkspaceResult2(byFile) {
@@ -6369,8 +6449,8 @@ function areClassSetsEqual(a, b) {
6369
6449
  function applyIncrementalChange(previous, filePath, type, scanner) {
6370
6450
  const includeExtensions = scanner?.includeExtensions ?? DEFAULT_EXTENSIONS2;
6371
6451
  if (!isScannableFile2(filePath, includeExtensions)) return previous;
6372
- const byFile = new Map(previous.files.map((f) => [path12.resolve(f.file), f]));
6373
- const normalizedPath = path12.resolve(filePath);
6452
+ const byFile = new Map(previous.files.map((f) => [path13.resolve(f.file), f]));
6453
+ const normalizedPath = path13.resolve(filePath);
6374
6454
  const native = getNativeEngineBinding();
6375
6455
  if (!native?.processFileChange) {
6376
6456
  throw new Error(
@@ -6402,9 +6482,11 @@ function applyIncrementalChange(previous, filePath, type, scanner) {
6402
6482
  }
6403
6483
 
6404
6484
  // packages/domain/engine/src/impactTracker.ts
6485
+ init_esm_shims();
6405
6486
  init_native_bridge2();
6406
6487
 
6407
6488
  // packages/domain/engine/src/bundleAnalyzer.ts
6489
+ init_esm_shims();
6408
6490
  init_native_bridge2();
6409
6491
  var BundleAnalyzer = class {
6410
6492
  analyzeClass(className, scanResult, css) {
@@ -6683,6 +6765,7 @@ var ImpactTracker = class {
6683
6765
  };
6684
6766
 
6685
6767
  // packages/domain/engine/src/metrics.ts
6768
+ init_esm_shims();
6686
6769
  var EngineMetricsCollector = class {
6687
6770
  eventsReceived = 0;
6688
6771
  eventsProcessed = 0;
@@ -6731,16 +6814,17 @@ var EngineMetricsCollector = class {
6731
6814
  };
6732
6815
 
6733
6816
  // packages/domain/engine/src/metricsWriter.ts
6817
+ init_esm_shims();
6734
6818
  init_src2();
6735
6819
  import fs11 from "fs";
6736
- import path13 from "path";
6820
+ import path14 from "path";
6737
6821
  import { performance } from "perf_hooks";
6738
6822
  var _log = createLogger2("tw:metrics");
6739
6823
  var METRICS_FILE_NAME = "metrics.json";
6740
6824
  var CACHE_DIR = ".tw-cache";
6741
6825
  function writeMetrics(metrics, cwd = process.cwd()) {
6742
6826
  try {
6743
- const cacheDir = path13.join(cwd, CACHE_DIR);
6827
+ const cacheDir = path14.join(cwd, CACHE_DIR);
6744
6828
  fs11.mkdirSync(cacheDir, { recursive: true });
6745
6829
  const mem = process.memoryUsage();
6746
6830
  const data = {
@@ -6752,12 +6836,13 @@ function writeMetrics(metrics, cwd = process.cwd()) {
6752
6836
  },
6753
6837
  generatedAt: (/* @__PURE__ */ new Date()).toISOString()
6754
6838
  };
6755
- fs11.writeFileSync(path13.join(cacheDir, METRICS_FILE_NAME), JSON.stringify(data, null, 2));
6839
+ fs11.writeFileSync(path14.join(cacheDir, METRICS_FILE_NAME), JSON.stringify(data, null, 2));
6756
6840
  } catch {
6757
6841
  }
6758
6842
  }
6759
6843
 
6760
6844
  // packages/domain/engine/src/plugin-api.ts
6845
+ init_esm_shims();
6761
6846
  async function runBeforeScan(plugins, context) {
6762
6847
  for (const plugin of plugins) {
6763
6848
  await plugin.beforeScan?.(context);
@@ -6806,6 +6891,7 @@ async function runAfterWatch(plugins, context) {
6806
6891
  }
6807
6892
 
6808
6893
  // packages/domain/engine/src/schemas.ts
6894
+ init_esm_shims();
6809
6895
  import { z as z5 } from "zod";
6810
6896
  var formatIssues3 = (error) => error.issues.map((issue) => {
6811
6897
  const p = issue.path.length > 0 ? issue.path.join(".") : "<root>";
@@ -6862,6 +6948,7 @@ var parseEngineOptions = (options) => parseWithSchema3(EngineOptionsSchema, opti
6862
6948
  var parseEngineWatchOptions = (options) => parseWithSchema3(EngineWatchOptionsSchema, options ?? {}, "engine watch options are invalid");
6863
6949
 
6864
6950
  // packages/domain/engine/src/watch.ts
6951
+ init_esm_shims();
6865
6952
  var _native2 = null;
6866
6953
  function getNativeWatcher() {
6867
6954
  if (_native2 !== null) return _native2;
@@ -6934,9 +7021,11 @@ function watchWorkspace(rootDir, onEvent, options = {}) {
6934
7021
  }
6935
7022
 
6936
7023
  // packages/domain/engine/src/internal.ts
7024
+ init_esm_shims();
6937
7025
  init_ir();
6938
7026
 
6939
7027
  // packages/domain/engine/src/reverseLookup.ts
7028
+ init_esm_shims();
6940
7029
  init_native_bridge2();
6941
7030
  function getNative2() {
6942
7031
  const native = getNativeEngineBinding();
@@ -7016,9 +7105,10 @@ init_resolver();
7016
7105
  init_cssToIr();
7017
7106
 
7018
7107
  // packages/domain/engine/src/watch-native.ts
7108
+ init_esm_shims();
7019
7109
  init_src2();
7020
7110
  import { createRequire as createRequire7 } from "module";
7021
- import path14 from "path";
7111
+ import path15 from "path";
7022
7112
  var watchBindingState = {
7023
7113
  binding: void 0
7024
7114
  };
@@ -7039,22 +7129,22 @@ var getBinding = () => {
7039
7129
  const _paGnu = _pa === "linux-x64" ? "linux-x64-gnu" : _pa === "linux-arm64" ? "linux-arm64-gnu" : _pa;
7040
7130
  const candidates = [
7041
7131
  // new binary name: tailwind-styled-native
7042
- path14.resolve(process.cwd(), "native", "tailwind-styled-native.node"),
7043
- path14.resolve(process.cwd(), "native", `tailwind-styled-native.${_pa}.node`),
7132
+ path15.resolve(process.cwd(), "native", "tailwind-styled-native.node"),
7133
+ path15.resolve(process.cwd(), "native", `tailwind-styled-native.${_pa}.node`),
7044
7134
  // npm install case: dist/../native/
7045
- path14.resolve(runtimeDir, "..", "native", "tailwind-styled-native.node"),
7046
- path14.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_pa}.node`),
7047
- path14.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_paGnu}.node`),
7135
+ path15.resolve(runtimeDir, "..", "native", "tailwind-styled-native.node"),
7136
+ path15.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_pa}.node`),
7137
+ path15.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_paGnu}.node`),
7048
7138
  // monorepo dev: 4-level up
7049
- path14.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind-styled-native.node"),
7050
- path14.resolve(runtimeDir, "..", "..", "..", "..", "native", `tailwind-styled-native.${_paGnu}.node`),
7139
+ path15.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind-styled-native.node"),
7140
+ path15.resolve(runtimeDir, "..", "..", "..", "..", "native", `tailwind-styled-native.${_paGnu}.node`),
7051
7141
  // 3-level fallback
7052
- path14.resolve(runtimeDir, "..", "..", "..", "native", "tailwind-styled-native.node"),
7142
+ path15.resolve(runtimeDir, "..", "..", "..", "native", "tailwind-styled-native.node"),
7053
7143
  // backward compat: tailwind_styled_parser
7054
- path14.resolve(process.cwd(), "native", "tailwind_styled_parser.node"),
7055
- path14.resolve(runtimeDir, "..", "native", "tailwind_styled_parser.node"),
7056
- path14.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind_styled_parser.node"),
7057
- path14.resolve(runtimeDir, "..", "..", "..", "native", "tailwind_styled_parser.node")
7144
+ path15.resolve(process.cwd(), "native", "tailwind_styled_parser.node"),
7145
+ path15.resolve(runtimeDir, "..", "native", "tailwind_styled_parser.node"),
7146
+ path15.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind_styled_parser.node"),
7147
+ path15.resolve(runtimeDir, "..", "..", "..", "native", "tailwind_styled_parser.node")
7058
7148
  ];
7059
7149
  for (const c of candidates) {
7060
7150
  try {
@@ -7075,7 +7165,7 @@ var log6 = createLogger2("engine:watch-native");
7075
7165
  function watchWorkspace2(rootDir, callback, options = {}) {
7076
7166
  const binding = getBinding();
7077
7167
  const pollMs = options.pollIntervalMs ?? 500;
7078
- const resolvedRoot = path14.resolve(rootDir);
7168
+ const resolvedRoot = path15.resolve(rootDir);
7079
7169
  const result = (() => {
7080
7170
  try {
7081
7171
  return binding.startWatch(resolvedRoot);
@@ -7112,7 +7202,7 @@ This package requires native Rust bindings.`
7112
7202
  const deduped = /* @__PURE__ */ new Set();
7113
7203
  const events = [];
7114
7204
  for (const e of raw) {
7115
- const absPath = path14.isAbsolute(e.path) ? path14.normalize(e.path) : path14.resolve(resolvedRoot, e.path);
7205
+ const absPath = path15.isAbsolute(e.path) ? path15.normalize(e.path) : path15.resolve(resolvedRoot, e.path);
7116
7206
  const kind = e.kind;
7117
7207
  const key = `${kind}:${absPath}`;
7118
7208
  if (deduped.has(key)) continue;
@@ -7152,7 +7242,7 @@ var configState = {
7152
7242
  var log7 = createLogger2("engine");
7153
7243
  async function loadTailwindConfigFromPath(root, tailwindConfigPath) {
7154
7244
  if (!tailwindConfigPath) return void 0;
7155
- const configPath = path15.resolve(root, tailwindConfigPath);
7245
+ const configPath = path16.resolve(root, tailwindConfigPath);
7156
7246
  if (!fs12.existsSync(configPath)) {
7157
7247
  throw TwError.fromIo("CONFIG_NOT_FOUND", `tailwindConfigPath not found: ${configPath}`);
7158
7248
  }
@@ -7219,11 +7309,11 @@ async function buildFromScan(scan, root, options, tailwindConfig) {
7219
7309
  };
7220
7310
  }
7221
7311
  function countWorkspacePackages(root) {
7222
- const packagesDir = path15.join(root, "packages");
7312
+ const packagesDir = path16.join(root, "packages");
7223
7313
  if (!fs12.existsSync(packagesDir)) return 0;
7224
7314
  try {
7225
7315
  return fs12.readdirSync(packagesDir, { withFileTypes: true }).filter(
7226
- (entry) => entry.isDirectory() && fs12.existsSync(path15.join(packagesDir, entry.name, "package.json"))
7316
+ (entry) => entry.isDirectory() && fs12.existsSync(path16.join(packagesDir, entry.name, "package.json"))
7227
7317
  ).length;
7228
7318
  } catch (err) {
7229
7319
  log7.debug(`countWorkspacePackages: ${err instanceof Error ? err.message : String(err)}`);
@@ -7260,7 +7350,7 @@ function writeDashboardMetrics(root, mode, result, metrics) {
7260
7350
  async function createEngine(rawOptions = {}) {
7261
7351
  const options = parseEngineOptions(rawOptions);
7262
7352
  const root = options.root ?? process.cwd();
7263
- const resolvedRoot = path15.resolve(root);
7353
+ const resolvedRoot = path16.resolve(root);
7264
7354
  const plugins = rawOptions.plugins ?? [];
7265
7355
  const getTailwindConfig = async () => {
7266
7356
  if (configState.isLoaded()) return configState.getConfig();
@@ -7525,14 +7615,14 @@ async function createEngine(rawOptions = {}) {
7525
7615
  };
7526
7616
  }
7527
7617
  async function scanWorkspace3(opts = {}) {
7528
- const root = path15.resolve(opts.root ?? process.cwd());
7618
+ const root = path16.resolve(opts.root ?? process.cwd());
7529
7619
  return scanWorkspaceAsync(root, {
7530
7620
  includeExtensions: opts.extensions,
7531
7621
  ignoreDirectories: opts.ignoreDirectories
7532
7622
  });
7533
7623
  }
7534
7624
  async function analyzeWorkspace2(opts = {}) {
7535
- const root = path15.resolve(opts.root ?? process.cwd());
7625
+ const root = path16.resolve(opts.root ?? process.cwd());
7536
7626
  return analyzeWorkspace(root, {
7537
7627
  classStats: { top: opts.top ?? 20 }
7538
7628
  });