tailwind-styled-v4 5.0.38 → 5.0.40

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 +18 -20
  2. package/dist/analyzer.js.map +1 -1
  3. package/dist/analyzer.mjs +3 -1
  4. package/dist/analyzer.mjs.map +1 -1
  5. package/dist/animate.js +8 -8
  6. package/dist/animate.js.map +1 -1
  7. package/dist/animate.mjs +3 -1
  8. package/dist/animate.mjs.map +1 -1
  9. package/dist/atomic.js +15 -12
  10. package/dist/atomic.js.map +1 -1
  11. package/dist/atomic.mjs +9 -3
  12. package/dist/atomic.mjs.map +1 -1
  13. package/dist/cli.js +45 -95
  14. package/dist/cli.js.map +1 -1
  15. package/dist/cli.mjs +42 -13
  16. package/dist/cli.mjs.map +1 -1
  17. package/dist/compiler.js +23 -18
  18. package/dist/compiler.js.map +1 -1
  19. package/dist/compiler.mjs +15 -5
  20. package/dist/compiler.mjs.map +1 -1
  21. package/dist/dashboard.js +1 -0
  22. package/dist/dashboard.js.map +1 -1
  23. package/dist/devtools.js +5 -3
  24. package/dist/devtools.js.map +1 -1
  25. package/dist/devtools.mjs +3 -1
  26. package/dist/devtools.mjs.map +1 -1
  27. package/dist/engine.js +83 -53
  28. package/dist/engine.js.map +1 -1
  29. package/dist/engine.mjs +58 -16
  30. package/dist/engine.mjs.map +1 -1
  31. package/dist/index.js +15 -9
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.mjs +12 -4
  34. package/dist/index.mjs.map +1 -1
  35. package/dist/next.js +35 -30
  36. package/dist/next.js.map +1 -1
  37. package/dist/next.mjs +21 -8
  38. package/dist/next.mjs.map +1 -1
  39. package/dist/plugin-api.js +1 -0
  40. package/dist/plugin-api.js.map +1 -1
  41. package/dist/plugin-registry.js +2 -2
  42. package/dist/plugin-registry.js.map +1 -1
  43. package/dist/plugin.js +1 -0
  44. package/dist/plugin.js.map +1 -1
  45. package/dist/preset.js +1 -0
  46. package/dist/preset.js.map +1 -1
  47. package/dist/rspack.js +9 -55
  48. package/dist/rspack.js.map +1 -1
  49. package/dist/rspack.mjs +31 -7
  50. package/dist/rspack.mjs.map +1 -1
  51. package/dist/runtime-css.js +1 -0
  52. package/dist/runtime-css.js.map +1 -1
  53. package/dist/runtime.js +1 -0
  54. package/dist/runtime.js.map +1 -1
  55. package/dist/scanner.js +14 -15
  56. package/dist/scanner.js.map +1 -1
  57. package/dist/scanner.mjs +3 -1
  58. package/dist/scanner.mjs.map +1 -1
  59. package/dist/shared.d.mts +0 -12
  60. package/dist/shared.d.ts +0 -12
  61. package/dist/shared.js +64 -30
  62. package/dist/shared.js.map +1 -1
  63. package/dist/shared.mjs +55 -15
  64. package/dist/shared.mjs.map +1 -1
  65. package/dist/storybook-addon.js +1 -0
  66. package/dist/storybook-addon.js.map +1 -1
  67. package/dist/svelte.js +15 -9
  68. package/dist/svelte.js.map +1 -1
  69. package/dist/svelte.mjs +12 -4
  70. package/dist/svelte.mjs.map +1 -1
  71. package/dist/syntax.js +3 -3
  72. package/dist/syntax.js.map +1 -1
  73. package/dist/testing.js +1 -0
  74. package/dist/testing.js.map +1 -1
  75. package/dist/theme.js +8 -7
  76. package/dist/theme.js.map +1 -1
  77. package/dist/theme.mjs +3 -1
  78. package/dist/theme.mjs.map +1 -1
  79. package/dist/turbopackLoader.js +23 -18
  80. package/dist/turbopackLoader.js.map +1 -1
  81. package/dist/turbopackLoader.mjs +15 -5
  82. package/dist/turbopackLoader.mjs.map +1 -1
  83. package/dist/tw.js +45 -95
  84. package/dist/tw.js.map +1 -1
  85. package/dist/tw.mjs +42 -13
  86. package/dist/tw.mjs.map +1 -1
  87. package/dist/vite.js +80 -51
  88. package/dist/vite.js.map +1 -1
  89. package/dist/vite.mjs +55 -15
  90. package/dist/vite.mjs.map +1 -1
  91. package/dist/vue.js +15 -9
  92. package/dist/vue.js.map +1 -1
  93. package/dist/vue.mjs +12 -4
  94. package/dist/vue.mjs.map +1 -1
  95. package/dist/webpackLoader.js +15 -12
  96. package/dist/webpackLoader.js.map +1 -1
  97. package/dist/webpackLoader.mjs +9 -3
  98. package/dist/webpackLoader.mjs.map +1 -1
  99. package/native/tailwind-styled-native.linux-x64-gnu.node +0 -0
  100. package/native/tailwind-styled-native.node +0 -0
  101. package/package.json +1 -1
package/dist/vite.js CHANGED
@@ -1,3 +1,4 @@
1
+ const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
1
2
  /* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
2
3
  "use strict";
3
4
  var __create = Object.create;
@@ -305,48 +306,78 @@ function getNodeModuleRef() {
305
306
  return null;
306
307
  }
307
308
  }
309
+ function getCurrentFileUrl() {
310
+ if (__importMetaUrl) {
311
+ return __importMetaUrl;
312
+ }
313
+ if (typeof __filename !== "undefined") {
314
+ return `file://${__filename.replace(/\\/g, "/")}`;
315
+ }
316
+ return "file://unknown";
317
+ }
308
318
  function getNodePath() {
309
319
  if (isBrowser) throw new Error("node:path not available in browser");
310
- const nodeRequire = getNodeModuleRef();
311
- if (!nodeRequire) throw new Error("require not available");
312
- if (!_nodePath) _nodePath = nodeRequire.createRequire(import_meta.url)("node:path");
320
+ if (!_nodePath) {
321
+ if (typeof require === "function") {
322
+ _nodePath = require("path");
323
+ } else {
324
+ const nodeRequire = getNodeModuleRef();
325
+ if (!nodeRequire) throw new Error("require not available");
326
+ _nodePath = nodeRequire.createRequire(getCurrentFileUrl())("node:path");
327
+ }
328
+ }
313
329
  return _nodePath;
314
330
  }
315
331
  function getNodeUrl() {
316
332
  if (isBrowser) throw new Error("node:url not available in browser");
317
- const nodeRequire = getNodeModuleRef();
318
- if (!nodeRequire) throw new Error("require not available");
319
- if (!_nodeUrl) _nodeUrl = nodeRequire.createRequire(import_meta.url)("node:url");
333
+ if (!_nodeUrl) {
334
+ if (typeof require === "function") {
335
+ _nodeUrl = require("url");
336
+ } else {
337
+ const nodeRequire = getNodeModuleRef();
338
+ if (!nodeRequire) throw new Error("require not available");
339
+ _nodeUrl = nodeRequire.createRequire(getCurrentFileUrl())("node:url");
340
+ }
341
+ }
320
342
  return _nodeUrl;
321
343
  }
322
344
  function getNodeFs() {
323
345
  if (isBrowser) throw new Error("node:fs not available in browser");
324
- const nodeRequire = getNodeModuleRef();
325
- if (!nodeRequire) throw new Error("require not available");
326
- if (!_nodeFs) _nodeFs = nodeRequire.createRequire(import_meta.url)("node:fs");
346
+ if (!_nodeFs) {
347
+ if (typeof require === "function") {
348
+ _nodeFs = require("fs");
349
+ } else {
350
+ const nodeRequire = getNodeModuleRef();
351
+ if (!nodeRequire) throw new Error("require not available");
352
+ _nodeFs = nodeRequire.createRequire(getCurrentFileUrl())("node:fs");
353
+ }
354
+ }
327
355
  return _nodeFs;
328
356
  }
329
357
  function createEsmRequire(importMetaUrl) {
330
358
  if (isBrowser) throw new Error("require not available in browser");
359
+ if (typeof require === "function") return require;
331
360
  const nodeRequire = getNodeModuleRef();
332
361
  if (!nodeRequire) throw new Error("require not available");
333
362
  return nodeRequire.createRequire(importMetaUrl);
334
363
  }
335
364
  function getDirname(importMetaUrl) {
336
365
  if (isBrowser) return "";
366
+ if (typeof __dirname !== "undefined") return __dirname;
337
367
  const nodePath = getNodePath();
338
368
  const nodeUrl = getNodeUrl();
339
369
  return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl));
340
370
  }
341
371
  function getFilename(importMetaUrl) {
342
372
  if (isBrowser) return "";
373
+ if (typeof __filename !== "undefined") return __filename;
343
374
  return getNodeUrl().fileURLToPath(importMetaUrl);
344
375
  }
345
376
  function resolveFromRoot(...segments) {
346
377
  if (isBrowser) return segments.join("/");
347
378
  const nodePath = getNodePath();
348
379
  const nodeFs = getNodeFs();
349
- let dir = getDirname(import_meta.url);
380
+ let dir = typeof __dirname !== "undefined" ? __dirname : getDirname(getCurrentFileUrl());
350
381
  for (let i = 0; i < 10; i++) {
351
382
  const pkgPath = nodePath.join(dir, "package.json");
352
383
  try {
@@ -372,11 +403,10 @@ function resolveNativeNodePath(importMetaUrl, ...relativeSegments) {
372
403
  if (isBrowser) return relativeSegments.join("/");
373
404
  return getNodePath().resolve(getDirname(importMetaUrl), ...relativeSegments);
374
405
  }
375
- var import_meta, isBrowser, nodeModuleRef, _nodePath, _nodeUrl, _nodeFs;
406
+ var isBrowser, nodeModuleRef, _nodePath, _nodeUrl, _nodeFs;
376
407
  var init_esmHelpers = __esm({
377
408
  "packages/domain/shared/src/esmHelpers.ts"() {
378
409
  "use strict";
379
- import_meta = {};
380
410
  isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
381
411
  nodeModuleRef = null;
382
412
  _nodePath = null;
@@ -945,16 +975,17 @@ function formatNativeNotFoundError(result) {
945
975
  ];
946
976
  return lines.join("\n");
947
977
  }
948
- var import_node_module, fs, path, import_meta2, isBrowser3, _require, PLATFORM_MAP;
978
+ var import_node_module, fs, path, isBrowser3, _require, PLATFORM_MAP;
949
979
  var init_native_resolution = __esm({
950
980
  "packages/domain/shared/src/native-resolution.ts"() {
951
981
  "use strict";
952
982
  import_node_module = require("module");
953
983
  fs = __toESM(require("fs"));
954
984
  path = __toESM(require("path"));
955
- import_meta2 = {};
956
985
  isBrowser3 = typeof window !== "undefined" || typeof document !== "undefined";
957
- _require = typeof require !== "undefined" ? require : (0, import_node_module.createRequire)(import_meta2.url);
986
+ _require = (0, import_node_module.createRequire)(
987
+ typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
988
+ );
958
989
  PLATFORM_MAP = {
959
990
  "linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
960
991
  "linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
@@ -1231,13 +1262,14 @@ async function generateRawCss(classes, cssEntryContent, root) {
1231
1262
  const compiler = await Promise.resolve(tw.compile(input, { loadStylesheet }));
1232
1263
  return compiler.build(classes);
1233
1264
  }
1234
- var import_node_module2, import_meta3, require2, MAX_CACHE_MEMORY, _twEngine, _twEngineError;
1265
+ var import_node_module2, require2, MAX_CACHE_MEMORY, _twEngine, _twEngineError;
1235
1266
  var init_tailwindEngine = __esm({
1236
1267
  "packages/domain/compiler/src/tailwindEngine.ts"() {
1237
1268
  "use strict";
1238
1269
  import_node_module2 = require("module");
1239
- import_meta3 = {};
1240
- require2 = (0, import_node_module2.createRequire)(import_meta3.url);
1270
+ require2 = (0, import_node_module2.createRequire)(
1271
+ typeof __filename !== "undefined" ? `file://${__filename}` : false ? __importMetaUrl : "file://unknown"
1272
+ );
1241
1273
  MAX_CACHE_MEMORY = 256 * 1024;
1242
1274
  _twEngine = null;
1243
1275
  _twEngineError = null;
@@ -1419,7 +1451,7 @@ function processTailwindCssWithTargets(css, targets) {
1419
1451
  }
1420
1452
  return result.css;
1421
1453
  }
1422
- var import_node_module3, import_meta4, require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
1454
+ var import_node_module3, require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
1423
1455
  var init_tailwindEngine2 = __esm({
1424
1456
  "packages/domain/compiler/src/compiler/tailwindEngine.ts"() {
1425
1457
  "use strict";
@@ -1428,8 +1460,9 @@ var init_tailwindEngine2 = __esm({
1428
1460
  init_cssGeneratorNative();
1429
1461
  init_cssCompilationNative();
1430
1462
  init_tailwindEngine();
1431
- import_meta4 = {};
1432
- require3 = (0, import_node_module3.createRequire)(import_meta4.url);
1463
+ require3 = (0, import_node_module3.createRequire)(
1464
+ typeof __filename !== "undefined" ? `file://${__filename}` : false ? __importMetaUrl : "file://unknown"
1465
+ );
1433
1466
  _cssCache = /* @__PURE__ */ new Map();
1434
1467
  _cacheHits = 0;
1435
1468
  _cacheMisses = 0;
@@ -3457,7 +3490,7 @@ function formatErrorMessage(error) {
3457
3490
  if (error instanceof Error) return error.message;
3458
3491
  return String(error);
3459
3492
  }
3460
- var import_node_crypto, import_node_fs3, import_node_path3, import_node_url, import_node_module4, import_meta5, TwError, _require2, LRUCache;
3493
+ var import_node_crypto, import_node_fs3, import_node_path3, import_node_url, import_node_module4, TwError, _require2, LRUCache;
3461
3494
  var init_src = __esm({
3462
3495
  "packages/domain/shared/src/index.ts"() {
3463
3496
  "use strict";
@@ -3479,7 +3512,6 @@ var init_src = __esm({
3479
3512
  init_observability();
3480
3513
  init_staticStateExtractor();
3481
3514
  init_logger();
3482
- import_meta5 = {};
3483
3515
  TwError = class _TwError extends Error {
3484
3516
  /** @deprecated Gunakan source */
3485
3517
  domain;
@@ -3532,7 +3564,9 @@ var init_src = __esm({
3532
3564
  return `[${this.source.toUpperCase()}:${this.code}] ${this.message}`;
3533
3565
  }
3534
3566
  };
3535
- _require2 = (0, import_node_module4.createRequire)(import_meta5.url);
3567
+ _require2 = (0, import_node_module4.createRequire)(
3568
+ typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
3569
+ );
3536
3570
  LRUCache = class {
3537
3571
  capacity;
3538
3572
  cache;
@@ -3578,12 +3612,11 @@ var init_src = __esm({
3578
3612
  });
3579
3613
 
3580
3614
  // packages/domain/compiler/src/nativeBridge.ts
3581
- var import_meta6, _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge, adaptNativeResult;
3615
+ var _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge, adaptNativeResult;
3582
3616
  var init_nativeBridge = __esm({
3583
3617
  "packages/domain/compiler/src/nativeBridge.ts"() {
3584
3618
  "use strict";
3585
3619
  init_src();
3586
- import_meta6 = {};
3587
3620
  _loadNative = (path16) => require(path16);
3588
3621
  log = (...args) => {
3589
3622
  if (process.env.DEBUG?.includes("compiler:native")) {
@@ -3610,7 +3643,7 @@ var init_nativeBridge = __esm({
3610
3643
  }
3611
3644
  bridgeLoadAttempted = true;
3612
3645
  try {
3613
- const runtimeDir = resolveRuntimeDir(void 0, import_meta6.url);
3646
+ const runtimeDir = resolveRuntimeDir(void 0, __importMetaUrl);
3614
3647
  const result = resolveNativeBinary(runtimeDir);
3615
3648
  if (result.path && result.path.endsWith(".node")) {
3616
3649
  try {
@@ -3722,7 +3755,7 @@ function extractContainerCssFromSource(source) {
3722
3755
  }
3723
3756
  return rules.join("\n");
3724
3757
  }
3725
- var import_node_fs4, import_node_path4, import_node_module5, import_meta7, _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, classifyNode, detectConflicts, bucketSort, analyzeFile, analyzeVariantUsage, injectClientDirective, injectServerOnlyComment, analyzeClasses, extractTwStateConfigs, generateStaticStateCss, extractAndGenerateStateCss;
3758
+ var import_node_fs4, import_node_path4, import_node_module5, _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, classifyNode, detectConflicts, bucketSort, analyzeFile, analyzeVariantUsage, injectClientDirective, injectServerOnlyComment, analyzeClasses, extractTwStateConfigs, generateStaticStateCss, extractAndGenerateStateCss;
3726
3759
  var init_src2 = __esm({
3727
3760
  "packages/domain/compiler/src/index.ts"() {
3728
3761
  "use strict";
@@ -3736,8 +3769,9 @@ var init_src2 = __esm({
3736
3769
  init_cache();
3737
3770
  init_redis();
3738
3771
  init_watch();
3739
- import_meta7 = {};
3740
- _require3 = (0, import_node_module5.createRequire)(import_meta7.url);
3772
+ _require3 = (0, import_node_module5.createRequire)(
3773
+ typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
3774
+ );
3741
3775
  transformSource = (source, opts) => {
3742
3776
  const native = getNativeBridge();
3743
3777
  if (!native?.transformSource) {
@@ -4102,8 +4136,8 @@ function getDirname2() {
4102
4136
  if (typeof __dirname !== "undefined") {
4103
4137
  return __dirname;
4104
4138
  }
4105
- if (typeof import_meta8 !== "undefined" && import_meta8.url) {
4106
- return import_node_path5.default.dirname((0, import_node_url2.fileURLToPath)(import_meta8.url));
4139
+ if (false) {
4140
+ return path6.dirname(fileURLToPath2(__importMetaUrl));
4107
4141
  }
4108
4142
  return process.cwd();
4109
4143
  }
@@ -4308,14 +4342,13 @@ function hasNativeWatchBinding() {
4308
4342
  return false;
4309
4343
  }
4310
4344
  }
4311
- var import_node_path5, import_node_url2, import_meta8, log2, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
4345
+ var import_node_path5, import_node_url2, log2, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
4312
4346
  var init_native_bridge = __esm({
4313
4347
  "packages/domain/scanner/src/native-bridge.ts"() {
4314
4348
  "use strict";
4315
- import_node_path5 = __toESM(require("path"), 1);
4349
+ import_node_path5 = require("path");
4316
4350
  import_node_url2 = require("url");
4317
4351
  init_src();
4318
- import_meta8 = {};
4319
4352
  log2 = createDebugLogger("scanner:native");
4320
4353
  isValidScannerBinding = (module2) => {
4321
4354
  const candidate = module2;
@@ -4505,7 +4538,7 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
4505
4538
  }
4506
4539
  return mergeResults(allResults);
4507
4540
  }
4508
- var import_node_worker_threads, import_node_path7, import_node_os, import_node_url3, import_meta9, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
4541
+ var import_node_worker_threads, import_node_path7, import_node_os, import_node_url3, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
4509
4542
  var init_parallel_scanner = __esm({
4510
4543
  "packages/domain/scanner/src/parallel-scanner.ts"() {
4511
4544
  "use strict";
@@ -4515,7 +4548,6 @@ var init_parallel_scanner = __esm({
4515
4548
  import_node_url3 = require("url");
4516
4549
  init_src3();
4517
4550
  init_native_bridge();
4518
- import_meta9 = {};
4519
4551
  PARALLEL_THRESHOLD = 50;
4520
4552
  DEFAULT_CHUNK_SIZE = 150;
4521
4553
  if (!import_node_worker_threads.isMainThread && import_node_worker_threads.parentPort) {
@@ -4532,7 +4564,7 @@ var init_parallel_scanner = __esm({
4532
4564
  import_node_worker_threads.parentPort.postMessage(msg);
4533
4565
  }
4534
4566
  }
4535
- _workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(import_meta9.url);
4567
+ _workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(__importMetaUrl);
4536
4568
  }
4537
4569
  });
4538
4570
 
@@ -4624,8 +4656,8 @@ function getRuntimeDir() {
4624
4656
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
4625
4657
  return __dirname;
4626
4658
  }
4627
- if (typeof import_meta10 !== "undefined" && import_meta10.url) {
4628
- return import_node_path8.default.dirname((0, import_node_url4.fileURLToPath)(import_meta10.url));
4659
+ if (false) {
4660
+ return import_node_path8.default.dirname(fileURLToPath4(__importMetaUrl));
4629
4661
  }
4630
4662
  return process.cwd();
4631
4663
  }
@@ -4634,8 +4666,8 @@ function resolveScannerWorkerModulePath() {
4634
4666
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
4635
4667
  return __dirname;
4636
4668
  }
4637
- if (typeof import_meta10 !== "undefined" && import_meta10.url) {
4638
- return import_node_path8.default.dirname((0, import_node_url4.fileURLToPath)(import_meta10.url));
4669
+ if (false) {
4670
+ return import_node_path8.default.dirname(fileURLToPath4(__importMetaUrl));
4639
4671
  }
4640
4672
  return process.cwd();
4641
4673
  })();
@@ -4908,7 +4940,7 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
4908
4940
  return scanWorkspace2(rootDir, normalizedOptions);
4909
4941
  }
4910
4942
  }
4911
- var import_node_fs6, import_node_module6, import_node_path8, import_node_url4, import_node_worker_threads2, import_meta10, log3, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
4943
+ var import_node_fs6, import_node_module6, import_node_path8, import_node_url4, import_node_worker_threads2, log3, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
4912
4944
  var init_src3 = __esm({
4913
4945
  "packages/domain/scanner/src/index.ts"() {
4914
4946
  "use strict";
@@ -4924,7 +4956,6 @@ var init_src3 = __esm({
4924
4956
  init_schemas();
4925
4957
  init_schemas();
4926
4958
  init_native_bridge();
4927
- import_meta10 = {};
4928
4959
  log3 = createLogger2("scanner");
4929
4960
  SCAN_WORKER_TIMEOUT_MS = 12e4;
4930
4961
  createNativeParserLoader = () => {
@@ -5014,20 +5045,19 @@ var init_src3 = __esm({
5014
5045
  // packages/domain/engine/src/native-bridge.ts
5015
5046
  function getDirname3() {
5016
5047
  if (typeof __dirname !== "undefined") return __dirname;
5017
- if (typeof import_meta12 !== "undefined" && import_meta12.url) {
5018
- return getDirname(import_meta12.url);
5048
+ if (false) {
5049
+ return getEsmDirname(__importMetaUrl);
5019
5050
  }
5020
5051
  return process.cwd();
5021
5052
  }
5022
5053
  function getNativeEngineBinding() {
5023
5054
  return engineBindingLoader.get();
5024
5055
  }
5025
- var import_meta12, log4, isValidEngineBinding, createEngineBindingLoader, engineBindingLoader;
5056
+ var log4, isValidEngineBinding, createEngineBindingLoader, engineBindingLoader;
5026
5057
  var init_native_bridge2 = __esm({
5027
5058
  "packages/domain/engine/src/native-bridge.ts"() {
5028
5059
  "use strict";
5029
5060
  init_src();
5030
- import_meta12 = {};
5031
5061
  log4 = createDebugLogger("engine:native");
5032
5062
  isValidEngineBinding = (module2) => {
5033
5063
  const candidate = module2;
@@ -5162,7 +5192,6 @@ function sanitizeFrequentThreshold(value) {
5162
5192
  }
5163
5193
 
5164
5194
  // packages/domain/analyzer/src/binding.ts
5165
- var import_meta11 = {};
5166
5195
  var isAnalyzerModule = (module2) => {
5167
5196
  const candidate = module2;
5168
5197
  return typeof candidate?.analyzeClasses === "function" || typeof candidate?.analyzeClassesWorkspace === "function";
@@ -5174,7 +5203,7 @@ var createAnalyzerBindingLoader = () => {
5174
5203
  _state.bindingPromise = (async () => {
5175
5204
  const runtimeDir = resolveRuntimeDir(
5176
5205
  typeof __dirname === "string" ? __dirname : void 0,
5177
- import_meta11.url
5206
+ __importMetaUrl
5178
5207
  );
5179
5208
  const candidates = resolveNativeBindingCandidates({
5180
5209
  runtimeDir,
@@ -5217,7 +5246,7 @@ async function requireNativeBinding() {
5217
5246
  if (binding?.analyzeClasses) return binding;
5218
5247
  const runtimeDir = resolveRuntimeDir(
5219
5248
  typeof __dirname === "string" ? __dirname : void 0,
5220
- import_meta11.url
5249
+ __importMetaUrl
5221
5250
  );
5222
5251
  const candidates = resolveNativeBindingCandidates({
5223
5252
  runtimeDir,