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/engine.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"],
|
|
@@ -1005,12 +1036,11 @@ var init_observability = __esm({
|
|
|
1005
1036
|
});
|
|
1006
1037
|
|
|
1007
1038
|
// packages/domain/compiler/src/nativeBridge.ts
|
|
1008
|
-
var
|
|
1039
|
+
var _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge, adaptNativeResult;
|
|
1009
1040
|
var init_nativeBridge = __esm({
|
|
1010
1041
|
"packages/domain/compiler/src/nativeBridge.ts"() {
|
|
1011
1042
|
"use strict";
|
|
1012
1043
|
init_src2();
|
|
1013
|
-
import_meta3 = {};
|
|
1014
1044
|
_loadNative = (path16) => require(path16);
|
|
1015
1045
|
log = (...args) => {
|
|
1016
1046
|
if (process.env.DEBUG?.includes("compiler:native")) {
|
|
@@ -1037,7 +1067,7 @@ var init_nativeBridge = __esm({
|
|
|
1037
1067
|
}
|
|
1038
1068
|
bridgeLoadAttempted = true;
|
|
1039
1069
|
try {
|
|
1040
|
-
const runtimeDir = resolveRuntimeDir(void 0,
|
|
1070
|
+
const runtimeDir = resolveRuntimeDir(void 0, __importMetaUrl);
|
|
1041
1071
|
const result = resolveNativeBinary(runtimeDir);
|
|
1042
1072
|
if (result.path && result.path.endsWith(".node")) {
|
|
1043
1073
|
try {
|
|
@@ -1656,13 +1686,14 @@ async function generateRawCss(classes, cssEntryContent, root) {
|
|
|
1656
1686
|
const compiler = await Promise.resolve(tw.compile(input, { loadStylesheet }));
|
|
1657
1687
|
return compiler.build(classes);
|
|
1658
1688
|
}
|
|
1659
|
-
var import_node_module2,
|
|
1689
|
+
var import_node_module2, require2, MAX_CACHE_MEMORY, _twEngine, _twEngineError;
|
|
1660
1690
|
var init_tailwindEngine = __esm({
|
|
1661
1691
|
"packages/domain/compiler/src/tailwindEngine.ts"() {
|
|
1662
1692
|
"use strict";
|
|
1663
1693
|
import_node_module2 = require("module");
|
|
1664
|
-
|
|
1665
|
-
|
|
1694
|
+
require2 = (0, import_node_module2.createRequire)(
|
|
1695
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : false ? __importMetaUrl : "file://unknown"
|
|
1696
|
+
);
|
|
1666
1697
|
MAX_CACHE_MEMORY = 256 * 1024;
|
|
1667
1698
|
_twEngine = null;
|
|
1668
1699
|
_twEngineError = null;
|
|
@@ -1844,7 +1875,7 @@ function processTailwindCssWithTargets(css, targets) {
|
|
|
1844
1875
|
}
|
|
1845
1876
|
return result.css;
|
|
1846
1877
|
}
|
|
1847
|
-
var import_node_module3,
|
|
1878
|
+
var import_node_module3, require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
|
|
1848
1879
|
var init_tailwindEngine2 = __esm({
|
|
1849
1880
|
"packages/domain/compiler/src/compiler/tailwindEngine.ts"() {
|
|
1850
1881
|
"use strict";
|
|
@@ -1853,8 +1884,9 @@ var init_tailwindEngine2 = __esm({
|
|
|
1853
1884
|
init_cssGeneratorNative();
|
|
1854
1885
|
init_cssCompilationNative();
|
|
1855
1886
|
init_tailwindEngine();
|
|
1856
|
-
|
|
1857
|
-
|
|
1887
|
+
require3 = (0, import_node_module3.createRequire)(
|
|
1888
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : false ? __importMetaUrl : "file://unknown"
|
|
1889
|
+
);
|
|
1858
1890
|
_cssCache = /* @__PURE__ */ new Map();
|
|
1859
1891
|
_cacheHits = 0;
|
|
1860
1892
|
_cacheMisses = 0;
|
|
@@ -2849,7 +2881,7 @@ function extractContainerCssFromSource(source) {
|
|
|
2849
2881
|
}
|
|
2850
2882
|
return rules.join("\n");
|
|
2851
2883
|
}
|
|
2852
|
-
var import_node_fs, import_node_path, import_node_module4,
|
|
2884
|
+
var import_node_fs, import_node_path, import_node_module4, _require2, 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;
|
|
2853
2885
|
var init_src = __esm({
|
|
2854
2886
|
"packages/domain/compiler/src/index.ts"() {
|
|
2855
2887
|
"use strict";
|
|
@@ -2863,8 +2895,9 @@ var init_src = __esm({
|
|
|
2863
2895
|
init_cache();
|
|
2864
2896
|
init_redis();
|
|
2865
2897
|
init_watch();
|
|
2866
|
-
|
|
2867
|
-
|
|
2898
|
+
_require2 = (0, import_node_module4.createRequire)(
|
|
2899
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
2900
|
+
);
|
|
2868
2901
|
transformSource = (source, opts) => {
|
|
2869
2902
|
const native = getNativeBridge();
|
|
2870
2903
|
if (!native?.transformSource) {
|
|
@@ -3949,7 +3982,7 @@ function formatErrorMessage(error) {
|
|
|
3949
3982
|
if (error instanceof Error) return error.message;
|
|
3950
3983
|
return String(error);
|
|
3951
3984
|
}
|
|
3952
|
-
var import_node_crypto, import_node_fs4, import_node_path4, import_node_url, import_node_module5,
|
|
3985
|
+
var import_node_crypto, import_node_fs4, import_node_path4, import_node_url, import_node_module5, TwError, _require3, LRUCache;
|
|
3953
3986
|
var init_src2 = __esm({
|
|
3954
3987
|
"packages/domain/shared/src/index.ts"() {
|
|
3955
3988
|
"use strict";
|
|
@@ -3971,7 +4004,6 @@ var init_src2 = __esm({
|
|
|
3971
4004
|
init_observability();
|
|
3972
4005
|
init_staticStateExtractor();
|
|
3973
4006
|
init_logger();
|
|
3974
|
-
import_meta7 = {};
|
|
3975
4007
|
TwError = class _TwError extends Error {
|
|
3976
4008
|
/** @deprecated Gunakan source */
|
|
3977
4009
|
domain;
|
|
@@ -4024,7 +4056,9 @@ var init_src2 = __esm({
|
|
|
4024
4056
|
return `[${this.source.toUpperCase()}:${this.code}] ${this.message}`;
|
|
4025
4057
|
}
|
|
4026
4058
|
};
|
|
4027
|
-
_require3 = (0, import_node_module5.createRequire)(
|
|
4059
|
+
_require3 = (0, import_node_module5.createRequire)(
|
|
4060
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
|
|
4061
|
+
);
|
|
4028
4062
|
LRUCache = class {
|
|
4029
4063
|
capacity;
|
|
4030
4064
|
cache;
|
|
@@ -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_src2();
|
|
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_src2();
|
|
5030
|
-
import_meta12 = {};
|
|
5031
5061
|
log4 = createDebugLogger("engine:native");
|
|
5032
5062
|
isValidEngineBinding = (module2) => {
|
|
5033
5063
|
const candidate = module2;
|
|
@@ -5791,7 +5821,6 @@ function sanitizeFrequentThreshold(value) {
|
|
|
5791
5821
|
}
|
|
5792
5822
|
|
|
5793
5823
|
// packages/domain/analyzer/src/binding.ts
|
|
5794
|
-
var import_meta11 = {};
|
|
5795
5824
|
var isAnalyzerModule = (module2) => {
|
|
5796
5825
|
const candidate = module2;
|
|
5797
5826
|
return typeof candidate?.analyzeClasses === "function" || typeof candidate?.analyzeClassesWorkspace === "function";
|
|
@@ -5803,7 +5832,7 @@ var createAnalyzerBindingLoader = () => {
|
|
|
5803
5832
|
_state.bindingPromise = (async () => {
|
|
5804
5833
|
const runtimeDir = resolveRuntimeDir(
|
|
5805
5834
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
5806
|
-
|
|
5835
|
+
__importMetaUrl
|
|
5807
5836
|
);
|
|
5808
5837
|
const candidates = resolveNativeBindingCandidates({
|
|
5809
5838
|
runtimeDir,
|
|
@@ -5846,7 +5875,7 @@ async function requireNativeBinding() {
|
|
|
5846
5875
|
if (binding?.analyzeClasses) return binding;
|
|
5847
5876
|
const runtimeDir = resolveRuntimeDir(
|
|
5848
5877
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
5849
|
-
|
|
5878
|
+
__importMetaUrl
|
|
5850
5879
|
);
|
|
5851
5880
|
const candidates = resolveNativeBindingCandidates({
|
|
5852
5881
|
runtimeDir,
|
|
@@ -7048,7 +7077,6 @@ init_cssToIr();
|
|
|
7048
7077
|
var import_node_module7 = require("module");
|
|
7049
7078
|
var import_node_path13 = __toESM(require("path"), 1);
|
|
7050
7079
|
init_src2();
|
|
7051
|
-
var import_meta13 = {};
|
|
7052
7080
|
var watchBindingState = {
|
|
7053
7081
|
binding: void 0
|
|
7054
7082
|
};
|
|
@@ -7062,7 +7090,9 @@ var getBinding = () => {
|
|
|
7062
7090
|
return watchBindingState.binding;
|
|
7063
7091
|
}
|
|
7064
7092
|
const runtimeDir = typeof __dirname === "string" ? __dirname : process.cwd();
|
|
7065
|
-
const req = (0, import_node_module7.createRequire)(
|
|
7093
|
+
const req = (0, import_node_module7.createRequire)(
|
|
7094
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : false ? __importMetaUrl : "file://unknown"
|
|
7095
|
+
);
|
|
7066
7096
|
const _pa = `${process.platform}-${process.arch}`;
|
|
7067
7097
|
const _paGnu = _pa === "linux-x64" ? "linux-x64-gnu" : _pa === "linux-arm64" ? "linux-arm64-gnu" : _pa;
|
|
7068
7098
|
const candidates = [
|