tailwind-styled-v4 5.0.38 → 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 (101) hide show
  1. package/dist/analyzer.js +19 -19
  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 +71 -49
  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 +25 -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 +88 -52
  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 +16 -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 +39 -29
  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 -1
  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 +37 -14
  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 +15 -14
  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 +66 -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 +16 -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 -2
  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 -6
  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 +25 -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 +71 -49
  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 +84 -50
  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 +16 -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/cli.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;
@@ -3117,31 +3118,52 @@ function getNodeModuleRef() {
3117
3118
  return null;
3118
3119
  }
3119
3120
  }
3121
+ function getCurrentFileUrl() {
3122
+ if (__importMetaUrl) {
3123
+ return __importMetaUrl;
3124
+ }
3125
+ if (typeof __filename !== "undefined") {
3126
+ return `file://${__filename.replace(/\\/g, "/")}`;
3127
+ }
3128
+ return "file://unknown";
3129
+ }
3120
3130
  function getNodePath() {
3121
3131
  if (isBrowser) throw new Error("node:path not available in browser");
3122
- const nodeRequire = getNodeModuleRef();
3123
- if (!nodeRequire) throw new Error("require not available");
3124
- if (!_nodePath) _nodePath = nodeRequire.createRequire(import_meta.url)("node:path");
3132
+ if (!_nodePath) {
3133
+ if (typeof require === "function") {
3134
+ _nodePath = require("path");
3135
+ } else {
3136
+ const nodeRequire = getNodeModuleRef();
3137
+ if (!nodeRequire) throw new Error("require not available");
3138
+ _nodePath = nodeRequire.createRequire(getCurrentFileUrl())("node:path");
3139
+ }
3140
+ }
3125
3141
  return _nodePath;
3126
3142
  }
3127
3143
  function getNodeUrl() {
3128
3144
  if (isBrowser) throw new Error("node:url not available in browser");
3129
- const nodeRequire = getNodeModuleRef();
3130
- if (!nodeRequire) throw new Error("require not available");
3131
- if (!_nodeUrl) _nodeUrl = nodeRequire.createRequire(import_meta.url)("node:url");
3145
+ if (!_nodeUrl) {
3146
+ if (typeof require === "function") {
3147
+ _nodeUrl = require("url");
3148
+ } else {
3149
+ const nodeRequire = getNodeModuleRef();
3150
+ if (!nodeRequire) throw new Error("require not available");
3151
+ _nodeUrl = nodeRequire.createRequire(getCurrentFileUrl())("node:url");
3152
+ }
3153
+ }
3132
3154
  return _nodeUrl;
3133
3155
  }
3134
3156
  function getDirname(importMetaUrl) {
3135
3157
  if (isBrowser) return "";
3158
+ if (typeof __dirname !== "undefined") return __dirname;
3136
3159
  const nodePath = getNodePath();
3137
3160
  const nodeUrl = getNodeUrl();
3138
3161
  return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl));
3139
3162
  }
3140
- var import_meta, isBrowser, nodeModuleRef, _nodePath, _nodeUrl;
3163
+ var isBrowser, nodeModuleRef, _nodePath, _nodeUrl;
3141
3164
  var init_esmHelpers = __esm({
3142
3165
  "packages/domain/shared/src/esmHelpers.ts"() {
3143
3166
  "use strict";
3144
- import_meta = {};
3145
3167
  isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
3146
3168
  nodeModuleRef = null;
3147
3169
  _nodePath = null;
@@ -3231,16 +3253,17 @@ function resolveNativeBinary(runtimeDir) {
3231
3253
  }
3232
3254
  return { path: null, source: "not-found", platform, tried };
3233
3255
  }
3234
- var import_node_module, fs, path, import_meta2, isBrowser2, _require, PLATFORM_MAP;
3256
+ var import_node_module, fs, path, isBrowser2, _require, PLATFORM_MAP;
3235
3257
  var init_native_resolution = __esm({
3236
3258
  "packages/domain/shared/src/native-resolution.ts"() {
3237
3259
  "use strict";
3238
3260
  import_node_module = require("module");
3239
3261
  fs = __toESM(require("fs"));
3240
3262
  path = __toESM(require("path"));
3241
- import_meta2 = {};
3242
3263
  isBrowser2 = typeof window !== "undefined" || typeof document !== "undefined";
3243
- _require = typeof require !== "undefined" ? require : (0, import_node_module.createRequire)(import_meta2.url);
3264
+ _require = (0, import_node_module.createRequire)(
3265
+ typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
3266
+ );
3244
3267
  PLATFORM_MAP = {
3245
3268
  "linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
3246
3269
  "linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
@@ -3360,7 +3383,7 @@ function resolveRuntimeDir(dir, importMetaUrl) {
3360
3383
  return process.cwd();
3361
3384
  }
3362
3385
  }
3363
- var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module2, import_meta3, TwError, _require2;
3386
+ var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module2, TwError, _require2;
3364
3387
  var init_src = __esm({
3365
3388
  "packages/domain/shared/src/index.ts"() {
3366
3389
  "use strict";
@@ -3371,7 +3394,6 @@ var init_src = __esm({
3371
3394
  import_node_module2 = require("module");
3372
3395
  init_esmHelpers();
3373
3396
  init_native_resolution();
3374
- import_meta3 = {};
3375
3397
  TwError = class _TwError extends Error {
3376
3398
  /** @deprecated Gunakan source */
3377
3399
  domain;
@@ -3424,7 +3446,9 @@ var init_src = __esm({
3424
3446
  return `[${this.source.toUpperCase()}:${this.code}] ${this.message}`;
3425
3447
  }
3426
3448
  };
3427
- _require2 = (0, import_node_module2.createRequire)(import_meta3.url);
3449
+ _require2 = (0, import_node_module2.createRequire)(
3450
+ typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
3451
+ );
3428
3452
  }
3429
3453
  });
3430
3454
 
@@ -3461,8 +3485,8 @@ function getDirname2() {
3461
3485
  if (typeof __dirname !== "undefined") {
3462
3486
  return __dirname;
3463
3487
  }
3464
- if (typeof import_meta4 !== "undefined" && import_meta4.url) {
3465
- return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(import_meta4.url));
3488
+ if (typeof import_meta !== "undefined" && __importMetaUrl) {
3489
+ return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(__importMetaUrl));
3466
3490
  }
3467
3491
  return process.cwd();
3468
3492
  }
@@ -3667,14 +3691,14 @@ function hasNativeWatchBinding() {
3667
3691
  return false;
3668
3692
  }
3669
3693
  }
3670
- var import_node_path2, import_node_url2, import_meta4, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
3694
+ var import_node_path2, import_node_url2, import_meta, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
3671
3695
  var init_native_bridge = __esm({
3672
3696
  "packages/domain/scanner/src/native-bridge.ts"() {
3673
3697
  "use strict";
3674
3698
  import_node_path2 = __toESM(require("path"), 1);
3675
3699
  import_node_url2 = require("url");
3676
3700
  init_src();
3677
- import_meta4 = {};
3701
+ import_meta = {};
3678
3702
  log = createDebugLogger("scanner:native");
3679
3703
  isValidScannerBinding = (module2) => {
3680
3704
  const candidate = module2;
@@ -3864,7 +3888,7 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
3864
3888
  }
3865
3889
  return mergeResults(allResults);
3866
3890
  }
3867
- var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3, import_meta5, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
3891
+ var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
3868
3892
  var init_parallel_scanner = __esm({
3869
3893
  "packages/domain/scanner/src/parallel-scanner.ts"() {
3870
3894
  "use strict";
@@ -3874,7 +3898,6 @@ var init_parallel_scanner = __esm({
3874
3898
  import_node_url3 = require("url");
3875
3899
  init_src2();
3876
3900
  init_native_bridge();
3877
- import_meta5 = {};
3878
3901
  PARALLEL_THRESHOLD = 50;
3879
3902
  DEFAULT_CHUNK_SIZE = 150;
3880
3903
  if (!import_node_worker_threads.isMainThread && import_node_worker_threads.parentPort) {
@@ -3891,7 +3914,7 @@ var init_parallel_scanner = __esm({
3891
3914
  import_node_worker_threads.parentPort.postMessage(msg);
3892
3915
  }
3893
3916
  }
3894
- _workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(import_meta5.url);
3917
+ _workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(__importMetaUrl);
3895
3918
  }
3896
3919
  });
3897
3920
 
@@ -3983,8 +4006,8 @@ function getRuntimeDir() {
3983
4006
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
3984
4007
  return __dirname;
3985
4008
  }
3986
- if (typeof import_meta6 !== "undefined" && import_meta6.url) {
3987
- return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(import_meta6.url));
4009
+ if (typeof import_meta2 !== "undefined" && __importMetaUrl) {
4010
+ return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(__importMetaUrl));
3988
4011
  }
3989
4012
  return process.cwd();
3990
4013
  }
@@ -3993,8 +4016,8 @@ function resolveScannerWorkerModulePath() {
3993
4016
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
3994
4017
  return __dirname;
3995
4018
  }
3996
- if (typeof import_meta6 !== "undefined" && import_meta6.url) {
3997
- return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(import_meta6.url));
4019
+ if (typeof import_meta2 !== "undefined" && __importMetaUrl) {
4020
+ return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(__importMetaUrl));
3998
4021
  }
3999
4022
  return process.cwd();
4000
4023
  })();
@@ -4267,7 +4290,7 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
4267
4290
  return scanWorkspace(rootDir, normalizedOptions);
4268
4291
  }
4269
4292
  }
4270
- var import_node_fs3, import_node_module3, import_node_path5, import_node_url4, import_node_worker_threads2, import_meta6, log2, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
4293
+ var import_node_fs3, import_node_module3, import_node_path5, import_node_url4, import_node_worker_threads2, import_meta2, log2, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
4271
4294
  var init_src2 = __esm({
4272
4295
  "packages/domain/scanner/src/index.ts"() {
4273
4296
  "use strict";
@@ -4283,7 +4306,7 @@ var init_src2 = __esm({
4283
4306
  init_schemas();
4284
4307
  init_schemas();
4285
4308
  init_native_bridge();
4286
- import_meta6 = {};
4309
+ import_meta2 = {};
4287
4310
  log2 = createLogger("scanner");
4288
4311
  SCAN_WORKER_TIMEOUT_MS = 12e4;
4289
4312
  createNativeParserLoader = () => {
@@ -4417,7 +4440,7 @@ async function requireNativeBinding() {
4417
4440
  if (binding?.analyzeClasses) return binding;
4418
4441
  const runtimeDir = resolveRuntimeDir(
4419
4442
  typeof __dirname === "string" ? __dirname : void 0,
4420
- import_meta7.url
4443
+ __importMetaUrl
4421
4444
  );
4422
4445
  const candidates = resolveNativeBindingCandidates({
4423
4446
  runtimeDir,
@@ -4447,13 +4470,12 @@ async function requireNativeCssCompiler() {
4447
4470
  if (typeof binding.compileCss === "function") return binding;
4448
4471
  throw new Error(`Native analyzer compileCss binding is missing.`);
4449
4472
  }
4450
- var import_meta7, isAnalyzerModule, createAnalyzerBindingLoader, analyzerBindingLoader;
4473
+ var isAnalyzerModule, createAnalyzerBindingLoader, analyzerBindingLoader;
4451
4474
  var init_binding = __esm({
4452
4475
  "packages/domain/analyzer/src/binding.ts"() {
4453
4476
  "use strict";
4454
4477
  init_src();
4455
4478
  init_utils();
4456
- import_meta7 = {};
4457
4479
  isAnalyzerModule = (module2) => {
4458
4480
  const candidate = module2;
4459
4481
  return typeof candidate?.analyzeClasses === "function" || typeof candidate?.analyzeClassesWorkspace === "function";
@@ -4465,7 +4487,7 @@ var init_binding = __esm({
4465
4487
  _state.bindingPromise = (async () => {
4466
4488
  const runtimeDir = resolveRuntimeDir(
4467
4489
  typeof __dirname === "string" ? __dirname : void 0,
4468
- import_meta7.url
4490
+ __importMetaUrl
4469
4491
  );
4470
4492
  const candidates = resolveNativeBindingCandidates({
4471
4493
  runtimeDir,
@@ -6094,12 +6116,12 @@ function buildCreateProgram(context) {
6094
6116
  async function main(rawArgs = process.argv.slice(2)) {
6095
6117
  await runCliMain({
6096
6118
  argv: [process.execPath, "create-tailwind-styled", ...rawArgs],
6097
- importMetaUrl: import_meta8.url,
6119
+ importMetaUrl: typeof import_meta3 !== "undefined" && __importMetaUrl ? __importMetaUrl : `file://${process.argv[1] ?? "unknown"}`,
6098
6120
  commandHint: "create",
6099
6121
  buildProgram: buildCreateProgram
6100
6122
  });
6101
6123
  }
6102
- var import_node_path19, import_prompts4, import_meta8, TEMPLATE_NAMES, TEMPLATES;
6124
+ var import_node_path19, import_prompts4, import_meta3, TEMPLATE_NAMES, TEMPLATES;
6103
6125
  var init_createApp = __esm({
6104
6126
  "packages/infrastructure/cli/src/createApp.ts"() {
6105
6127
  "use strict";
@@ -6109,7 +6131,7 @@ var init_createApp = __esm({
6109
6131
  init_errors();
6110
6132
  init_fs();
6111
6133
  init_runtime();
6112
- import_meta8 = {};
6134
+ import_meta3 = {};
6113
6135
  TEMPLATE_NAMES = ["next-app", "vite-react", "vite-vue", "vite-svelte", "simple"];
6114
6136
  TEMPLATES = {
6115
6137
  "next-app": createNextApp,
@@ -6122,12 +6144,11 @@ var init_createApp = __esm({
6122
6144
  });
6123
6145
 
6124
6146
  // packages/domain/compiler/src/nativeBridge.ts
6125
- var import_meta9, _loadNative, log3, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge;
6147
+ var _loadNative, log3, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge;
6126
6148
  var init_nativeBridge = __esm({
6127
6149
  "packages/domain/compiler/src/nativeBridge.ts"() {
6128
6150
  "use strict";
6129
6151
  init_src();
6130
- import_meta9 = {};
6131
6152
  _loadNative = (path30) => require(path30);
6132
6153
  log3 = (...args) => {
6133
6154
  if (process.env.DEBUG?.includes("compiler:native")) {
@@ -6154,7 +6175,7 @@ var init_nativeBridge = __esm({
6154
6175
  }
6155
6176
  bridgeLoadAttempted = true;
6156
6177
  try {
6157
- const runtimeDir = resolveRuntimeDir(void 0, import_meta9.url);
6178
+ const runtimeDir = resolveRuntimeDir(void 0, __importMetaUrl);
6158
6179
  const result = resolveNativeBinary(runtimeDir);
6159
6180
  if (result.path && result.path.endsWith(".node")) {
6160
6181
  try {
@@ -6265,7 +6286,7 @@ var init_watch = __esm({
6265
6286
  });
6266
6287
 
6267
6288
  // packages/domain/compiler/src/index.ts
6268
- var import_node_fs9, import_node_path24, import_node_module4, import_meta10, _require3, compileCssFromClasses;
6289
+ var import_node_fs9, import_node_path24, import_node_module4, _require3, compileCssFromClasses;
6269
6290
  var init_src4 = __esm({
6270
6291
  "packages/domain/compiler/src/index.ts"() {
6271
6292
  "use strict";
@@ -6279,8 +6300,9 @@ var init_src4 = __esm({
6279
6300
  init_cache();
6280
6301
  init_redis();
6281
6302
  init_watch();
6282
- import_meta10 = {};
6283
- _require3 = (0, import_node_module4.createRequire)(import_meta10.url);
6303
+ _require3 = (0, import_node_module4.createRequire)(
6304
+ typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
6305
+ );
6284
6306
  compileCssFromClasses = (classes, prefix) => {
6285
6307
  const native = getNativeBridge();
6286
6308
  if (!native?.transformSource) {
@@ -8939,7 +8961,7 @@ init_errors();
8939
8961
  init_fs();
8940
8962
  init_json();
8941
8963
  init_src4();
8942
- var import_meta11 = {};
8964
+ var import_meta4 = {};
8943
8965
  var DEFAULT_TAILWIND_CSS2 = '@import "tailwindcss";\n';
8944
8966
  var DEFAULT_TW_CONFIG = `${JSON.stringify(
8945
8967
  {
@@ -9250,7 +9272,8 @@ async function runPreflightCli(rawArgs) {
9250
9272
  function isDirectExecution() {
9251
9273
  const scriptPath = process.argv[1];
9252
9274
  if (!scriptPath) return false;
9253
- return import_meta11.url === (0, import_node_url7.pathToFileURL)(scriptPath).href;
9275
+ const currentUrl = typeof import_meta4 !== "undefined" && __importMetaUrl ? __importMetaUrl : `file://${scriptPath}`;
9276
+ return currentUrl === (0, import_node_url7.pathToFileURL)(scriptPath).href;
9254
9277
  }
9255
9278
  if (isDirectExecution()) {
9256
9279
  runPreflightCli(process.argv.slice(2)).catch((error) => {
@@ -9671,12 +9694,12 @@ init_internal();
9671
9694
 
9672
9695
  // packages/domain/engine/src/native-bridge.ts
9673
9696
  init_src();
9674
- var import_meta12 = {};
9697
+ var import_meta5 = {};
9675
9698
  var log4 = createDebugLogger("engine:native");
9676
9699
  function getDirname3() {
9677
9700
  if (typeof __dirname !== "undefined") return __dirname;
9678
- if (typeof import_meta12 !== "undefined" && import_meta12.url) {
9679
- return getDirname(import_meta12.url);
9701
+ if (typeof import_meta5 !== "undefined" && __importMetaUrl) {
9702
+ return getDirname(__importMetaUrl);
9680
9703
  }
9681
9704
  return process.cwd();
9682
9705
  }
@@ -11644,15 +11667,14 @@ init_runtime();
11644
11667
  init_args();
11645
11668
  init_args();
11646
11669
  init_output();
11647
- var import_meta13 = {};
11648
11670
  async function main2() {
11649
11671
  await runCliMain({
11650
- importMetaUrl: import_meta13.url,
11672
+ importMetaUrl: __importMetaUrl,
11651
11673
  buildProgram: buildMainProgram
11652
11674
  });
11653
11675
  }
11654
- var __filename2 = (0, import_node_url8.fileURLToPath)(import_meta13.url);
11655
- if (process.argv[1] === __filename2) {
11676
+ var __currentFile = (0, import_node_url8.fileURLToPath)(__importMetaUrl);
11677
+ if (process.argv[1] === __currentFile) {
11656
11678
  main2();
11657
11679
  }
11658
11680
  // Annotate the CommonJS export names for ESM import in node: