tailwind-styled-v4 5.0.40 → 5.1.1
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 +43 -16
- package/dist/analyzer.js.map +1 -1
- package/dist/analyzer.mjs +104 -72
- package/dist/analyzer.mjs.map +1 -1
- package/dist/animate.js +33 -7
- package/dist/animate.js.map +1 -1
- package/dist/animate.mjs +55 -22
- package/dist/animate.mjs.map +1 -1
- package/dist/atomic.js +39 -10
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +56 -23
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +222 -38
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +321 -203
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +57 -14
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +71 -28
- package/dist/compiler.mjs.map +1 -1
- package/dist/dashboard.js +0 -1
- package/dist/dashboard.js.map +1 -1
- package/dist/devtools.js +16 -2
- package/dist/devtools.js.map +1 -1
- package/dist/devtools.mjs +21 -2
- package/dist/devtools.mjs.map +1 -1
- package/dist/engine.js +141 -51
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +238 -148
- package/dist/engine.mjs.map +1 -1
- package/dist/index.js +50 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -29
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +98 -37
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +177 -115
- package/dist/next.mjs.map +1 -1
- package/dist/plugin-api.js +0 -1
- package/dist/plugin-api.js.map +1 -1
- package/dist/plugin-registry.js +6 -2
- package/dist/plugin-registry.js.map +1 -1
- package/dist/plugin-registry.mjs +9 -2
- package/dist/plugin-registry.mjs.map +1 -1
- package/dist/plugin.js +0 -1
- package/dist/plugin.js.map +1 -1
- package/dist/preset.js +0 -1
- package/dist/preset.js.map +1 -1
- package/dist/rspack.js +89 -6
- package/dist/rspack.js.map +1 -1
- package/dist/rspack.mjs +39 -18
- package/dist/rspack.mjs.map +1 -1
- package/dist/runtime-css.js +0 -1
- package/dist/runtime-css.js.map +1 -1
- package/dist/runtime.js +0 -1
- package/dist/runtime.js.map +1 -1
- package/dist/scanner.js +29 -11
- package/dist/scanner.js.map +1 -1
- package/dist/scanner.mjs +84 -61
- package/dist/scanner.mjs.map +1 -1
- package/dist/shared.js +91 -35
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +122 -64
- package/dist/shared.mjs.map +1 -1
- package/dist/storybook-addon.js +0 -1
- package/dist/storybook-addon.js.map +1 -1
- package/dist/svelte.js +40 -8
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +57 -28
- package/dist/svelte.mjs.map +1 -1
- package/dist/syntax.js +7 -3
- package/dist/syntax.js.map +1 -1
- package/dist/syntax.mjs +30 -23
- package/dist/syntax.mjs.map +1 -1
- package/dist/testing.js +0 -1
- package/dist/testing.js.map +1 -1
- package/dist/theme.js +23 -5
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +41 -17
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +58 -14
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +89 -45
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +224 -38
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +321 -203
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +132 -50
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +226 -143
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +40 -8
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +57 -28
- package/dist/vue.mjs.map +1 -1
- package/dist/webpackLoader.js +40 -10
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +59 -27
- 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,4 +1,3 @@
|
|
|
1
|
-
const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
|
|
2
1
|
/* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
|
|
3
2
|
"use strict";
|
|
4
3
|
var __create = Object.create;
|
|
@@ -32,6 +31,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
31
|
));
|
|
33
32
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
34
33
|
|
|
34
|
+
// node_modules/tsup/assets/cjs_shims.js
|
|
35
|
+
var getImportMetaUrl, importMetaUrl;
|
|
36
|
+
var init_cjs_shims = __esm({
|
|
37
|
+
"node_modules/tsup/assets/cjs_shims.js"() {
|
|
38
|
+
"use strict";
|
|
39
|
+
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
|
|
40
|
+
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
35
44
|
// packages/domain/shared/src/trace.ts
|
|
36
45
|
function getHealthColor(status) {
|
|
37
46
|
switch (status) {
|
|
@@ -125,6 +134,7 @@ function getPipelinePercentages(metrics) {
|
|
|
125
134
|
var init_trace = __esm({
|
|
126
135
|
"packages/domain/shared/src/trace.ts"() {
|
|
127
136
|
"use strict";
|
|
137
|
+
init_cjs_shims();
|
|
128
138
|
}
|
|
129
139
|
});
|
|
130
140
|
|
|
@@ -140,6 +150,7 @@ var ERROR_CODES, ERROR_SUGGESTIONS;
|
|
|
140
150
|
var init_error_codes = __esm({
|
|
141
151
|
"packages/domain/shared/src/error-codes.ts"() {
|
|
142
152
|
"use strict";
|
|
153
|
+
init_cjs_shims();
|
|
143
154
|
ERROR_CODES = {
|
|
144
155
|
// E0xx — Native binding
|
|
145
156
|
NATIVE_NOT_FOUND: "E001",
|
|
@@ -207,6 +218,7 @@ function isTailwindV4() {
|
|
|
207
218
|
var init_compatibility = __esm({
|
|
208
219
|
"packages/domain/shared/src/compatibility.ts"() {
|
|
209
220
|
"use strict";
|
|
221
|
+
init_cjs_shims();
|
|
210
222
|
}
|
|
211
223
|
});
|
|
212
224
|
|
|
@@ -230,6 +242,7 @@ var import_zod, NativeScanFileSchema, NativeScanResultSchema, NativeClassUsageSc
|
|
|
230
242
|
var init_native_schemas = __esm({
|
|
231
243
|
"packages/domain/shared/src/native-schemas.ts"() {
|
|
232
244
|
"use strict";
|
|
245
|
+
init_cjs_shims();
|
|
233
246
|
import_zod = require("zod");
|
|
234
247
|
NativeScanFileSchema = import_zod.z.object({
|
|
235
248
|
file: import_zod.z.string().min(1, "file path cannot be empty"),
|
|
@@ -307,8 +320,8 @@ function getNodeModuleRef() {
|
|
|
307
320
|
}
|
|
308
321
|
}
|
|
309
322
|
function getCurrentFileUrl() {
|
|
310
|
-
if (
|
|
311
|
-
return
|
|
323
|
+
if (importMetaUrl) {
|
|
324
|
+
return importMetaUrl;
|
|
312
325
|
}
|
|
313
326
|
if (typeof __filename !== "undefined") {
|
|
314
327
|
return `file://${__filename.replace(/\\/g, "/")}`;
|
|
@@ -354,24 +367,24 @@ function getNodeFs() {
|
|
|
354
367
|
}
|
|
355
368
|
return _nodeFs;
|
|
356
369
|
}
|
|
357
|
-
function createEsmRequire(
|
|
370
|
+
function createEsmRequire(importMetaUrl2) {
|
|
358
371
|
if (isBrowser) throw new Error("require not available in browser");
|
|
359
372
|
if (typeof require === "function") return require;
|
|
360
373
|
const nodeRequire = getNodeModuleRef();
|
|
361
374
|
if (!nodeRequire) throw new Error("require not available");
|
|
362
|
-
return nodeRequire.createRequire(
|
|
375
|
+
return nodeRequire.createRequire(importMetaUrl2);
|
|
363
376
|
}
|
|
364
|
-
function getDirname(
|
|
377
|
+
function getDirname(importMetaUrl2) {
|
|
365
378
|
if (isBrowser) return "";
|
|
366
379
|
if (typeof __dirname !== "undefined") return __dirname;
|
|
367
380
|
const nodePath = getNodePath();
|
|
368
381
|
const nodeUrl = getNodeUrl();
|
|
369
|
-
return nodePath.dirname(nodeUrl.fileURLToPath(
|
|
382
|
+
return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl2));
|
|
370
383
|
}
|
|
371
|
-
function getFilename(
|
|
384
|
+
function getFilename(importMetaUrl2) {
|
|
372
385
|
if (isBrowser) return "";
|
|
373
386
|
if (typeof __filename !== "undefined") return __filename;
|
|
374
|
-
return getNodeUrl().fileURLToPath(
|
|
387
|
+
return getNodeUrl().fileURLToPath(importMetaUrl2);
|
|
375
388
|
}
|
|
376
389
|
function resolveFromRoot(...segments) {
|
|
377
390
|
if (isBrowser) return segments.join("/");
|
|
@@ -391,22 +404,23 @@ function resolveFromRoot(...segments) {
|
|
|
391
404
|
}
|
|
392
405
|
return nodePath.resolve(process.cwd(), ...segments);
|
|
393
406
|
}
|
|
394
|
-
function tryRequire(moduleName,
|
|
407
|
+
function tryRequire(moduleName, importMetaUrl2) {
|
|
395
408
|
if (isBrowser) return null;
|
|
396
409
|
try {
|
|
397
|
-
return createEsmRequire(
|
|
410
|
+
return createEsmRequire(importMetaUrl2)(moduleName);
|
|
398
411
|
} catch {
|
|
399
412
|
}
|
|
400
413
|
return null;
|
|
401
414
|
}
|
|
402
|
-
function resolveNativeNodePath(
|
|
415
|
+
function resolveNativeNodePath(importMetaUrl2, ...relativeSegments) {
|
|
403
416
|
if (isBrowser) return relativeSegments.join("/");
|
|
404
|
-
return getNodePath().resolve(getDirname(
|
|
417
|
+
return getNodePath().resolve(getDirname(importMetaUrl2), ...relativeSegments);
|
|
405
418
|
}
|
|
406
419
|
var isBrowser, nodeModuleRef, _nodePath, _nodeUrl, _nodeFs;
|
|
407
420
|
var init_esmHelpers = __esm({
|
|
408
421
|
"packages/domain/shared/src/esmHelpers.ts"() {
|
|
409
422
|
"use strict";
|
|
423
|
+
init_cjs_shims();
|
|
410
424
|
isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
|
|
411
425
|
nodeModuleRef = null;
|
|
412
426
|
_nodePath = null;
|
|
@@ -458,6 +472,7 @@ var RING_BUFFER_SIZE, TelemetryCollector, _globalCollector;
|
|
|
458
472
|
var init_telemetry = __esm({
|
|
459
473
|
"packages/domain/shared/src/telemetry.ts"() {
|
|
460
474
|
"use strict";
|
|
475
|
+
init_cjs_shims();
|
|
461
476
|
RING_BUFFER_SIZE = 100;
|
|
462
477
|
TelemetryCollector = class {
|
|
463
478
|
data = [];
|
|
@@ -560,6 +575,7 @@ var import_zod2, ScanCacheClassEntrySchema, ScanCacheSchema, TailwindContentItem
|
|
|
560
575
|
var init_configSchemas = __esm({
|
|
561
576
|
"packages/domain/shared/src/configSchemas.ts"() {
|
|
562
577
|
"use strict";
|
|
578
|
+
init_cjs_shims();
|
|
563
579
|
import_zod2 = require("zod");
|
|
564
580
|
ScanCacheClassEntrySchema = import_zod2.z.object({
|
|
565
581
|
name: import_zod2.z.string().min(1),
|
|
@@ -627,16 +643,16 @@ var init_configSchemas = __esm({
|
|
|
627
643
|
});
|
|
628
644
|
|
|
629
645
|
// packages/domain/shared/src/workerResolver.ts
|
|
630
|
-
function getDirnameFromUrl(
|
|
631
|
-
if (!
|
|
646
|
+
function getDirnameFromUrl(importMetaUrl2) {
|
|
647
|
+
if (!importMetaUrl2) return "";
|
|
632
648
|
if (isBrowser2) return "";
|
|
633
649
|
try {
|
|
634
650
|
const nodeUrl = require(NODE_URL);
|
|
635
651
|
const nodePath = require(NODE_PATH);
|
|
636
|
-
return nodePath.dirname(nodeUrl.fileURLToPath(
|
|
652
|
+
return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl2));
|
|
637
653
|
} catch {
|
|
638
|
-
if (
|
|
639
|
-
const filePath =
|
|
654
|
+
if (importMetaUrl2.startsWith("file://")) {
|
|
655
|
+
const filePath = importMetaUrl2.slice(7);
|
|
640
656
|
const lastSlash = filePath.lastIndexOf("/");
|
|
641
657
|
return lastSlash >= 0 ? filePath.slice(0, lastSlash) : filePath;
|
|
642
658
|
}
|
|
@@ -667,12 +683,12 @@ function resolveWorkerPath(opts) {
|
|
|
667
683
|
}
|
|
668
684
|
const {
|
|
669
685
|
basename,
|
|
670
|
-
importMetaUrl,
|
|
686
|
+
importMetaUrl: importMetaUrl2,
|
|
671
687
|
extensions = [".cjs", ".js", ".mjs"],
|
|
672
688
|
subdirs = [".", "workers", "lib"],
|
|
673
689
|
required = true
|
|
674
690
|
} = opts;
|
|
675
|
-
const runtimeDir = getDirnameFromUrl(
|
|
691
|
+
const runtimeDir = getDirnameFromUrl(importMetaUrl2);
|
|
676
692
|
for (const subdir of subdirs) {
|
|
677
693
|
for (const ext of extensions) {
|
|
678
694
|
const candidate = resolvePath(runtimeDir, subdir, `${basename}${ext}`);
|
|
@@ -698,10 +714,10 @@ Ensure the package is built: npm run build`
|
|
|
698
714
|
}
|
|
699
715
|
return { path: "", extension: "", format: "cjs" };
|
|
700
716
|
}
|
|
701
|
-
function resolveLoaderPath(loaderBasename,
|
|
717
|
+
function resolveLoaderPath(loaderBasename, importMetaUrl2) {
|
|
702
718
|
return resolveWorkerPath({
|
|
703
719
|
basename: loaderBasename,
|
|
704
|
-
importMetaUrl,
|
|
720
|
+
importMetaUrl: importMetaUrl2,
|
|
705
721
|
extensions: [".cjs", ".js", ".mjs"],
|
|
706
722
|
subdirs: [".", "loaders", "lib"]
|
|
707
723
|
}).path;
|
|
@@ -710,6 +726,7 @@ var isBrowser2, NODE_URL, NODE_FS, NODE_PATH;
|
|
|
710
726
|
var init_workerResolver = __esm({
|
|
711
727
|
"packages/domain/shared/src/workerResolver.ts"() {
|
|
712
728
|
"use strict";
|
|
729
|
+
init_cjs_shims();
|
|
713
730
|
isBrowser2 = typeof window !== "undefined" || typeof document !== "undefined";
|
|
714
731
|
NODE_URL = typeof window === "undefined" || typeof document === "undefined" ? "node:url" : null;
|
|
715
732
|
NODE_FS = typeof window === "undefined" || typeof document === "undefined" ? "node:fs" : null;
|
|
@@ -876,10 +893,20 @@ function generateBarrelFile(exports2, dir, opts = {}) {
|
|
|
876
893
|
var init_codegen = __esm({
|
|
877
894
|
"packages/domain/shared/src/codegen.ts"() {
|
|
878
895
|
"use strict";
|
|
896
|
+
init_cjs_shims();
|
|
879
897
|
}
|
|
880
898
|
});
|
|
881
899
|
|
|
882
900
|
// packages/domain/shared/src/native-resolution.ts
|
|
901
|
+
function _safeCreateRequire() {
|
|
902
|
+
if (typeof import_meta !== "undefined" && importMetaUrl && !importMetaUrl.includes("unknown")) {
|
|
903
|
+
return (0, import_node_module.createRequire)(importMetaUrl);
|
|
904
|
+
}
|
|
905
|
+
if (typeof __filename !== "undefined") {
|
|
906
|
+
return (0, import_node_module.createRequire)(__filename);
|
|
907
|
+
}
|
|
908
|
+
return (0, import_node_module.createRequire)(new URL(`file://${process.cwd()}/`).href);
|
|
909
|
+
}
|
|
883
910
|
function platformKey() {
|
|
884
911
|
if (isBrowser3) return "browser";
|
|
885
912
|
return `${process.platform}-${process.arch}`;
|
|
@@ -975,17 +1002,17 @@ function formatNativeNotFoundError(result) {
|
|
|
975
1002
|
];
|
|
976
1003
|
return lines.join("\n");
|
|
977
1004
|
}
|
|
978
|
-
var import_node_module, fs, path, isBrowser3, _require, PLATFORM_MAP;
|
|
1005
|
+
var import_node_module, fs, path, import_meta, isBrowser3, _require, PLATFORM_MAP;
|
|
979
1006
|
var init_native_resolution = __esm({
|
|
980
1007
|
"packages/domain/shared/src/native-resolution.ts"() {
|
|
981
1008
|
"use strict";
|
|
1009
|
+
init_cjs_shims();
|
|
982
1010
|
import_node_module = require("module");
|
|
983
1011
|
fs = __toESM(require("fs"));
|
|
984
1012
|
path = __toESM(require("path"));
|
|
1013
|
+
import_meta = {};
|
|
985
1014
|
isBrowser3 = typeof window !== "undefined" || typeof document !== "undefined";
|
|
986
|
-
_require = (
|
|
987
|
-
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
988
|
-
);
|
|
1015
|
+
_require = _safeCreateRequire();
|
|
989
1016
|
PLATFORM_MAP = {
|
|
990
1017
|
"linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
|
|
991
1018
|
"linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
|
|
@@ -1032,6 +1059,7 @@ function createObservabilityClient(opts = {}) {
|
|
|
1032
1059
|
var init_observability = __esm({
|
|
1033
1060
|
"packages/domain/shared/src/observability.ts"() {
|
|
1034
1061
|
"use strict";
|
|
1062
|
+
init_cjs_shims();
|
|
1035
1063
|
}
|
|
1036
1064
|
});
|
|
1037
1065
|
|
|
@@ -1040,6 +1068,7 @@ var _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttemp
|
|
|
1040
1068
|
var init_nativeBridge = __esm({
|
|
1041
1069
|
"packages/domain/compiler/src/nativeBridge.ts"() {
|
|
1042
1070
|
"use strict";
|
|
1071
|
+
init_cjs_shims();
|
|
1043
1072
|
init_src2();
|
|
1044
1073
|
_loadNative = (path16) => require(path16);
|
|
1045
1074
|
log = (...args) => {
|
|
@@ -1067,7 +1096,7 @@ var init_nativeBridge = __esm({
|
|
|
1067
1096
|
}
|
|
1068
1097
|
bridgeLoadAttempted = true;
|
|
1069
1098
|
try {
|
|
1070
|
-
const runtimeDir = resolveRuntimeDir(void 0,
|
|
1099
|
+
const runtimeDir = resolveRuntimeDir(void 0, importMetaUrl);
|
|
1071
1100
|
const result = resolveNativeBinary(runtimeDir);
|
|
1072
1101
|
if (result.path && result.path.endsWith(".node")) {
|
|
1073
1102
|
try {
|
|
@@ -1180,6 +1209,7 @@ function resetCacheStats() {
|
|
|
1180
1209
|
var init_cssGeneratorNative = __esm({
|
|
1181
1210
|
"packages/domain/compiler/src/compiler/cssGeneratorNative.ts"() {
|
|
1182
1211
|
"use strict";
|
|
1212
|
+
init_cjs_shims();
|
|
1183
1213
|
init_nativeBridge();
|
|
1184
1214
|
}
|
|
1185
1215
|
});
|
|
@@ -1253,6 +1283,7 @@ function atomicRegistrySize() {
|
|
|
1253
1283
|
var init_compilationNative = __esm({
|
|
1254
1284
|
"packages/domain/compiler/src/compiler/compilationNative.ts"() {
|
|
1255
1285
|
"use strict";
|
|
1286
|
+
init_cjs_shims();
|
|
1256
1287
|
init_nativeBridge();
|
|
1257
1288
|
}
|
|
1258
1289
|
});
|
|
@@ -1397,6 +1428,7 @@ function twMergeRaw(classLists) {
|
|
|
1397
1428
|
var init_cssCompilationNative = __esm({
|
|
1398
1429
|
"packages/domain/compiler/src/compiler/cssCompilationNative.ts"() {
|
|
1399
1430
|
"use strict";
|
|
1431
|
+
init_cjs_shims();
|
|
1400
1432
|
init_nativeBridge();
|
|
1401
1433
|
}
|
|
1402
1434
|
});
|
|
@@ -1497,6 +1529,7 @@ function idRegistryImport(importedData) {
|
|
|
1497
1529
|
var init_idRegistryNative = __esm({
|
|
1498
1530
|
"packages/domain/compiler/src/compiler/idRegistryNative.ts"() {
|
|
1499
1531
|
"use strict";
|
|
1532
|
+
init_cjs_shims();
|
|
1500
1533
|
init_nativeBridge();
|
|
1501
1534
|
}
|
|
1502
1535
|
});
|
|
@@ -1639,6 +1672,7 @@ function scanFilesBatchNative(filesJson) {
|
|
|
1639
1672
|
var init_streamingNative = __esm({
|
|
1640
1673
|
"packages/domain/compiler/src/compiler/streamingNative.ts"() {
|
|
1641
1674
|
"use strict";
|
|
1675
|
+
init_cjs_shims();
|
|
1642
1676
|
init_nativeBridge();
|
|
1643
1677
|
}
|
|
1644
1678
|
});
|
|
@@ -1686,13 +1720,15 @@ async function generateRawCss(classes, cssEntryContent, root) {
|
|
|
1686
1720
|
const compiler = await Promise.resolve(tw.compile(input, { loadStylesheet }));
|
|
1687
1721
|
return compiler.build(classes);
|
|
1688
1722
|
}
|
|
1689
|
-
var import_node_module2, require2, MAX_CACHE_MEMORY, _twEngine, _twEngineError;
|
|
1723
|
+
var import_node_module2, import_meta2, require2, MAX_CACHE_MEMORY, _twEngine, _twEngineError;
|
|
1690
1724
|
var init_tailwindEngine = __esm({
|
|
1691
1725
|
"packages/domain/compiler/src/tailwindEngine.ts"() {
|
|
1692
1726
|
"use strict";
|
|
1727
|
+
init_cjs_shims();
|
|
1693
1728
|
import_node_module2 = require("module");
|
|
1729
|
+
import_meta2 = {};
|
|
1694
1730
|
require2 = (0, import_node_module2.createRequire)(
|
|
1695
|
-
typeof __filename !== "undefined" ? `file://${__filename}` :
|
|
1731
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta2 !== "undefined" && importMetaUrl ? importMetaUrl : "file://unknown"
|
|
1696
1732
|
);
|
|
1697
1733
|
MAX_CACHE_MEMORY = 256 * 1024;
|
|
1698
1734
|
_twEngine = null;
|
|
@@ -1875,17 +1911,19 @@ function processTailwindCssWithTargets(css, targets) {
|
|
|
1875
1911
|
}
|
|
1876
1912
|
return result.css;
|
|
1877
1913
|
}
|
|
1878
|
-
var import_node_module3, require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
|
|
1914
|
+
var import_node_module3, import_meta3, require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
|
|
1879
1915
|
var init_tailwindEngine2 = __esm({
|
|
1880
1916
|
"packages/domain/compiler/src/compiler/tailwindEngine.ts"() {
|
|
1881
1917
|
"use strict";
|
|
1918
|
+
init_cjs_shims();
|
|
1882
1919
|
import_node_module3 = require("module");
|
|
1883
1920
|
init_nativeBridge();
|
|
1884
1921
|
init_cssGeneratorNative();
|
|
1885
1922
|
init_cssCompilationNative();
|
|
1886
1923
|
init_tailwindEngine();
|
|
1924
|
+
import_meta3 = {};
|
|
1887
1925
|
require3 = (0, import_node_module3.createRequire)(
|
|
1888
|
-
typeof __filename !== "undefined" ? `file://${__filename}` :
|
|
1926
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta3 !== "undefined" && importMetaUrl ? importMetaUrl : "file://unknown"
|
|
1889
1927
|
);
|
|
1890
1928
|
_cssCache = /* @__PURE__ */ new Map();
|
|
1891
1929
|
_cacheHits = 0;
|
|
@@ -1899,6 +1937,7 @@ var init_tailwindEngine2 = __esm({
|
|
|
1899
1937
|
var init_compiler = __esm({
|
|
1900
1938
|
"packages/domain/compiler/src/compiler/index.ts"() {
|
|
1901
1939
|
"use strict";
|
|
1940
|
+
init_cjs_shims();
|
|
1902
1941
|
init_cssGeneratorNative();
|
|
1903
1942
|
init_compilationNative();
|
|
1904
1943
|
init_cssCompilationNative();
|
|
@@ -1912,6 +1951,7 @@ var parseClasses, parseClass, extractAllClasses, extractClassesFromSource, astEx
|
|
|
1912
1951
|
var init_parser = __esm({
|
|
1913
1952
|
"packages/domain/compiler/src/parser/index.ts"() {
|
|
1914
1953
|
"use strict";
|
|
1954
|
+
init_cjs_shims();
|
|
1915
1955
|
init_nativeBridge();
|
|
1916
1956
|
parseClasses = (raw) => {
|
|
1917
1957
|
const native = getNativeBridge();
|
|
@@ -2091,6 +2131,7 @@ function resetMemoryStats() {
|
|
|
2091
2131
|
var init_analyzerNative = __esm({
|
|
2092
2132
|
"packages/domain/compiler/src/analyzer/analyzerNative.ts"() {
|
|
2093
2133
|
"use strict";
|
|
2134
|
+
init_cjs_shims();
|
|
2094
2135
|
init_nativeBridge();
|
|
2095
2136
|
}
|
|
2096
2137
|
});
|
|
@@ -2185,6 +2226,7 @@ function resolveSimpleVariants(configJson) {
|
|
|
2185
2226
|
var init_themeResolutionNative = __esm({
|
|
2186
2227
|
"packages/domain/compiler/src/analyzer/themeResolutionNative.ts"() {
|
|
2187
2228
|
"use strict";
|
|
2229
|
+
init_cjs_shims();
|
|
2188
2230
|
init_nativeBridge();
|
|
2189
2231
|
}
|
|
2190
2232
|
});
|
|
@@ -2233,6 +2275,7 @@ function generateSubComponentTypes(root, outputPath) {
|
|
|
2233
2275
|
var init_scannerNative = __esm({
|
|
2234
2276
|
"packages/domain/compiler/src/analyzer/scannerNative.ts"() {
|
|
2235
2277
|
"use strict";
|
|
2278
|
+
init_cjs_shims();
|
|
2236
2279
|
init_nativeBridge();
|
|
2237
2280
|
}
|
|
2238
2281
|
});
|
|
@@ -2241,6 +2284,7 @@ var init_scannerNative = __esm({
|
|
|
2241
2284
|
var init_analyzer = __esm({
|
|
2242
2285
|
"packages/domain/compiler/src/analyzer/index.ts"() {
|
|
2243
2286
|
"use strict";
|
|
2287
|
+
init_cjs_shims();
|
|
2244
2288
|
init_analyzerNative();
|
|
2245
2289
|
init_themeResolutionNative();
|
|
2246
2290
|
init_scannerNative();
|
|
@@ -2430,6 +2474,7 @@ function resetResolverPoolStats() {
|
|
|
2430
2474
|
var init_cacheNative = __esm({
|
|
2431
2475
|
"packages/domain/compiler/src/cache/cacheNative.ts"() {
|
|
2432
2476
|
"use strict";
|
|
2477
|
+
init_cjs_shims();
|
|
2433
2478
|
init_nativeBridge();
|
|
2434
2479
|
}
|
|
2435
2480
|
});
|
|
@@ -2438,6 +2483,7 @@ var init_cacheNative = __esm({
|
|
|
2438
2483
|
var init_cache = __esm({
|
|
2439
2484
|
"packages/domain/compiler/src/cache/index.ts"() {
|
|
2440
2485
|
"use strict";
|
|
2486
|
+
init_cjs_shims();
|
|
2441
2487
|
init_cacheNative();
|
|
2442
2488
|
}
|
|
2443
2489
|
});
|
|
@@ -2687,6 +2733,7 @@ function redisDiagnose() {
|
|
|
2687
2733
|
var init_redisNative = __esm({
|
|
2688
2734
|
"packages/domain/compiler/src/redis/redisNative.ts"() {
|
|
2689
2735
|
"use strict";
|
|
2736
|
+
init_cjs_shims();
|
|
2690
2737
|
init_nativeBridge();
|
|
2691
2738
|
}
|
|
2692
2739
|
});
|
|
@@ -2695,6 +2742,7 @@ var init_redisNative = __esm({
|
|
|
2695
2742
|
var init_redis = __esm({
|
|
2696
2743
|
"packages/domain/compiler/src/redis/index.ts"() {
|
|
2697
2744
|
"use strict";
|
|
2745
|
+
init_cjs_shims();
|
|
2698
2746
|
init_redisNative();
|
|
2699
2747
|
}
|
|
2700
2748
|
});
|
|
@@ -2834,6 +2882,7 @@ function getCompilerDiagnostics() {
|
|
|
2834
2882
|
var init_watchSystemNative = __esm({
|
|
2835
2883
|
"packages/domain/compiler/src/watch/watchSystemNative.ts"() {
|
|
2836
2884
|
"use strict";
|
|
2885
|
+
init_cjs_shims();
|
|
2837
2886
|
init_nativeBridge();
|
|
2838
2887
|
}
|
|
2839
2888
|
});
|
|
@@ -2842,6 +2891,7 @@ var init_watchSystemNative = __esm({
|
|
|
2842
2891
|
var init_watch = __esm({
|
|
2843
2892
|
"packages/domain/compiler/src/watch/index.ts"() {
|
|
2844
2893
|
"use strict";
|
|
2894
|
+
init_cjs_shims();
|
|
2845
2895
|
init_watchSystemNative();
|
|
2846
2896
|
}
|
|
2847
2897
|
});
|
|
@@ -2885,6 +2935,7 @@ var import_node_fs, import_node_path, import_node_module4, _require2, transformS
|
|
|
2885
2935
|
var init_src = __esm({
|
|
2886
2936
|
"packages/domain/compiler/src/index.ts"() {
|
|
2887
2937
|
"use strict";
|
|
2938
|
+
init_cjs_shims();
|
|
2888
2939
|
import_node_fs = __toESM(require("fs"), 1);
|
|
2889
2940
|
import_node_path = __toESM(require("path"), 1);
|
|
2890
2941
|
import_node_module4 = require("module");
|
|
@@ -2896,7 +2947,7 @@ var init_src = __esm({
|
|
|
2896
2947
|
init_redis();
|
|
2897
2948
|
init_watch();
|
|
2898
2949
|
_require2 = (0, import_node_module4.createRequire)(
|
|
2899
|
-
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" :
|
|
2950
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : importMetaUrl
|
|
2900
2951
|
);
|
|
2901
2952
|
transformSource = (source, opts) => {
|
|
2902
2953
|
const native = getNativeBridge();
|
|
@@ -3454,6 +3505,7 @@ __export(internal_exports, {
|
|
|
3454
3505
|
var init_internal = __esm({
|
|
3455
3506
|
"packages/domain/compiler/src/internal.ts"() {
|
|
3456
3507
|
"use strict";
|
|
3508
|
+
init_cjs_shims();
|
|
3457
3509
|
init_src();
|
|
3458
3510
|
init_tailwindEngine2();
|
|
3459
3511
|
init_compiler();
|
|
@@ -3718,6 +3770,7 @@ var import_node_fs2, import_node_path2, SOURCE_EXTENSIONS, IGNORE_PATTERNS, _nat
|
|
|
3718
3770
|
var init_staticStateExtractor = __esm({
|
|
3719
3771
|
"packages/domain/shared/src/staticStateExtractor.ts"() {
|
|
3720
3772
|
"use strict";
|
|
3773
|
+
init_cjs_shims();
|
|
3721
3774
|
import_node_fs2 = __toESM(require("fs"));
|
|
3722
3775
|
import_node_path2 = __toESM(require("path"));
|
|
3723
3776
|
SOURCE_EXTENSIONS = /* @__PURE__ */ new Set([".ts", ".tsx", ".js", ".jsx", ".mts", ".mjs"]);
|
|
@@ -3782,6 +3835,7 @@ var import_node_fs3, import_node_path3, LEVELS, _globalLogFile, _logFileInitiali
|
|
|
3782
3835
|
var init_logger = __esm({
|
|
3783
3836
|
"packages/domain/shared/src/logger.ts"() {
|
|
3784
3837
|
"use strict";
|
|
3838
|
+
init_cjs_shims();
|
|
3785
3839
|
import_node_fs3 = __toESM(require("fs"));
|
|
3786
3840
|
import_node_path3 = __toESM(require("path"));
|
|
3787
3841
|
LEVELS = { silent: 0, error: 1, warn: 2, info: 3, debug: 4 };
|
|
@@ -3965,10 +4019,10 @@ function resolveNativeBindingCandidates(options) {
|
|
|
3965
4019
|
}
|
|
3966
4020
|
return Array.from(new Set(candidates));
|
|
3967
4021
|
}
|
|
3968
|
-
function resolveRuntimeDir(dir,
|
|
4022
|
+
function resolveRuntimeDir(dir, importMetaUrl2) {
|
|
3969
4023
|
if (dir) return import_node_path4.default.resolve(dir);
|
|
3970
4024
|
try {
|
|
3971
|
-
return import_node_path4.default.dirname((0, import_node_url.fileURLToPath)(
|
|
4025
|
+
return import_node_path4.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl2));
|
|
3972
4026
|
} catch {
|
|
3973
4027
|
return process.cwd();
|
|
3974
4028
|
}
|
|
@@ -3986,6 +4040,7 @@ var import_node_crypto, import_node_fs4, import_node_path4, import_node_url, imp
|
|
|
3986
4040
|
var init_src2 = __esm({
|
|
3987
4041
|
"packages/domain/shared/src/index.ts"() {
|
|
3988
4042
|
"use strict";
|
|
4043
|
+
init_cjs_shims();
|
|
3989
4044
|
import_node_crypto = require("crypto");
|
|
3990
4045
|
import_node_fs4 = __toESM(require("fs"));
|
|
3991
4046
|
import_node_path4 = __toESM(require("path"));
|
|
@@ -4057,7 +4112,7 @@ var init_src2 = __esm({
|
|
|
4057
4112
|
}
|
|
4058
4113
|
};
|
|
4059
4114
|
_require3 = (0, import_node_module5.createRequire)(
|
|
4060
|
-
typeof __filename !== "undefined" ? `file://${__filename}` :
|
|
4115
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : importMetaUrl ?? "file://unknown"
|
|
4061
4116
|
);
|
|
4062
4117
|
LRUCache = class {
|
|
4063
4118
|
capacity;
|
|
@@ -4136,8 +4191,8 @@ function getDirname2() {
|
|
|
4136
4191
|
if (typeof __dirname !== "undefined") {
|
|
4137
4192
|
return __dirname;
|
|
4138
4193
|
}
|
|
4139
|
-
if (
|
|
4140
|
-
return
|
|
4194
|
+
if (typeof import_meta4 !== "undefined" && importMetaUrl) {
|
|
4195
|
+
return import_node_path5.default.dirname((0, import_node_url2.fileURLToPath)(importMetaUrl));
|
|
4141
4196
|
}
|
|
4142
4197
|
return process.cwd();
|
|
4143
4198
|
}
|
|
@@ -4342,13 +4397,15 @@ function hasNativeWatchBinding() {
|
|
|
4342
4397
|
return false;
|
|
4343
4398
|
}
|
|
4344
4399
|
}
|
|
4345
|
-
var import_node_path5, import_node_url2, log2, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
4400
|
+
var import_node_path5, import_node_url2, import_meta4, log2, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
4346
4401
|
var init_native_bridge = __esm({
|
|
4347
4402
|
"packages/domain/scanner/src/native-bridge.ts"() {
|
|
4348
4403
|
"use strict";
|
|
4349
|
-
|
|
4404
|
+
init_cjs_shims();
|
|
4405
|
+
import_node_path5 = __toESM(require("path"), 1);
|
|
4350
4406
|
import_node_url2 = require("url");
|
|
4351
4407
|
init_src2();
|
|
4408
|
+
import_meta4 = {};
|
|
4352
4409
|
log2 = createDebugLogger("scanner:native");
|
|
4353
4410
|
isValidScannerBinding = (module2) => {
|
|
4354
4411
|
const candidate = module2;
|
|
@@ -4474,6 +4531,7 @@ var import_node_fs5, import_node_path6, STALE_THRESHOLD_MS;
|
|
|
4474
4531
|
var init_cache_native = __esm({
|
|
4475
4532
|
"packages/domain/scanner/src/cache-native.ts"() {
|
|
4476
4533
|
"use strict";
|
|
4534
|
+
init_cjs_shims();
|
|
4477
4535
|
import_node_fs5 = __toESM(require("fs"), 1);
|
|
4478
4536
|
import_node_path6 = __toESM(require("path"), 1);
|
|
4479
4537
|
init_native_bridge();
|
|
@@ -4542,6 +4600,7 @@ var import_node_worker_threads, import_node_path7, import_node_os, import_node_u
|
|
|
4542
4600
|
var init_parallel_scanner = __esm({
|
|
4543
4601
|
"packages/domain/scanner/src/parallel-scanner.ts"() {
|
|
4544
4602
|
"use strict";
|
|
4603
|
+
init_cjs_shims();
|
|
4545
4604
|
import_node_worker_threads = require("worker_threads");
|
|
4546
4605
|
import_node_path7 = __toESM(require("path"), 1);
|
|
4547
4606
|
import_node_os = require("os");
|
|
@@ -4564,7 +4623,7 @@ var init_parallel_scanner = __esm({
|
|
|
4564
4623
|
import_node_worker_threads.parentPort.postMessage(msg);
|
|
4565
4624
|
}
|
|
4566
4625
|
}
|
|
4567
|
-
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(
|
|
4626
|
+
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(importMetaUrl);
|
|
4568
4627
|
}
|
|
4569
4628
|
});
|
|
4570
4629
|
|
|
@@ -4573,6 +4632,7 @@ var import_zod3, formatIssuePath2, formatIssues, parseWithSchema, NonNegativeInt
|
|
|
4573
4632
|
var init_schemas = __esm({
|
|
4574
4633
|
"packages/domain/scanner/src/schemas.ts"() {
|
|
4575
4634
|
"use strict";
|
|
4635
|
+
init_cjs_shims();
|
|
4576
4636
|
import_zod3 = require("zod");
|
|
4577
4637
|
init_src2();
|
|
4578
4638
|
formatIssuePath2 = (path16) => path16.length > 0 ? path16.map(
|
|
@@ -4656,8 +4716,8 @@ function getRuntimeDir() {
|
|
|
4656
4716
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
4657
4717
|
return __dirname;
|
|
4658
4718
|
}
|
|
4659
|
-
if (
|
|
4660
|
-
return import_node_path8.default.dirname(
|
|
4719
|
+
if (typeof import_meta5 !== "undefined" && importMetaUrl) {
|
|
4720
|
+
return import_node_path8.default.dirname((0, import_node_url4.fileURLToPath)(importMetaUrl));
|
|
4661
4721
|
}
|
|
4662
4722
|
return process.cwd();
|
|
4663
4723
|
}
|
|
@@ -4666,8 +4726,8 @@ function resolveScannerWorkerModulePath() {
|
|
|
4666
4726
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
4667
4727
|
return __dirname;
|
|
4668
4728
|
}
|
|
4669
|
-
if (
|
|
4670
|
-
return import_node_path8.default.dirname(
|
|
4729
|
+
if (typeof import_meta5 !== "undefined" && importMetaUrl) {
|
|
4730
|
+
return import_node_path8.default.dirname((0, import_node_url4.fileURLToPath)(importMetaUrl));
|
|
4671
4731
|
}
|
|
4672
4732
|
return process.cwd();
|
|
4673
4733
|
})();
|
|
@@ -4940,10 +5000,11 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
|
|
|
4940
5000
|
return scanWorkspace2(rootDir, normalizedOptions);
|
|
4941
5001
|
}
|
|
4942
5002
|
}
|
|
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;
|
|
5003
|
+
var import_node_fs6, import_node_module6, import_node_path8, import_node_url4, import_node_worker_threads2, import_meta5, log3, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
|
|
4944
5004
|
var init_src3 = __esm({
|
|
4945
5005
|
"packages/domain/scanner/src/index.ts"() {
|
|
4946
5006
|
"use strict";
|
|
5007
|
+
init_cjs_shims();
|
|
4947
5008
|
import_node_fs6 = __toESM(require("fs"), 1);
|
|
4948
5009
|
import_node_module6 = require("module");
|
|
4949
5010
|
import_node_path8 = __toESM(require("path"), 1);
|
|
@@ -4956,6 +5017,7 @@ var init_src3 = __esm({
|
|
|
4956
5017
|
init_schemas();
|
|
4957
5018
|
init_schemas();
|
|
4958
5019
|
init_native_bridge();
|
|
5020
|
+
import_meta5 = {};
|
|
4959
5021
|
log3 = createLogger2("scanner");
|
|
4960
5022
|
SCAN_WORKER_TIMEOUT_MS = 12e4;
|
|
4961
5023
|
createNativeParserLoader = () => {
|
|
@@ -5045,19 +5107,21 @@ var init_src3 = __esm({
|
|
|
5045
5107
|
// packages/domain/engine/src/native-bridge.ts
|
|
5046
5108
|
function getDirname3() {
|
|
5047
5109
|
if (typeof __dirname !== "undefined") return __dirname;
|
|
5048
|
-
if (
|
|
5049
|
-
return
|
|
5110
|
+
if (typeof import_meta6 !== "undefined" && importMetaUrl) {
|
|
5111
|
+
return getDirname(importMetaUrl);
|
|
5050
5112
|
}
|
|
5051
5113
|
return process.cwd();
|
|
5052
5114
|
}
|
|
5053
5115
|
function getNativeEngineBinding() {
|
|
5054
5116
|
return engineBindingLoader.get();
|
|
5055
5117
|
}
|
|
5056
|
-
var log4, isValidEngineBinding, createEngineBindingLoader, engineBindingLoader;
|
|
5118
|
+
var import_meta6, log4, isValidEngineBinding, createEngineBindingLoader, engineBindingLoader;
|
|
5057
5119
|
var init_native_bridge2 = __esm({
|
|
5058
5120
|
"packages/domain/engine/src/native-bridge.ts"() {
|
|
5059
5121
|
"use strict";
|
|
5122
|
+
init_cjs_shims();
|
|
5060
5123
|
init_src2();
|
|
5124
|
+
import_meta6 = {};
|
|
5061
5125
|
log4 = createDebugLogger("engine:native");
|
|
5062
5126
|
isValidEngineBinding = (module2) => {
|
|
5063
5127
|
const candidate = module2;
|
|
@@ -5181,6 +5245,7 @@ var RuleId, SelectorId, VariantChainId, PropertyId, ValueId, LayerId, ConditionI
|
|
|
5181
5245
|
var init_ir = __esm({
|
|
5182
5246
|
"packages/domain/engine/src/ir.ts"() {
|
|
5183
5247
|
"use strict";
|
|
5248
|
+
init_cjs_shims();
|
|
5184
5249
|
init_native_bridge2();
|
|
5185
5250
|
RuleId = class {
|
|
5186
5251
|
constructor(value) {
|
|
@@ -5353,6 +5418,7 @@ var CascadeResolver;
|
|
|
5353
5418
|
var init_resolver = __esm({
|
|
5354
5419
|
"packages/domain/engine/src/resolver.ts"() {
|
|
5355
5420
|
"use strict";
|
|
5421
|
+
init_cjs_shims();
|
|
5356
5422
|
init_ir();
|
|
5357
5423
|
init_native_bridge2();
|
|
5358
5424
|
CascadeResolver = class {
|
|
@@ -5587,6 +5653,7 @@ var _defaultIdGen, generateRuleId, generateSelectorId, generatePropertyId, gener
|
|
|
5587
5653
|
var init_cssToIr = __esm({
|
|
5588
5654
|
"packages/domain/engine/src/cssToIr.ts"() {
|
|
5589
5655
|
"use strict";
|
|
5656
|
+
init_cjs_shims();
|
|
5590
5657
|
init_native_bridge2();
|
|
5591
5658
|
init_ir();
|
|
5592
5659
|
_defaultIdGen = createIdGenerator();
|
|
@@ -5720,6 +5787,7 @@ function trace(className, resolver) {
|
|
|
5720
5787
|
var init_trace2 = __esm({
|
|
5721
5788
|
"packages/domain/engine/src/trace.ts"() {
|
|
5722
5789
|
"use strict";
|
|
5790
|
+
init_cjs_shims();
|
|
5723
5791
|
init_ir();
|
|
5724
5792
|
}
|
|
5725
5793
|
});
|
|
@@ -5775,20 +5843,28 @@ __export(engine_exports, {
|
|
|
5775
5843
|
watchWorkspaceNative: () => watchWorkspace2
|
|
5776
5844
|
});
|
|
5777
5845
|
module.exports = __toCommonJS(engine_exports);
|
|
5846
|
+
init_cjs_shims();
|
|
5778
5847
|
|
|
5779
5848
|
// packages/domain/engine/src/index.ts
|
|
5849
|
+
init_cjs_shims();
|
|
5780
5850
|
var import_node_fs11 = __toESM(require("fs"), 1);
|
|
5781
5851
|
var import_node_path14 = __toESM(require("path"), 1);
|
|
5782
5852
|
var import_node_url6 = require("url");
|
|
5783
5853
|
|
|
5854
|
+
// packages/domain/analyzer/src/index.ts
|
|
5855
|
+
init_cjs_shims();
|
|
5856
|
+
|
|
5784
5857
|
// packages/domain/analyzer/src/analyzeWorkspace.ts
|
|
5858
|
+
init_cjs_shims();
|
|
5785
5859
|
var import_node_path10 = __toESM(require("path"), 1);
|
|
5786
5860
|
init_src3();
|
|
5787
5861
|
|
|
5788
5862
|
// packages/domain/analyzer/src/binding.ts
|
|
5863
|
+
init_cjs_shims();
|
|
5789
5864
|
init_src2();
|
|
5790
5865
|
|
|
5791
5866
|
// packages/domain/analyzer/src/utils.ts
|
|
5867
|
+
init_cjs_shims();
|
|
5792
5868
|
var import_node_fs7 = __toESM(require("fs"), 1);
|
|
5793
5869
|
init_src2();
|
|
5794
5870
|
var DEFAULT_TOP_LIMIT = 10;
|
|
@@ -5832,7 +5908,7 @@ var createAnalyzerBindingLoader = () => {
|
|
|
5832
5908
|
_state.bindingPromise = (async () => {
|
|
5833
5909
|
const runtimeDir = resolveRuntimeDir(
|
|
5834
5910
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
5835
|
-
|
|
5911
|
+
importMetaUrl
|
|
5836
5912
|
);
|
|
5837
5913
|
const candidates = resolveNativeBindingCandidates({
|
|
5838
5914
|
runtimeDir,
|
|
@@ -5875,7 +5951,7 @@ async function requireNativeBinding() {
|
|
|
5875
5951
|
if (binding?.analyzeClasses) return binding;
|
|
5876
5952
|
const runtimeDir = resolveRuntimeDir(
|
|
5877
5953
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
5878
|
-
|
|
5954
|
+
importMetaUrl
|
|
5879
5955
|
);
|
|
5880
5956
|
const candidates = resolveNativeBindingCandidates({
|
|
5881
5957
|
runtimeDir,
|
|
@@ -5902,6 +5978,7 @@ async function requireNativeBinding() {
|
|
|
5902
5978
|
}
|
|
5903
5979
|
|
|
5904
5980
|
// packages/domain/analyzer/src/schemas.ts
|
|
5981
|
+
init_cjs_shims();
|
|
5905
5982
|
init_src2();
|
|
5906
5983
|
var import_zod4 = require("zod");
|
|
5907
5984
|
var formatIssuePath3 = (path16) => path16.length > 0 ? path16.map(
|
|
@@ -6004,6 +6081,7 @@ var parseAnalyzerOptions = (options) => parseWithSchema2(AnalyzerOptionsSchema,
|
|
|
6004
6081
|
var parseNativeReport = (report) => parseWithSchema2(NativeReportSchema, report, "Native analyzer report is invalid");
|
|
6005
6082
|
|
|
6006
6083
|
// packages/domain/analyzer/src/semantic.ts
|
|
6084
|
+
init_cjs_shims();
|
|
6007
6085
|
var import_node_fs8 = __toESM(require("fs"), 1);
|
|
6008
6086
|
var import_node_path9 = __toESM(require("path"), 1);
|
|
6009
6087
|
var import_node_url5 = require("url");
|
|
@@ -6390,6 +6468,7 @@ init_src3();
|
|
|
6390
6468
|
init_src2();
|
|
6391
6469
|
|
|
6392
6470
|
// packages/domain/engine/src/incremental.ts
|
|
6471
|
+
init_cjs_shims();
|
|
6393
6472
|
var import_node_fs9 = __toESM(require("fs"), 1);
|
|
6394
6473
|
var import_node_path11 = __toESM(require("path"), 1);
|
|
6395
6474
|
init_src3();
|
|
@@ -6460,9 +6539,11 @@ function applyIncrementalChange(previous, filePath, type, scanner) {
|
|
|
6460
6539
|
}
|
|
6461
6540
|
|
|
6462
6541
|
// packages/domain/engine/src/impactTracker.ts
|
|
6542
|
+
init_cjs_shims();
|
|
6463
6543
|
init_native_bridge2();
|
|
6464
6544
|
|
|
6465
6545
|
// packages/domain/engine/src/bundleAnalyzer.ts
|
|
6546
|
+
init_cjs_shims();
|
|
6466
6547
|
init_native_bridge2();
|
|
6467
6548
|
var BundleAnalyzer = class {
|
|
6468
6549
|
analyzeClass(className, scanResult, css) {
|
|
@@ -6741,6 +6822,7 @@ var ImpactTracker = class {
|
|
|
6741
6822
|
};
|
|
6742
6823
|
|
|
6743
6824
|
// packages/domain/engine/src/metrics.ts
|
|
6825
|
+
init_cjs_shims();
|
|
6744
6826
|
var EngineMetricsCollector = class {
|
|
6745
6827
|
eventsReceived = 0;
|
|
6746
6828
|
eventsProcessed = 0;
|
|
@@ -6789,6 +6871,7 @@ var EngineMetricsCollector = class {
|
|
|
6789
6871
|
};
|
|
6790
6872
|
|
|
6791
6873
|
// packages/domain/engine/src/metricsWriter.ts
|
|
6874
|
+
init_cjs_shims();
|
|
6792
6875
|
var import_node_fs10 = __toESM(require("fs"), 1);
|
|
6793
6876
|
var import_node_path12 = __toESM(require("path"), 1);
|
|
6794
6877
|
var import_node_perf_hooks = require("perf_hooks");
|
|
@@ -6816,6 +6899,7 @@ function writeMetrics(metrics, cwd = process.cwd()) {
|
|
|
6816
6899
|
}
|
|
6817
6900
|
|
|
6818
6901
|
// packages/domain/engine/src/plugin-api.ts
|
|
6902
|
+
init_cjs_shims();
|
|
6819
6903
|
async function runBeforeScan(plugins, context) {
|
|
6820
6904
|
for (const plugin of plugins) {
|
|
6821
6905
|
await plugin.beforeScan?.(context);
|
|
@@ -6864,6 +6948,7 @@ async function runAfterWatch(plugins, context) {
|
|
|
6864
6948
|
}
|
|
6865
6949
|
|
|
6866
6950
|
// packages/domain/engine/src/schemas.ts
|
|
6951
|
+
init_cjs_shims();
|
|
6867
6952
|
var import_zod5 = require("zod");
|
|
6868
6953
|
var formatIssues3 = (error) => error.issues.map((issue) => {
|
|
6869
6954
|
const p = issue.path.length > 0 ? issue.path.join(".") : "<root>";
|
|
@@ -6920,6 +7005,7 @@ var parseEngineOptions = (options) => parseWithSchema3(EngineOptionsSchema, opti
|
|
|
6920
7005
|
var parseEngineWatchOptions = (options) => parseWithSchema3(EngineWatchOptionsSchema, options ?? {}, "engine watch options are invalid");
|
|
6921
7006
|
|
|
6922
7007
|
// packages/domain/engine/src/watch.ts
|
|
7008
|
+
init_cjs_shims();
|
|
6923
7009
|
var _native2 = null;
|
|
6924
7010
|
function getNativeWatcher() {
|
|
6925
7011
|
if (_native2 !== null) return _native2;
|
|
@@ -6992,9 +7078,11 @@ function watchWorkspace(rootDir, onEvent, options = {}) {
|
|
|
6992
7078
|
}
|
|
6993
7079
|
|
|
6994
7080
|
// packages/domain/engine/src/internal.ts
|
|
7081
|
+
init_cjs_shims();
|
|
6995
7082
|
init_ir();
|
|
6996
7083
|
|
|
6997
7084
|
// packages/domain/engine/src/reverseLookup.ts
|
|
7085
|
+
init_cjs_shims();
|
|
6998
7086
|
init_native_bridge2();
|
|
6999
7087
|
function getNative2() {
|
|
7000
7088
|
const native = getNativeEngineBinding();
|
|
@@ -7074,9 +7162,11 @@ init_resolver();
|
|
|
7074
7162
|
init_cssToIr();
|
|
7075
7163
|
|
|
7076
7164
|
// packages/domain/engine/src/watch-native.ts
|
|
7165
|
+
init_cjs_shims();
|
|
7077
7166
|
var import_node_module7 = require("module");
|
|
7078
7167
|
var import_node_path13 = __toESM(require("path"), 1);
|
|
7079
7168
|
init_src2();
|
|
7169
|
+
var import_meta7 = {};
|
|
7080
7170
|
var watchBindingState = {
|
|
7081
7171
|
binding: void 0
|
|
7082
7172
|
};
|
|
@@ -7091,7 +7181,7 @@ var getBinding = () => {
|
|
|
7091
7181
|
}
|
|
7092
7182
|
const runtimeDir = typeof __dirname === "string" ? __dirname : process.cwd();
|
|
7093
7183
|
const req = (0, import_node_module7.createRequire)(
|
|
7094
|
-
typeof __filename !== "undefined" ? `file://${__filename}` :
|
|
7184
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta7 !== "undefined" && importMetaUrl ? importMetaUrl : "file://unknown"
|
|
7095
7185
|
);
|
|
7096
7186
|
const _pa = `${process.platform}-${process.arch}`;
|
|
7097
7187
|
const _paGnu = _pa === "linux-x64" ? "linux-x64-gnu" : _pa === "linux-arm64" ? "linux-arm64-gnu" : _pa;
|