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/tw.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
2
3
  /* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
3
4
  "use strict";
4
5
  var __create = Object.create;
@@ -3118,31 +3119,52 @@ function getNodeModuleRef() {
3118
3119
  return null;
3119
3120
  }
3120
3121
  }
3122
+ function getCurrentFileUrl() {
3123
+ if (__importMetaUrl) {
3124
+ return __importMetaUrl;
3125
+ }
3126
+ if (typeof __filename !== "undefined") {
3127
+ return `file://${__filename.replace(/\\/g, "/")}`;
3128
+ }
3129
+ return "file://unknown";
3130
+ }
3121
3131
  function getNodePath() {
3122
3132
  if (isBrowser) throw new Error("node:path not available in browser");
3123
- const nodeRequire = getNodeModuleRef();
3124
- if (!nodeRequire) throw new Error("require not available");
3125
- if (!_nodePath) _nodePath = nodeRequire.createRequire(import_meta.url)("node:path");
3133
+ if (!_nodePath) {
3134
+ if (typeof require === "function") {
3135
+ _nodePath = require("path");
3136
+ } else {
3137
+ const nodeRequire = getNodeModuleRef();
3138
+ if (!nodeRequire) throw new Error("require not available");
3139
+ _nodePath = nodeRequire.createRequire(getCurrentFileUrl())("node:path");
3140
+ }
3141
+ }
3126
3142
  return _nodePath;
3127
3143
  }
3128
3144
  function getNodeUrl() {
3129
3145
  if (isBrowser) throw new Error("node:url not available in browser");
3130
- const nodeRequire = getNodeModuleRef();
3131
- if (!nodeRequire) throw new Error("require not available");
3132
- if (!_nodeUrl) _nodeUrl = nodeRequire.createRequire(import_meta.url)("node:url");
3146
+ if (!_nodeUrl) {
3147
+ if (typeof require === "function") {
3148
+ _nodeUrl = require("url");
3149
+ } else {
3150
+ const nodeRequire = getNodeModuleRef();
3151
+ if (!nodeRequire) throw new Error("require not available");
3152
+ _nodeUrl = nodeRequire.createRequire(getCurrentFileUrl())("node:url");
3153
+ }
3154
+ }
3133
3155
  return _nodeUrl;
3134
3156
  }
3135
3157
  function getDirname(importMetaUrl) {
3136
3158
  if (isBrowser) return "";
3159
+ if (typeof __dirname !== "undefined") return __dirname;
3137
3160
  const nodePath = getNodePath();
3138
3161
  const nodeUrl = getNodeUrl();
3139
3162
  return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl));
3140
3163
  }
3141
- var import_meta, isBrowser, nodeModuleRef, _nodePath, _nodeUrl;
3164
+ var isBrowser, nodeModuleRef, _nodePath, _nodeUrl;
3142
3165
  var init_esmHelpers = __esm({
3143
3166
  "packages/domain/shared/src/esmHelpers.ts"() {
3144
3167
  "use strict";
3145
- import_meta = {};
3146
3168
  isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
3147
3169
  nodeModuleRef = null;
3148
3170
  _nodePath = null;
@@ -3232,16 +3254,17 @@ function resolveNativeBinary(runtimeDir) {
3232
3254
  }
3233
3255
  return { path: null, source: "not-found", platform, tried };
3234
3256
  }
3235
- var import_node_module, fs, path, import_meta2, isBrowser2, _require, PLATFORM_MAP;
3257
+ var import_node_module, fs, path, isBrowser2, _require, PLATFORM_MAP;
3236
3258
  var init_native_resolution = __esm({
3237
3259
  "packages/domain/shared/src/native-resolution.ts"() {
3238
3260
  "use strict";
3239
3261
  import_node_module = require("module");
3240
3262
  fs = __toESM(require("fs"));
3241
3263
  path = __toESM(require("path"));
3242
- import_meta2 = {};
3243
3264
  isBrowser2 = typeof window !== "undefined" || typeof document !== "undefined";
3244
- _require = typeof require !== "undefined" ? require : (0, import_node_module.createRequire)(import_meta2.url);
3265
+ _require = (0, import_node_module.createRequire)(
3266
+ typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
3267
+ );
3245
3268
  PLATFORM_MAP = {
3246
3269
  "linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
3247
3270
  "linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
@@ -3361,7 +3384,7 @@ function resolveRuntimeDir(dir, importMetaUrl) {
3361
3384
  return process.cwd();
3362
3385
  }
3363
3386
  }
3364
- var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module2, import_meta3, TwError, _require2;
3387
+ var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module2, TwError, _require2;
3365
3388
  var init_src = __esm({
3366
3389
  "packages/domain/shared/src/index.ts"() {
3367
3390
  "use strict";
@@ -3372,7 +3395,6 @@ var init_src = __esm({
3372
3395
  import_node_module2 = require("module");
3373
3396
  init_esmHelpers();
3374
3397
  init_native_resolution();
3375
- import_meta3 = {};
3376
3398
  TwError = class _TwError extends Error {
3377
3399
  /** @deprecated Gunakan source */
3378
3400
  domain;
@@ -3425,7 +3447,9 @@ var init_src = __esm({
3425
3447
  return `[${this.source.toUpperCase()}:${this.code}] ${this.message}`;
3426
3448
  }
3427
3449
  };
3428
- _require2 = (0, import_node_module2.createRequire)(import_meta3.url);
3450
+ _require2 = (0, import_node_module2.createRequire)(
3451
+ typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
3452
+ );
3429
3453
  }
3430
3454
  });
3431
3455
 
@@ -3462,8 +3486,8 @@ function getDirname2() {
3462
3486
  if (typeof __dirname !== "undefined") {
3463
3487
  return __dirname;
3464
3488
  }
3465
- if (typeof import_meta4 !== "undefined" && import_meta4.url) {
3466
- return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(import_meta4.url));
3489
+ if (typeof import_meta !== "undefined" && __importMetaUrl) {
3490
+ return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(__importMetaUrl));
3467
3491
  }
3468
3492
  return process.cwd();
3469
3493
  }
@@ -3668,14 +3692,14 @@ function hasNativeWatchBinding() {
3668
3692
  return false;
3669
3693
  }
3670
3694
  }
3671
- var import_node_path2, import_node_url2, import_meta4, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
3695
+ var import_node_path2, import_node_url2, import_meta, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
3672
3696
  var init_native_bridge = __esm({
3673
3697
  "packages/domain/scanner/src/native-bridge.ts"() {
3674
3698
  "use strict";
3675
3699
  import_node_path2 = __toESM(require("path"), 1);
3676
3700
  import_node_url2 = require("url");
3677
3701
  init_src();
3678
- import_meta4 = {};
3702
+ import_meta = {};
3679
3703
  log = createDebugLogger("scanner:native");
3680
3704
  isValidScannerBinding = (module2) => {
3681
3705
  const candidate = module2;
@@ -3865,7 +3889,7 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
3865
3889
  }
3866
3890
  return mergeResults(allResults);
3867
3891
  }
3868
- var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3, import_meta5, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
3892
+ var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
3869
3893
  var init_parallel_scanner = __esm({
3870
3894
  "packages/domain/scanner/src/parallel-scanner.ts"() {
3871
3895
  "use strict";
@@ -3875,7 +3899,6 @@ var init_parallel_scanner = __esm({
3875
3899
  import_node_url3 = require("url");
3876
3900
  init_src2();
3877
3901
  init_native_bridge();
3878
- import_meta5 = {};
3879
3902
  PARALLEL_THRESHOLD = 50;
3880
3903
  DEFAULT_CHUNK_SIZE = 150;
3881
3904
  if (!import_node_worker_threads.isMainThread && import_node_worker_threads.parentPort) {
@@ -3892,7 +3915,7 @@ var init_parallel_scanner = __esm({
3892
3915
  import_node_worker_threads.parentPort.postMessage(msg);
3893
3916
  }
3894
3917
  }
3895
- _workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(import_meta5.url);
3918
+ _workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(__importMetaUrl);
3896
3919
  }
3897
3920
  });
3898
3921
 
@@ -3984,8 +4007,8 @@ function getRuntimeDir() {
3984
4007
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
3985
4008
  return __dirname;
3986
4009
  }
3987
- if (typeof import_meta6 !== "undefined" && import_meta6.url) {
3988
- return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(import_meta6.url));
4010
+ if (typeof import_meta2 !== "undefined" && __importMetaUrl) {
4011
+ return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(__importMetaUrl));
3989
4012
  }
3990
4013
  return process.cwd();
3991
4014
  }
@@ -3994,8 +4017,8 @@ function resolveScannerWorkerModulePath() {
3994
4017
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
3995
4018
  return __dirname;
3996
4019
  }
3997
- if (typeof import_meta6 !== "undefined" && import_meta6.url) {
3998
- return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(import_meta6.url));
4020
+ if (typeof import_meta2 !== "undefined" && __importMetaUrl) {
4021
+ return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(__importMetaUrl));
3999
4022
  }
4000
4023
  return process.cwd();
4001
4024
  })();
@@ -4268,7 +4291,7 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
4268
4291
  return scanWorkspace(rootDir, normalizedOptions);
4269
4292
  }
4270
4293
  }
4271
- 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;
4294
+ 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;
4272
4295
  var init_src2 = __esm({
4273
4296
  "packages/domain/scanner/src/index.ts"() {
4274
4297
  "use strict";
@@ -4284,7 +4307,7 @@ var init_src2 = __esm({
4284
4307
  init_schemas();
4285
4308
  init_schemas();
4286
4309
  init_native_bridge();
4287
- import_meta6 = {};
4310
+ import_meta2 = {};
4288
4311
  log2 = createLogger("scanner");
4289
4312
  SCAN_WORKER_TIMEOUT_MS = 12e4;
4290
4313
  createNativeParserLoader = () => {
@@ -4418,7 +4441,7 @@ async function requireNativeBinding() {
4418
4441
  if (binding?.analyzeClasses) return binding;
4419
4442
  const runtimeDir = resolveRuntimeDir(
4420
4443
  typeof __dirname === "string" ? __dirname : void 0,
4421
- import_meta7.url
4444
+ __importMetaUrl
4422
4445
  );
4423
4446
  const candidates = resolveNativeBindingCandidates({
4424
4447
  runtimeDir,
@@ -4448,13 +4471,12 @@ async function requireNativeCssCompiler() {
4448
4471
  if (typeof binding.compileCss === "function") return binding;
4449
4472
  throw new Error(`Native analyzer compileCss binding is missing.`);
4450
4473
  }
4451
- var import_meta7, isAnalyzerModule, createAnalyzerBindingLoader, analyzerBindingLoader;
4474
+ var isAnalyzerModule, createAnalyzerBindingLoader, analyzerBindingLoader;
4452
4475
  var init_binding = __esm({
4453
4476
  "packages/domain/analyzer/src/binding.ts"() {
4454
4477
  "use strict";
4455
4478
  init_src();
4456
4479
  init_utils();
4457
- import_meta7 = {};
4458
4480
  isAnalyzerModule = (module2) => {
4459
4481
  const candidate = module2;
4460
4482
  return typeof candidate?.analyzeClasses === "function" || typeof candidate?.analyzeClassesWorkspace === "function";
@@ -4466,7 +4488,7 @@ var init_binding = __esm({
4466
4488
  _state.bindingPromise = (async () => {
4467
4489
  const runtimeDir = resolveRuntimeDir(
4468
4490
  typeof __dirname === "string" ? __dirname : void 0,
4469
- import_meta7.url
4491
+ __importMetaUrl
4470
4492
  );
4471
4493
  const candidates = resolveNativeBindingCandidates({
4472
4494
  runtimeDir,
@@ -6095,12 +6117,12 @@ function buildCreateProgram(context) {
6095
6117
  async function main(rawArgs = process.argv.slice(2)) {
6096
6118
  await runCliMain({
6097
6119
  argv: [process.execPath, "create-tailwind-styled", ...rawArgs],
6098
- importMetaUrl: import_meta8.url,
6120
+ importMetaUrl: typeof import_meta3 !== "undefined" && __importMetaUrl ? __importMetaUrl : `file://${process.argv[1] ?? "unknown"}`,
6099
6121
  commandHint: "create",
6100
6122
  buildProgram: buildCreateProgram
6101
6123
  });
6102
6124
  }
6103
- var import_node_path19, import_prompts4, import_meta8, TEMPLATE_NAMES, TEMPLATES;
6125
+ var import_node_path19, import_prompts4, import_meta3, TEMPLATE_NAMES, TEMPLATES;
6104
6126
  var init_createApp = __esm({
6105
6127
  "packages/infrastructure/cli/src/createApp.ts"() {
6106
6128
  "use strict";
@@ -6110,7 +6132,7 @@ var init_createApp = __esm({
6110
6132
  init_errors();
6111
6133
  init_fs();
6112
6134
  init_runtime();
6113
- import_meta8 = {};
6135
+ import_meta3 = {};
6114
6136
  TEMPLATE_NAMES = ["next-app", "vite-react", "vite-vue", "vite-svelte", "simple"];
6115
6137
  TEMPLATES = {
6116
6138
  "next-app": createNextApp,
@@ -6123,12 +6145,11 @@ var init_createApp = __esm({
6123
6145
  });
6124
6146
 
6125
6147
  // packages/domain/compiler/src/nativeBridge.ts
6126
- var import_meta9, _loadNative, log3, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge;
6148
+ var _loadNative, log3, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge;
6127
6149
  var init_nativeBridge = __esm({
6128
6150
  "packages/domain/compiler/src/nativeBridge.ts"() {
6129
6151
  "use strict";
6130
6152
  init_src();
6131
- import_meta9 = {};
6132
6153
  _loadNative = (path30) => require(path30);
6133
6154
  log3 = (...args) => {
6134
6155
  if (process.env.DEBUG?.includes("compiler:native")) {
@@ -6155,7 +6176,7 @@ var init_nativeBridge = __esm({
6155
6176
  }
6156
6177
  bridgeLoadAttempted = true;
6157
6178
  try {
6158
- const runtimeDir = resolveRuntimeDir(void 0, import_meta9.url);
6179
+ const runtimeDir = resolveRuntimeDir(void 0, __importMetaUrl);
6159
6180
  const result = resolveNativeBinary(runtimeDir);
6160
6181
  if (result.path && result.path.endsWith(".node")) {
6161
6182
  try {
@@ -6266,7 +6287,7 @@ var init_watch = __esm({
6266
6287
  });
6267
6288
 
6268
6289
  // packages/domain/compiler/src/index.ts
6269
- var import_node_fs9, import_node_path24, import_node_module4, import_meta10, _require3, compileCssFromClasses;
6290
+ var import_node_fs9, import_node_path24, import_node_module4, _require3, compileCssFromClasses;
6270
6291
  var init_src4 = __esm({
6271
6292
  "packages/domain/compiler/src/index.ts"() {
6272
6293
  "use strict";
@@ -6280,8 +6301,9 @@ var init_src4 = __esm({
6280
6301
  init_cache();
6281
6302
  init_redis();
6282
6303
  init_watch();
6283
- import_meta10 = {};
6284
- _require3 = (0, import_node_module4.createRequire)(import_meta10.url);
6304
+ _require3 = (0, import_node_module4.createRequire)(
6305
+ typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
6306
+ );
6285
6307
  compileCssFromClasses = (classes, prefix) => {
6286
6308
  const native = getNativeBridge();
6287
6309
  if (!native?.transformSource) {
@@ -8930,7 +8952,7 @@ init_errors();
8930
8952
  init_fs();
8931
8953
  init_json();
8932
8954
  init_src4();
8933
- var import_meta11 = {};
8955
+ var import_meta4 = {};
8934
8956
  var DEFAULT_TAILWIND_CSS2 = '@import "tailwindcss";\n';
8935
8957
  var DEFAULT_TW_CONFIG = `${JSON.stringify(
8936
8958
  {
@@ -9241,7 +9263,8 @@ async function runPreflightCli(rawArgs) {
9241
9263
  function isDirectExecution() {
9242
9264
  const scriptPath = process.argv[1];
9243
9265
  if (!scriptPath) return false;
9244
- return import_meta11.url === (0, import_node_url7.pathToFileURL)(scriptPath).href;
9266
+ const currentUrl = typeof import_meta4 !== "undefined" && __importMetaUrl ? __importMetaUrl : `file://${scriptPath}`;
9267
+ return currentUrl === (0, import_node_url7.pathToFileURL)(scriptPath).href;
9245
9268
  }
9246
9269
  if (isDirectExecution()) {
9247
9270
  runPreflightCli(process.argv.slice(2)).catch((error) => {
@@ -9662,12 +9685,12 @@ init_internal();
9662
9685
 
9663
9686
  // packages/domain/engine/src/native-bridge.ts
9664
9687
  init_src();
9665
- var import_meta12 = {};
9688
+ var import_meta5 = {};
9666
9689
  var log4 = createDebugLogger("engine:native");
9667
9690
  function getDirname3() {
9668
9691
  if (typeof __dirname !== "undefined") return __dirname;
9669
- if (typeof import_meta12 !== "undefined" && import_meta12.url) {
9670
- return getDirname(import_meta12.url);
9692
+ if (typeof import_meta5 !== "undefined" && __importMetaUrl) {
9693
+ return getDirname(__importMetaUrl);
9671
9694
  }
9672
9695
  return process.cwd();
9673
9696
  }
@@ -11635,15 +11658,14 @@ init_runtime();
11635
11658
  init_args();
11636
11659
  init_args();
11637
11660
  init_output();
11638
- var import_meta13 = {};
11639
11661
  async function main2() {
11640
11662
  await runCliMain({
11641
- importMetaUrl: import_meta13.url,
11663
+ importMetaUrl: __importMetaUrl,
11642
11664
  buildProgram: buildMainProgram
11643
11665
  });
11644
11666
  }
11645
- var __filename2 = (0, import_node_url8.fileURLToPath)(import_meta13.url);
11646
- if (process.argv[1] === __filename2) {
11667
+ var __currentFile = (0, import_node_url8.fileURLToPath)(__importMetaUrl);
11668
+ if (process.argv[1] === __currentFile) {
11647
11669
  main2();
11648
11670
  }
11649
11671
  //# sourceMappingURL=tw.js.map