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/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,15 @@ 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, import_meta, 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
|
-
require2 = (0, import_node_module2.createRequire)(
|
|
1694
|
+
import_meta = {};
|
|
1695
|
+
require2 = (0, import_node_module2.createRequire)(
|
|
1696
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta !== "undefined" && __importMetaUrl ? __importMetaUrl : "file://unknown"
|
|
1697
|
+
);
|
|
1666
1698
|
MAX_CACHE_MEMORY = 256 * 1024;
|
|
1667
1699
|
_twEngine = null;
|
|
1668
1700
|
_twEngineError = null;
|
|
@@ -1844,7 +1876,7 @@ function processTailwindCssWithTargets(css, targets) {
|
|
|
1844
1876
|
}
|
|
1845
1877
|
return result.css;
|
|
1846
1878
|
}
|
|
1847
|
-
var import_node_module3,
|
|
1879
|
+
var import_node_module3, import_meta2, require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
|
|
1848
1880
|
var init_tailwindEngine2 = __esm({
|
|
1849
1881
|
"packages/domain/compiler/src/compiler/tailwindEngine.ts"() {
|
|
1850
1882
|
"use strict";
|
|
@@ -1853,8 +1885,10 @@ var init_tailwindEngine2 = __esm({
|
|
|
1853
1885
|
init_cssGeneratorNative();
|
|
1854
1886
|
init_cssCompilationNative();
|
|
1855
1887
|
init_tailwindEngine();
|
|
1856
|
-
|
|
1857
|
-
require3 = (0, import_node_module3.createRequire)(
|
|
1888
|
+
import_meta2 = {};
|
|
1889
|
+
require3 = (0, import_node_module3.createRequire)(
|
|
1890
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta2 !== "undefined" && __importMetaUrl ? __importMetaUrl : "file://unknown"
|
|
1891
|
+
);
|
|
1858
1892
|
_cssCache = /* @__PURE__ */ new Map();
|
|
1859
1893
|
_cacheHits = 0;
|
|
1860
1894
|
_cacheMisses = 0;
|
|
@@ -2849,7 +2883,7 @@ function extractContainerCssFromSource(source) {
|
|
|
2849
2883
|
}
|
|
2850
2884
|
return rules.join("\n");
|
|
2851
2885
|
}
|
|
2852
|
-
var import_node_fs, import_node_path, import_node_module4,
|
|
2886
|
+
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
2887
|
var init_src = __esm({
|
|
2854
2888
|
"packages/domain/compiler/src/index.ts"() {
|
|
2855
2889
|
"use strict";
|
|
@@ -2863,8 +2897,9 @@ var init_src = __esm({
|
|
|
2863
2897
|
init_cache();
|
|
2864
2898
|
init_redis();
|
|
2865
2899
|
init_watch();
|
|
2866
|
-
|
|
2867
|
-
|
|
2900
|
+
_require2 = (0, import_node_module4.createRequire)(
|
|
2901
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
2902
|
+
);
|
|
2868
2903
|
transformSource = (source, opts) => {
|
|
2869
2904
|
const native = getNativeBridge();
|
|
2870
2905
|
if (!native?.transformSource) {
|
|
@@ -3949,7 +3984,7 @@ function formatErrorMessage(error) {
|
|
|
3949
3984
|
if (error instanceof Error) return error.message;
|
|
3950
3985
|
return String(error);
|
|
3951
3986
|
}
|
|
3952
|
-
var import_node_crypto, import_node_fs4, import_node_path4, import_node_url, import_node_module5,
|
|
3987
|
+
var import_node_crypto, import_node_fs4, import_node_path4, import_node_url, import_node_module5, TwError, _require3, LRUCache;
|
|
3953
3988
|
var init_src2 = __esm({
|
|
3954
3989
|
"packages/domain/shared/src/index.ts"() {
|
|
3955
3990
|
"use strict";
|
|
@@ -3971,7 +4006,6 @@ var init_src2 = __esm({
|
|
|
3971
4006
|
init_observability();
|
|
3972
4007
|
init_staticStateExtractor();
|
|
3973
4008
|
init_logger();
|
|
3974
|
-
import_meta7 = {};
|
|
3975
4009
|
TwError = class _TwError extends Error {
|
|
3976
4010
|
/** @deprecated Gunakan source */
|
|
3977
4011
|
domain;
|
|
@@ -4024,7 +4058,9 @@ var init_src2 = __esm({
|
|
|
4024
4058
|
return `[${this.source.toUpperCase()}:${this.code}] ${this.message}`;
|
|
4025
4059
|
}
|
|
4026
4060
|
};
|
|
4027
|
-
_require3 = (0, import_node_module5.createRequire)(
|
|
4061
|
+
_require3 = (0, import_node_module5.createRequire)(
|
|
4062
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
|
|
4063
|
+
);
|
|
4028
4064
|
LRUCache = class {
|
|
4029
4065
|
capacity;
|
|
4030
4066
|
cache;
|
|
@@ -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_src2();
|
|
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_src2();
|
|
5030
|
-
|
|
5065
|
+
import_meta5 = {};
|
|
5031
5066
|
log4 = createDebugLogger("engine:native");
|
|
5032
5067
|
isValidEngineBinding = (module2) => {
|
|
5033
5068
|
const candidate = module2;
|
|
@@ -5791,7 +5826,6 @@ function sanitizeFrequentThreshold(value) {
|
|
|
5791
5826
|
}
|
|
5792
5827
|
|
|
5793
5828
|
// packages/domain/analyzer/src/binding.ts
|
|
5794
|
-
var import_meta11 = {};
|
|
5795
5829
|
var isAnalyzerModule = (module2) => {
|
|
5796
5830
|
const candidate = module2;
|
|
5797
5831
|
return typeof candidate?.analyzeClasses === "function" || typeof candidate?.analyzeClassesWorkspace === "function";
|
|
@@ -5803,7 +5837,7 @@ var createAnalyzerBindingLoader = () => {
|
|
|
5803
5837
|
_state.bindingPromise = (async () => {
|
|
5804
5838
|
const runtimeDir = resolveRuntimeDir(
|
|
5805
5839
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
5806
|
-
|
|
5840
|
+
__importMetaUrl
|
|
5807
5841
|
);
|
|
5808
5842
|
const candidates = resolveNativeBindingCandidates({
|
|
5809
5843
|
runtimeDir,
|
|
@@ -5846,7 +5880,7 @@ async function requireNativeBinding() {
|
|
|
5846
5880
|
if (binding?.analyzeClasses) return binding;
|
|
5847
5881
|
const runtimeDir = resolveRuntimeDir(
|
|
5848
5882
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
5849
|
-
|
|
5883
|
+
__importMetaUrl
|
|
5850
5884
|
);
|
|
5851
5885
|
const candidates = resolveNativeBindingCandidates({
|
|
5852
5886
|
runtimeDir,
|
|
@@ -7048,7 +7082,7 @@ init_cssToIr();
|
|
|
7048
7082
|
var import_node_module7 = require("module");
|
|
7049
7083
|
var import_node_path13 = __toESM(require("path"), 1);
|
|
7050
7084
|
init_src2();
|
|
7051
|
-
var
|
|
7085
|
+
var import_meta6 = {};
|
|
7052
7086
|
var watchBindingState = {
|
|
7053
7087
|
binding: void 0
|
|
7054
7088
|
};
|
|
@@ -7062,7 +7096,9 @@ var getBinding = () => {
|
|
|
7062
7096
|
return watchBindingState.binding;
|
|
7063
7097
|
}
|
|
7064
7098
|
const runtimeDir = typeof __dirname === "string" ? __dirname : process.cwd();
|
|
7065
|
-
const req = (0, import_node_module7.createRequire)(
|
|
7099
|
+
const req = (0, import_node_module7.createRequire)(
|
|
7100
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta6 !== "undefined" && __importMetaUrl ? __importMetaUrl : "file://unknown"
|
|
7101
|
+
);
|
|
7066
7102
|
const _pa = `${process.platform}-${process.arch}`;
|
|
7067
7103
|
const _paGnu = _pa === "linux-x64" ? "linux-x64-gnu" : _pa === "linux-arm64" ? "linux-arm64-gnu" : _pa;
|
|
7068
7104
|
const candidates = [
|