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.
- package/dist/analyzer.js +18 -20
- package/dist/analyzer.js.map +1 -1
- package/dist/analyzer.mjs +3 -1
- package/dist/analyzer.mjs.map +1 -1
- package/dist/animate.js +8 -8
- package/dist/animate.js.map +1 -1
- package/dist/animate.mjs +3 -1
- package/dist/animate.mjs.map +1 -1
- package/dist/atomic.js +15 -12
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +9 -3
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +45 -95
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +42 -13
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +23 -18
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +15 -5
- package/dist/compiler.mjs.map +1 -1
- package/dist/dashboard.js +1 -0
- package/dist/dashboard.js.map +1 -1
- package/dist/devtools.js +5 -3
- package/dist/devtools.js.map +1 -1
- package/dist/devtools.mjs +3 -1
- package/dist/devtools.mjs.map +1 -1
- package/dist/engine.js +83 -53
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +58 -16
- package/dist/engine.mjs.map +1 -1
- package/dist/index.js +15 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -4
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +35 -30
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +21 -8
- package/dist/next.mjs.map +1 -1
- package/dist/plugin-api.js +1 -0
- package/dist/plugin-api.js.map +1 -1
- package/dist/plugin-registry.js +2 -2
- package/dist/plugin-registry.js.map +1 -1
- package/dist/plugin.js +1 -0
- package/dist/plugin.js.map +1 -1
- package/dist/preset.js +1 -0
- package/dist/preset.js.map +1 -1
- package/dist/rspack.js +9 -55
- package/dist/rspack.js.map +1 -1
- package/dist/rspack.mjs +31 -7
- package/dist/rspack.mjs.map +1 -1
- package/dist/runtime-css.js +1 -0
- package/dist/runtime-css.js.map +1 -1
- package/dist/runtime.js +1 -0
- package/dist/runtime.js.map +1 -1
- package/dist/scanner.js +14 -15
- package/dist/scanner.js.map +1 -1
- package/dist/scanner.mjs +3 -1
- package/dist/scanner.mjs.map +1 -1
- package/dist/shared.d.mts +0 -12
- package/dist/shared.d.ts +0 -12
- package/dist/shared.js +64 -30
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +55 -15
- package/dist/shared.mjs.map +1 -1
- package/dist/storybook-addon.js +1 -0
- package/dist/storybook-addon.js.map +1 -1
- package/dist/svelte.js +15 -9
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +12 -4
- package/dist/svelte.mjs.map +1 -1
- package/dist/syntax.js +3 -3
- package/dist/syntax.js.map +1 -1
- package/dist/testing.js +1 -0
- package/dist/testing.js.map +1 -1
- package/dist/theme.js +8 -7
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +3 -1
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +23 -18
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +15 -5
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +45 -95
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +42 -13
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +80 -51
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +55 -15
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +15 -9
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +12 -4
- package/dist/vue.mjs.map +1 -1
- package/dist/webpackLoader.js +15 -12
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +9 -3
- package/dist/webpackLoader.mjs.map +1 -1
- package/native/tailwind-styled-native.linux-x64-gnu.node +0 -0
- package/native/tailwind-styled-native.node +0 -0
- 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
|
-
|
|
311
|
-
|
|
312
|
-
|
|
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
|
-
|
|
318
|
-
|
|
319
|
-
|
|
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
|
-
|
|
325
|
-
|
|
326
|
-
|
|
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(
|
|
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
|
|
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,
|
|
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 =
|
|
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,
|
|
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
|
-
|
|
1240
|
-
|
|
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,
|
|
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
|
-
|
|
1432
|
-
|
|
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,
|
|
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)(
|
|
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
|
|
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,
|
|
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,
|
|
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
|
-
|
|
3740
|
-
|
|
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 (
|
|
4106
|
-
return
|
|
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,
|
|
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 =
|
|
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,
|
|
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)(
|
|
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 (
|
|
4628
|
-
return import_node_path8.default.dirname((
|
|
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 (
|
|
4638
|
-
return import_node_path8.default.dirname((
|
|
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,
|
|
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 (
|
|
5018
|
-
return
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
5249
|
+
__importMetaUrl
|
|
5221
5250
|
);
|
|
5222
5251
|
const candidates = resolveNativeBindingCandidates({
|
|
5223
5252
|
runtimeDir,
|