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.
- package/dist/analyzer.js +19 -19
- 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 +71 -49
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +42 -13
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +25 -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 +88 -52
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +58 -16
- package/dist/engine.mjs.map +1 -1
- package/dist/index.js +16 -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 +39 -29
- 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 -1
- 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 +37 -14
- 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 +15 -14
- 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 +66 -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 +16 -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 -2
- 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 -6
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +3 -1
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +25 -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 +71 -49
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +42 -13
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +84 -50
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +55 -15
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +16 -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,15 @@ 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, import_meta, 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
|
-
require2 = (0, import_node_module2.createRequire)(
|
|
1270
|
+
import_meta = {};
|
|
1271
|
+
require2 = (0, import_node_module2.createRequire)(
|
|
1272
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta !== "undefined" && __importMetaUrl ? __importMetaUrl : "file://unknown"
|
|
1273
|
+
);
|
|
1241
1274
|
MAX_CACHE_MEMORY = 256 * 1024;
|
|
1242
1275
|
_twEngine = null;
|
|
1243
1276
|
_twEngineError = null;
|
|
@@ -1419,7 +1452,7 @@ function processTailwindCssWithTargets(css, targets) {
|
|
|
1419
1452
|
}
|
|
1420
1453
|
return result.css;
|
|
1421
1454
|
}
|
|
1422
|
-
var import_node_module3,
|
|
1455
|
+
var import_node_module3, import_meta2, require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
|
|
1423
1456
|
var init_tailwindEngine2 = __esm({
|
|
1424
1457
|
"packages/domain/compiler/src/compiler/tailwindEngine.ts"() {
|
|
1425
1458
|
"use strict";
|
|
@@ -1428,8 +1461,10 @@ var init_tailwindEngine2 = __esm({
|
|
|
1428
1461
|
init_cssGeneratorNative();
|
|
1429
1462
|
init_cssCompilationNative();
|
|
1430
1463
|
init_tailwindEngine();
|
|
1431
|
-
|
|
1432
|
-
require3 = (0, import_node_module3.createRequire)(
|
|
1464
|
+
import_meta2 = {};
|
|
1465
|
+
require3 = (0, import_node_module3.createRequire)(
|
|
1466
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta2 !== "undefined" && __importMetaUrl ? __importMetaUrl : "file://unknown"
|
|
1467
|
+
);
|
|
1433
1468
|
_cssCache = /* @__PURE__ */ new Map();
|
|
1434
1469
|
_cacheHits = 0;
|
|
1435
1470
|
_cacheMisses = 0;
|
|
@@ -3457,7 +3492,7 @@ function formatErrorMessage(error) {
|
|
|
3457
3492
|
if (error instanceof Error) return error.message;
|
|
3458
3493
|
return String(error);
|
|
3459
3494
|
}
|
|
3460
|
-
var import_node_crypto, import_node_fs3, import_node_path3, import_node_url, import_node_module4,
|
|
3495
|
+
var import_node_crypto, import_node_fs3, import_node_path3, import_node_url, import_node_module4, TwError, _require2, LRUCache;
|
|
3461
3496
|
var init_src = __esm({
|
|
3462
3497
|
"packages/domain/shared/src/index.ts"() {
|
|
3463
3498
|
"use strict";
|
|
@@ -3479,7 +3514,6 @@ var init_src = __esm({
|
|
|
3479
3514
|
init_observability();
|
|
3480
3515
|
init_staticStateExtractor();
|
|
3481
3516
|
init_logger();
|
|
3482
|
-
import_meta5 = {};
|
|
3483
3517
|
TwError = class _TwError extends Error {
|
|
3484
3518
|
/** @deprecated Gunakan source */
|
|
3485
3519
|
domain;
|
|
@@ -3532,7 +3566,9 @@ var init_src = __esm({
|
|
|
3532
3566
|
return `[${this.source.toUpperCase()}:${this.code}] ${this.message}`;
|
|
3533
3567
|
}
|
|
3534
3568
|
};
|
|
3535
|
-
_require2 = (0, import_node_module4.createRequire)(
|
|
3569
|
+
_require2 = (0, import_node_module4.createRequire)(
|
|
3570
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
|
|
3571
|
+
);
|
|
3536
3572
|
LRUCache = class {
|
|
3537
3573
|
capacity;
|
|
3538
3574
|
cache;
|
|
@@ -3578,12 +3614,11 @@ var init_src = __esm({
|
|
|
3578
3614
|
});
|
|
3579
3615
|
|
|
3580
3616
|
// packages/domain/compiler/src/nativeBridge.ts
|
|
3581
|
-
var
|
|
3617
|
+
var _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge, adaptNativeResult;
|
|
3582
3618
|
var init_nativeBridge = __esm({
|
|
3583
3619
|
"packages/domain/compiler/src/nativeBridge.ts"() {
|
|
3584
3620
|
"use strict";
|
|
3585
3621
|
init_src();
|
|
3586
|
-
import_meta6 = {};
|
|
3587
3622
|
_loadNative = (path16) => require(path16);
|
|
3588
3623
|
log = (...args) => {
|
|
3589
3624
|
if (process.env.DEBUG?.includes("compiler:native")) {
|
|
@@ -3610,7 +3645,7 @@ var init_nativeBridge = __esm({
|
|
|
3610
3645
|
}
|
|
3611
3646
|
bridgeLoadAttempted = true;
|
|
3612
3647
|
try {
|
|
3613
|
-
const runtimeDir = resolveRuntimeDir(void 0,
|
|
3648
|
+
const runtimeDir = resolveRuntimeDir(void 0, __importMetaUrl);
|
|
3614
3649
|
const result = resolveNativeBinary(runtimeDir);
|
|
3615
3650
|
if (result.path && result.path.endsWith(".node")) {
|
|
3616
3651
|
try {
|
|
@@ -3722,7 +3757,7 @@ function extractContainerCssFromSource(source) {
|
|
|
3722
3757
|
}
|
|
3723
3758
|
return rules.join("\n");
|
|
3724
3759
|
}
|
|
3725
|
-
var import_node_fs4, import_node_path4, import_node_module5,
|
|
3760
|
+
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
3761
|
var init_src2 = __esm({
|
|
3727
3762
|
"packages/domain/compiler/src/index.ts"() {
|
|
3728
3763
|
"use strict";
|
|
@@ -3736,8 +3771,9 @@ var init_src2 = __esm({
|
|
|
3736
3771
|
init_cache();
|
|
3737
3772
|
init_redis();
|
|
3738
3773
|
init_watch();
|
|
3739
|
-
|
|
3740
|
-
|
|
3774
|
+
_require3 = (0, import_node_module5.createRequire)(
|
|
3775
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
3776
|
+
);
|
|
3741
3777
|
transformSource = (source, opts) => {
|
|
3742
3778
|
const native = getNativeBridge();
|
|
3743
3779
|
if (!native?.transformSource) {
|
|
@@ -4102,8 +4138,8 @@ function getDirname2() {
|
|
|
4102
4138
|
if (typeof __dirname !== "undefined") {
|
|
4103
4139
|
return __dirname;
|
|
4104
4140
|
}
|
|
4105
|
-
if (typeof
|
|
4106
|
-
return import_node_path5.default.dirname((0, import_node_url2.fileURLToPath)(
|
|
4141
|
+
if (typeof import_meta3 !== "undefined" && __importMetaUrl) {
|
|
4142
|
+
return import_node_path5.default.dirname((0, import_node_url2.fileURLToPath)(__importMetaUrl));
|
|
4107
4143
|
}
|
|
4108
4144
|
return process.cwd();
|
|
4109
4145
|
}
|
|
@@ -4308,14 +4344,14 @@ function hasNativeWatchBinding() {
|
|
|
4308
4344
|
return false;
|
|
4309
4345
|
}
|
|
4310
4346
|
}
|
|
4311
|
-
var import_node_path5, import_node_url2,
|
|
4347
|
+
var import_node_path5, import_node_url2, import_meta3, log2, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
4312
4348
|
var init_native_bridge = __esm({
|
|
4313
4349
|
"packages/domain/scanner/src/native-bridge.ts"() {
|
|
4314
4350
|
"use strict";
|
|
4315
4351
|
import_node_path5 = __toESM(require("path"), 1);
|
|
4316
4352
|
import_node_url2 = require("url");
|
|
4317
4353
|
init_src();
|
|
4318
|
-
|
|
4354
|
+
import_meta3 = {};
|
|
4319
4355
|
log2 = createDebugLogger("scanner:native");
|
|
4320
4356
|
isValidScannerBinding = (module2) => {
|
|
4321
4357
|
const candidate = module2;
|
|
@@ -4505,7 +4541,7 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
|
|
|
4505
4541
|
}
|
|
4506
4542
|
return mergeResults(allResults);
|
|
4507
4543
|
}
|
|
4508
|
-
var import_node_worker_threads, import_node_path7, import_node_os, import_node_url3,
|
|
4544
|
+
var import_node_worker_threads, import_node_path7, import_node_os, import_node_url3, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
|
|
4509
4545
|
var init_parallel_scanner = __esm({
|
|
4510
4546
|
"packages/domain/scanner/src/parallel-scanner.ts"() {
|
|
4511
4547
|
"use strict";
|
|
@@ -4515,7 +4551,6 @@ var init_parallel_scanner = __esm({
|
|
|
4515
4551
|
import_node_url3 = require("url");
|
|
4516
4552
|
init_src3();
|
|
4517
4553
|
init_native_bridge();
|
|
4518
|
-
import_meta9 = {};
|
|
4519
4554
|
PARALLEL_THRESHOLD = 50;
|
|
4520
4555
|
DEFAULT_CHUNK_SIZE = 150;
|
|
4521
4556
|
if (!import_node_worker_threads.isMainThread && import_node_worker_threads.parentPort) {
|
|
@@ -4532,7 +4567,7 @@ var init_parallel_scanner = __esm({
|
|
|
4532
4567
|
import_node_worker_threads.parentPort.postMessage(msg);
|
|
4533
4568
|
}
|
|
4534
4569
|
}
|
|
4535
|
-
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(
|
|
4570
|
+
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(__importMetaUrl);
|
|
4536
4571
|
}
|
|
4537
4572
|
});
|
|
4538
4573
|
|
|
@@ -4624,8 +4659,8 @@ function getRuntimeDir() {
|
|
|
4624
4659
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
4625
4660
|
return __dirname;
|
|
4626
4661
|
}
|
|
4627
|
-
if (typeof
|
|
4628
|
-
return import_node_path8.default.dirname((0, import_node_url4.fileURLToPath)(
|
|
4662
|
+
if (typeof import_meta4 !== "undefined" && __importMetaUrl) {
|
|
4663
|
+
return import_node_path8.default.dirname((0, import_node_url4.fileURLToPath)(__importMetaUrl));
|
|
4629
4664
|
}
|
|
4630
4665
|
return process.cwd();
|
|
4631
4666
|
}
|
|
@@ -4634,8 +4669,8 @@ function resolveScannerWorkerModulePath() {
|
|
|
4634
4669
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
4635
4670
|
return __dirname;
|
|
4636
4671
|
}
|
|
4637
|
-
if (typeof
|
|
4638
|
-
return import_node_path8.default.dirname((0, import_node_url4.fileURLToPath)(
|
|
4672
|
+
if (typeof import_meta4 !== "undefined" && __importMetaUrl) {
|
|
4673
|
+
return import_node_path8.default.dirname((0, import_node_url4.fileURLToPath)(__importMetaUrl));
|
|
4639
4674
|
}
|
|
4640
4675
|
return process.cwd();
|
|
4641
4676
|
})();
|
|
@@ -4908,7 +4943,7 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
|
|
|
4908
4943
|
return scanWorkspace2(rootDir, normalizedOptions);
|
|
4909
4944
|
}
|
|
4910
4945
|
}
|
|
4911
|
-
var import_node_fs6, import_node_module6, import_node_path8, import_node_url4, import_node_worker_threads2,
|
|
4946
|
+
var import_node_fs6, import_node_module6, import_node_path8, import_node_url4, import_node_worker_threads2, import_meta4, log3, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
|
|
4912
4947
|
var init_src3 = __esm({
|
|
4913
4948
|
"packages/domain/scanner/src/index.ts"() {
|
|
4914
4949
|
"use strict";
|
|
@@ -4924,7 +4959,7 @@ var init_src3 = __esm({
|
|
|
4924
4959
|
init_schemas();
|
|
4925
4960
|
init_schemas();
|
|
4926
4961
|
init_native_bridge();
|
|
4927
|
-
|
|
4962
|
+
import_meta4 = {};
|
|
4928
4963
|
log3 = createLogger2("scanner");
|
|
4929
4964
|
SCAN_WORKER_TIMEOUT_MS = 12e4;
|
|
4930
4965
|
createNativeParserLoader = () => {
|
|
@@ -5014,20 +5049,20 @@ var init_src3 = __esm({
|
|
|
5014
5049
|
// packages/domain/engine/src/native-bridge.ts
|
|
5015
5050
|
function getDirname3() {
|
|
5016
5051
|
if (typeof __dirname !== "undefined") return __dirname;
|
|
5017
|
-
if (typeof
|
|
5018
|
-
return getDirname(
|
|
5052
|
+
if (typeof import_meta5 !== "undefined" && __importMetaUrl) {
|
|
5053
|
+
return getDirname(__importMetaUrl);
|
|
5019
5054
|
}
|
|
5020
5055
|
return process.cwd();
|
|
5021
5056
|
}
|
|
5022
5057
|
function getNativeEngineBinding() {
|
|
5023
5058
|
return engineBindingLoader.get();
|
|
5024
5059
|
}
|
|
5025
|
-
var
|
|
5060
|
+
var import_meta5, log4, isValidEngineBinding, createEngineBindingLoader, engineBindingLoader;
|
|
5026
5061
|
var init_native_bridge2 = __esm({
|
|
5027
5062
|
"packages/domain/engine/src/native-bridge.ts"() {
|
|
5028
5063
|
"use strict";
|
|
5029
5064
|
init_src();
|
|
5030
|
-
|
|
5065
|
+
import_meta5 = {};
|
|
5031
5066
|
log4 = createDebugLogger("engine:native");
|
|
5032
5067
|
isValidEngineBinding = (module2) => {
|
|
5033
5068
|
const candidate = module2;
|
|
@@ -5162,7 +5197,6 @@ function sanitizeFrequentThreshold(value) {
|
|
|
5162
5197
|
}
|
|
5163
5198
|
|
|
5164
5199
|
// packages/domain/analyzer/src/binding.ts
|
|
5165
|
-
var import_meta11 = {};
|
|
5166
5200
|
var isAnalyzerModule = (module2) => {
|
|
5167
5201
|
const candidate = module2;
|
|
5168
5202
|
return typeof candidate?.analyzeClasses === "function" || typeof candidate?.analyzeClassesWorkspace === "function";
|
|
@@ -5174,7 +5208,7 @@ var createAnalyzerBindingLoader = () => {
|
|
|
5174
5208
|
_state.bindingPromise = (async () => {
|
|
5175
5209
|
const runtimeDir = resolveRuntimeDir(
|
|
5176
5210
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
5177
|
-
|
|
5211
|
+
__importMetaUrl
|
|
5178
5212
|
);
|
|
5179
5213
|
const candidates = resolveNativeBindingCandidates({
|
|
5180
5214
|
runtimeDir,
|
|
@@ -5217,7 +5251,7 @@ async function requireNativeBinding() {
|
|
|
5217
5251
|
if (binding?.analyzeClasses) return binding;
|
|
5218
5252
|
const runtimeDir = resolveRuntimeDir(
|
|
5219
5253
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
5220
|
-
|
|
5254
|
+
__importMetaUrl
|
|
5221
5255
|
);
|
|
5222
5256
|
const candidates = resolveNativeBindingCandidates({
|
|
5223
5257
|
runtimeDir,
|