@voidzero-dev/vite-plus-core 0.3.0 → 0.3.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/rolldown/cli.mjs +6 -6
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.d.mts +33 -4
- package/dist/rolldown/experimental-index.mjs +33 -8
- package/dist/rolldown/experimental-runtime-types.d.ts +2 -2
- package/dist/rolldown/experimental-runtime.d.ts +2 -2
- package/dist/rolldown/experimental-runtime.mjs +2 -2
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/filter-index.mjs +1 -3
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +1 -1
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{binding-Bvw14S3g.d.mts → binding-DZuNHVw4.d.mts} +19 -5
- package/dist/rolldown/shared/{binding-C__LJDBG.mjs → binding-DmImI4pj.mjs} +27 -27
- package/dist/rolldown/shared/{bindingify-input-options-V9YvAjrr.mjs → bindingify-input-options-BYClWKnj.mjs} +11 -9
- package/dist/rolldown/shared/{constructors-CRumnw21.d.mts → constructors-BM20b11r.d.mts} +2 -2
- package/dist/rolldown/shared/{constructors-DklcHr18.mjs → constructors-mRbcbLyX.mjs} +1 -1
- package/dist/rolldown/shared/{create-bundler-option-DbV2ud0B.mjs → create-bundler-option-CHTBktos.mjs} +47 -5
- package/dist/rolldown/shared/{define-config-DwTNhgWB.d.mts → define-config-DNX0WekP.d.mts} +36 -3
- package/dist/rolldown/shared/{error-NcRuXAVN.mjs → error-BP8lJHle.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-Dd7jKGUy.mjs → load-config-Cx5fx_8Q.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-CFtim40S.mjs → normalize-string-or-regex-Dm69lpQ-.mjs} +1 -1
- package/dist/rolldown/shared/{parse-rvxTD36n.mjs → parse-8sr82jSR.mjs} +2 -2
- package/dist/rolldown/shared/{resolve-tsconfig-D2vSIIkR.mjs → resolve-tsconfig-BlNGaH3Y.mjs} +10 -6
- package/dist/rolldown/shared/{rolldown-Bblizyw1.mjs → rolldown-CaX_Wmqc.mjs} +5 -4
- package/dist/rolldown/shared/{transform--WSMLt1x.d.mts → transform-CVse9_mH.d.mts} +8 -4
- package/dist/rolldown/shared/{watch-DPvOlccK.mjs → watch-YKfJgIxz.mjs} +4 -4
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +5 -5
- package/dist/tsdown/{build-D_enfyvD-tOzhITac.js → build-JVmLFaZt-kqQJ2U7s.js} +1101 -687
- package/dist/tsdown/debug-CpC4hV25-tvH_Dsg5.js +247 -0
- package/dist/tsdown/{detect-DGhJGEqb-LL52mV6u.js → detect-Bg-d8iUV-KfbO7neP.js} +10 -12
- package/dist/tsdown/{dist-BsS7BOcb.js → dist-Cuw3Ngo4.js} +1226 -893
- package/dist/tsdown/index-types.d.ts +277 -355
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/internal-D-JfB5uT.js +29 -0
- package/dist/tsdown/internal-lhH-5yya.js +62 -0
- package/dist/tsdown/{main-Bcv7jU2b.js → main-CyNcZUzu.js} +8 -214
- package/dist/tsdown/{resolver-cwLsPb2o-Bb9SDBm6.js → resolver-DE0_sy8o-ZQqHQjRu.js} +4 -4
- package/dist/tsdown/rolldown-runtime-B4iAMlE-.js +35 -0
- package/dist/tsdown/run.js +44 -8
- package/dist/tsdown/{src-JVSpR8xt.js → src-BWidcM5N.js} +1 -1
- package/dist/tsdown/{tsc-B8FD48Oc.js → tsc-ChjRhsoQ.js} +26 -20
- package/dist/tsdown/tsdown-css.js +17 -11
- package/dist/tsdown/tsdown-exe.js +16 -5
- package/dist/tsdown/version-CQ98ZBpL-Obdnv4J7.js +141 -0
- package/dist/vite/client/bundledDevClient.mjs +6 -6
- package/dist/vite/client/client.mjs +4 -4
- package/dist/vite/node/chunks/build.js +2 -2
- package/dist/vite/node/chunks/lib.js +2 -2
- package/dist/vite/node/chunks/node.js +42 -31
- package/dist/vite/node/module-runner.js +3 -3
- package/package.json +25 -25
- package/dist/tsdown/debug-CKcBYQLP-By_AQqN8.js +0 -157
- package/dist/tsdown/internal-DSmmwu4u.js +0 -3
- package/dist/tsdown/target-Bab3CUeB-8PBzMh3p.js +0 -582
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as expandBaselineTarget } from "./
|
|
3
|
-
import "./internal-DSmmwu4u.js";
|
|
1
|
+
import { i as __toESM } from "./rolldown-runtime-B4iAMlE-.js";
|
|
2
|
+
import { a as resolveComma, i as importWithError, o as toArray, r as expandBaselineTarget } from "./internal-lhH-5yya.js";
|
|
4
3
|
import path from "node:path";
|
|
4
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
6
|
import { readFile } from "node:fs/promises";
|
|
7
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
8
7
|
import { ResolverFactory } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
|
|
9
|
-
//#region ../../node_modules/.pnpm/@tsdown+css@0.
|
|
8
|
+
//#region ../../node_modules/.pnpm/@tsdown+css@0.23.0_jiti@2.7.0_postcss-import@16.2.0_postcss@8.5.26__postcss-modules@9.0_5274324ff2ff6c48cc66985619453a8b/node_modules/@tsdown/css/dist/index.mjs
|
|
10
9
|
const defaultCssBundleName = "style.css";
|
|
11
10
|
function resolveCssOptions(options = {}, topLevelTarget, unbundle) {
|
|
12
11
|
let cssTarget;
|
|
@@ -40,9 +39,13 @@ function modulesToEsm(modules) {
|
|
|
40
39
|
function dashToCamel(str) {
|
|
41
40
|
return str.replaceAll(/-([a-z])/g, (_, c) => c.toUpperCase());
|
|
42
41
|
}
|
|
43
|
-
function applyLocalsConvention(modules, convention) {
|
|
42
|
+
function applyLocalsConvention(modules, convention, inputFile) {
|
|
44
43
|
const result = {};
|
|
45
44
|
for (const [key, value] of Object.entries(modules)) {
|
|
45
|
+
if (typeof convention === "function") {
|
|
46
|
+
result[convention(key, value, inputFile)] = value;
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
46
49
|
const camelized = dashToCamel(key);
|
|
47
50
|
switch (convention) {
|
|
48
51
|
case "camelCase":
|
|
@@ -426,6 +429,7 @@ async function bundleWithLightningCSS(filename, options, code) {
|
|
|
426
429
|
sourceMap: options.sourceMap,
|
|
427
430
|
resolver: {
|
|
428
431
|
async read(filePath) {
|
|
432
|
+
if (filePath !== filename) deps.push(filePath);
|
|
429
433
|
let fileCode;
|
|
430
434
|
if (code != null && filePath === filename) fileCode = code;
|
|
431
435
|
else fileCode = readFileSync(filePath, "utf8");
|
|
@@ -604,7 +608,7 @@ async function loadFileConfig(searchPath) {
|
|
|
604
608
|
if (cached !== void 0) return cached;
|
|
605
609
|
const promise = (async () => {
|
|
606
610
|
try {
|
|
607
|
-
const postcssrc = (await import("./src-
|
|
611
|
+
const postcssrc = (await import("./src-BWidcM5N.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).default;
|
|
608
612
|
const result = await postcssrc({}, searchPath);
|
|
609
613
|
return {
|
|
610
614
|
options: result.options,
|
|
@@ -636,9 +640,9 @@ async function processWithPostCSS$1(code, filename, postcssOption, cwd, injectIm
|
|
|
636
640
|
let modules;
|
|
637
641
|
if (modulesOptions?.isModule) {
|
|
638
642
|
const postcssModules = await importWithError("postcss-modules");
|
|
639
|
-
const
|
|
643
|
+
const userGetJSON = modulesOptions.config?.getJSON;
|
|
640
644
|
plugins.push((postcssModules.default ?? postcssModules)({
|
|
641
|
-
...
|
|
645
|
+
...modulesOptions.config,
|
|
642
646
|
getJSON(cssFileName, json, outputFileName) {
|
|
643
647
|
modules = json;
|
|
644
648
|
userGetJSON?.(cssFileName, json, outputFileName);
|
|
@@ -751,8 +755,10 @@ function CssPlugin(config, { logger }) {
|
|
|
751
755
|
if (code.length && !code.endsWith("\n")) code += "\n";
|
|
752
756
|
if (modules) {
|
|
753
757
|
const modulesConfig = typeof cssConfig.css.modules === "object" ? cssConfig.css.modules : void 0;
|
|
754
|
-
if (
|
|
755
|
-
|
|
758
|
+
if (cssConfig.css.transformer === "lightningcss") {
|
|
759
|
+
if (modulesConfig?.localsConvention) modules = applyLocalsConvention(modules, modulesConfig.localsConvention, cleanId);
|
|
760
|
+
modulesConfig?.getJSON?.(cleanId, modules, cleanId);
|
|
761
|
+
}
|
|
756
762
|
modulesMap.set(id, modules);
|
|
757
763
|
}
|
|
758
764
|
return {
|
|
@@ -1,15 +1,26 @@
|
|
|
1
|
-
import { n as x, r as createDebug } from "./main-
|
|
2
|
-
import {
|
|
3
|
-
import "./internal-
|
|
1
|
+
import { n as x, r as createDebug } from "./main-CyNcZUzu.js";
|
|
2
|
+
import { g as tryParse, n as normalize$1, p as isGreaterOrEqual } from "./version-CQ98ZBpL-Obdnv4J7.js";
|
|
3
|
+
import { n as NODE_SEA_MIN_VERSION_PARSED, t as NODE_SEA_MIN_VERSION } from "./internal-lhH-5yya.js";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { pipeline } from "node:stream/promises";
|
|
7
7
|
import { Readable } from "node:stream";
|
|
8
8
|
import { createReadStream, createWriteStream } from "node:fs";
|
|
9
|
-
import { chmod, mkdir, rename } from "node:fs/promises";
|
|
9
|
+
import { access, chmod, mkdir, rename, rm } from "node:fs/promises";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
12
|
-
//#region ../../node_modules/.pnpm
|
|
12
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_fb7663f033a892291c41712eea6060f6/node_modules/tsdown/dist/format-DLxyxnif.mjs
|
|
13
|
+
function fsExists(path) {
|
|
14
|
+
return access(path).then(() => true, () => false);
|
|
15
|
+
}
|
|
16
|
+
function fsRemove(path) {
|
|
17
|
+
return rm(path, {
|
|
18
|
+
force: true,
|
|
19
|
+
recursive: true
|
|
20
|
+
}).catch(() => {});
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region ../../node_modules/.pnpm/@tsdown+exe@0.23.0_tsdown@0.23.0/node_modules/@tsdown/exe/dist/index.mjs
|
|
13
24
|
function getCacheDir() {
|
|
14
25
|
const home = os.homedir();
|
|
15
26
|
if (process.platform === "win32") {
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/comparison-DenM3wCn.js
|
|
2
|
+
const LETTER_DASH_NUMBER = "[a-zA-Z0-9-]";
|
|
3
|
+
const NUMERIC_IDENTIFIER = String.raw`0|[1-9]\d*`;
|
|
4
|
+
const NUMERIC_IDENTIFIER_LOOSE = String.raw`\d+`;
|
|
5
|
+
const NON_NUMERIC_IDENTIFIER = String.raw`\d*[a-zA-Z-]${LETTER_DASH_NUMBER}*`;
|
|
6
|
+
const MAIN_VERSION = String.raw`(${NUMERIC_IDENTIFIER})\.(${NUMERIC_IDENTIFIER})\.(${NUMERIC_IDENTIFIER})`;
|
|
7
|
+
const MAIN_VERSION_LOOSE = String.raw`(${NUMERIC_IDENTIFIER_LOOSE})\.(${NUMERIC_IDENTIFIER_LOOSE})\.(${NUMERIC_IDENTIFIER_LOOSE})`;
|
|
8
|
+
const PRERELEASE_IDENTIFIER = `(?:${NON_NUMERIC_IDENTIFIER}|${NUMERIC_IDENTIFIER})`;
|
|
9
|
+
const PRERELEASE_IDENTIFIER_LOOSE = `(?:${NON_NUMERIC_IDENTIFIER}|${NUMERIC_IDENTIFIER_LOOSE})`;
|
|
10
|
+
const PRERELEASE = String.raw`(?:-(${PRERELEASE_IDENTIFIER}(?:\.${PRERELEASE_IDENTIFIER})*))`;
|
|
11
|
+
const PRERELEASE_LOOSE = String.raw`(?:-?(${PRERELEASE_IDENTIFIER_LOOSE}(?:\.${PRERELEASE_IDENTIFIER_LOOSE})*))`;
|
|
12
|
+
const BUILD_IDENTIFIER = `${LETTER_DASH_NUMBER}+`;
|
|
13
|
+
const BUILD = String.raw`(?:\+(${BUILD_IDENTIFIER}(?:\.${BUILD_IDENTIFIER})*))`;
|
|
14
|
+
const FULL_PLAIN = `v?${MAIN_VERSION}${PRERELEASE}?${BUILD}?`;
|
|
15
|
+
const LOOSE_PLAIN = String.raw`[v=\s]*${MAIN_VERSION_LOOSE}${PRERELEASE_LOOSE}?${BUILD}?`;
|
|
16
|
+
const GREATER_LESS_THAN = "((?:<|>)?=?)";
|
|
17
|
+
const XRANGE_IDENTIFIER = String.raw`${NUMERIC_IDENTIFIER}|x|X|\*`;
|
|
18
|
+
const XRANGE_IDENTIFIER_LOOSE = String.raw`${NUMERIC_IDENTIFIER_LOOSE}|x|X|\*`;
|
|
19
|
+
const XRANGE_PLAIN = String.raw`[v=\s]*(${XRANGE_IDENTIFIER})(?:\.(${XRANGE_IDENTIFIER})(?:\.(${XRANGE_IDENTIFIER})(?:${PRERELEASE})?${BUILD}?)?)?`;
|
|
20
|
+
const XRANGE_PLAIN_LOOSE = String.raw`[v=\s]*(${XRANGE_IDENTIFIER_LOOSE})(?:\.(${XRANGE_IDENTIFIER_LOOSE})(?:\.(${XRANGE_IDENTIFIER_LOOSE})(?:${PRERELEASE_LOOSE})?${BUILD}?)?)?`;
|
|
21
|
+
const LONE_TILDE = "(?:~>?)";
|
|
22
|
+
const LONE_CARET = String.raw`(?:\^)`;
|
|
23
|
+
const COERCE_PLAIN = String.raw`(^|[^\d])(\d{1,${16}})(?:\.(\d{1,${16}}))?(?:\.(\d{1,${16}}))?`;
|
|
24
|
+
const COERCE = String.raw`${COERCE_PLAIN}(?:$|[^\d])`;
|
|
25
|
+
const COERCE_FULL = String.raw`${COERCE_PLAIN}(?:${PRERELEASE})?(?:${BUILD})?(?:$|[^\d])`;
|
|
26
|
+
function makeSafeRegexSource(source) {
|
|
27
|
+
const replacements = [
|
|
28
|
+
[String.raw`\s`, 1],
|
|
29
|
+
[String.raw`\d`, 256],
|
|
30
|
+
[LETTER_DASH_NUMBER, 250]
|
|
31
|
+
];
|
|
32
|
+
for (const [token, maximum] of replacements) source = source.split(`${token}*`).join(`${token}{0,${maximum}}`).split(`${token}+`).join(`${token}{1,${maximum}}`);
|
|
33
|
+
return source;
|
|
34
|
+
}
|
|
35
|
+
function safeRegex(source, flags) {
|
|
36
|
+
return new RegExp(makeSafeRegexSource(source), flags);
|
|
37
|
+
}
|
|
38
|
+
const FULL = safeRegex(`^${FULL_PLAIN}$`);
|
|
39
|
+
const LOOSE = safeRegex(`^${LOOSE_PLAIN}$`);
|
|
40
|
+
const NUMERIC$1 = /^\d+$/;
|
|
41
|
+
function formatComparableVersion(version) {
|
|
42
|
+
const base = `${version.major}.${version.minor}.${version.patch}`;
|
|
43
|
+
return version.prerelease?.length ? `${base}-${version.prerelease.join(".")}` : base;
|
|
44
|
+
}
|
|
45
|
+
function parse(version, options = {}) {
|
|
46
|
+
if (typeof version !== "string") return version;
|
|
47
|
+
if (version.length > 256) throw new TypeError(`Version exceeds the maximum length of 256 characters`);
|
|
48
|
+
const match = version.trim().match(options.loose ? LOOSE : FULL);
|
|
49
|
+
if (!match) throw new TypeError(`Invalid version syntax: ${version}`);
|
|
50
|
+
const major = Number(match[1]);
|
|
51
|
+
const minor = Number(match[2]);
|
|
52
|
+
const patch = Number(match[3]);
|
|
53
|
+
if (major > Number.MAX_SAFE_INTEGER || major < 0) throw new TypeError(`Invalid major version: ${match[1]}`);
|
|
54
|
+
if (minor > Number.MAX_SAFE_INTEGER || minor < 0) throw new TypeError(`Invalid minor version: ${match[2]}`);
|
|
55
|
+
if (patch > Number.MAX_SAFE_INTEGER || patch < 0) throw new TypeError(`Invalid patch version: ${match[3]}`);
|
|
56
|
+
const prerelease = match[4] ? match[4].split(".").map((identifier) => {
|
|
57
|
+
if (NUMERIC$1.test(identifier)) {
|
|
58
|
+
const numeric = Number(identifier);
|
|
59
|
+
if (numeric >= 0 && numeric < Number.MAX_SAFE_INTEGER) return numeric;
|
|
60
|
+
}
|
|
61
|
+
return identifier;
|
|
62
|
+
}) : void 0;
|
|
63
|
+
return {
|
|
64
|
+
build: match[5]?.split("."),
|
|
65
|
+
major,
|
|
66
|
+
minor,
|
|
67
|
+
patch,
|
|
68
|
+
prerelease
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function tryParse(version, options = {}) {
|
|
72
|
+
try {
|
|
73
|
+
return parse(version, options);
|
|
74
|
+
} catch {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const NUMERIC = /^\d+$/;
|
|
79
|
+
function compareIdentifiers(left, right) {
|
|
80
|
+
if (typeof left === "number" && typeof right === "number") return left === right ? 0 : left < right ? -1 : 1;
|
|
81
|
+
const leftNumeric = NUMERIC.test(String(left));
|
|
82
|
+
const rightNumeric = NUMERIC.test(String(right));
|
|
83
|
+
const normalizedLeft = leftNumeric ? Number(left) : left;
|
|
84
|
+
const normalizedRight = rightNumeric ? Number(right) : right;
|
|
85
|
+
return normalizedLeft === normalizedRight ? 0 : leftNumeric && !rightNumeric ? -1 : rightNumeric && !leftNumeric ? 1 : normalizedLeft < normalizedRight ? -1 : 1;
|
|
86
|
+
}
|
|
87
|
+
function compareMainParsed(left, right) {
|
|
88
|
+
return left.major === right.major ? left.minor === right.minor ? left.patch === right.patch ? 0 : left.patch < right.patch ? -1 : 1 : left.minor < right.minor ? -1 : 1 : left.major < right.major ? -1 : 1;
|
|
89
|
+
}
|
|
90
|
+
function comparePrereleaseParsed(left, right) {
|
|
91
|
+
const leftPrerelease = left.prerelease;
|
|
92
|
+
const rightPrerelease = right.prerelease;
|
|
93
|
+
if (leftPrerelease?.length && !rightPrerelease?.length) return -1;
|
|
94
|
+
if (!leftPrerelease?.length && rightPrerelease?.length) return 1;
|
|
95
|
+
if (!leftPrerelease?.length && !rightPrerelease?.length) return 0;
|
|
96
|
+
for (let index = 0;; index++) {
|
|
97
|
+
const leftIdentifier = leftPrerelease?.[index];
|
|
98
|
+
const rightIdentifier = rightPrerelease?.[index];
|
|
99
|
+
if (leftIdentifier === void 0 && rightIdentifier === void 0) return 0;
|
|
100
|
+
if (rightIdentifier === void 0) return 1;
|
|
101
|
+
if (leftIdentifier === void 0) return -1;
|
|
102
|
+
if (leftIdentifier !== rightIdentifier) return compareIdentifiers(leftIdentifier, rightIdentifier);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function compareParsed(left, right) {
|
|
106
|
+
return compareMainParsed(left, right) || comparePrereleaseParsed(left, right);
|
|
107
|
+
}
|
|
108
|
+
function compare(left, right, options = {}) {
|
|
109
|
+
return compareParsed(parse(left, options), parse(right, options));
|
|
110
|
+
}
|
|
111
|
+
function isGreaterOrEqual(left, right, options = {}) {
|
|
112
|
+
return compare(left, right, options) >= 0;
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region ../../node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/version-CQ98ZBpL.js
|
|
116
|
+
const COERCE_EXACT = safeRegex(COERCE);
|
|
117
|
+
const COERCE_FULL_EXACT = safeRegex(COERCE_FULL);
|
|
118
|
+
safeRegex(`^${PRERELEASE}$`);
|
|
119
|
+
safeRegex(`^${PRERELEASE_LOOSE}$`);
|
|
120
|
+
function normalize(version, options = {}) {
|
|
121
|
+
const parsed = tryParse(version, options);
|
|
122
|
+
return parsed ? formatComparableVersion(parsed) : null;
|
|
123
|
+
}
|
|
124
|
+
function coerce(value, options = {}) {
|
|
125
|
+
if (typeof value === "object") return value;
|
|
126
|
+
const input = typeof value === "number" ? String(value) : value;
|
|
127
|
+
let match = null;
|
|
128
|
+
if (options.rtl) {
|
|
129
|
+
const expression = safeRegex(options.includePrerelease ? COERCE_FULL : COERCE, "g");
|
|
130
|
+
let next;
|
|
131
|
+
while ((next = expression.exec(input)) && (!match || match.index + match[0].length !== input.length)) {
|
|
132
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
133
|
+
expression.lastIndex = next.index + next[1].length + next[2].length;
|
|
134
|
+
}
|
|
135
|
+
} else match = (options.includePrerelease ? COERCE_FULL_EXACT : COERCE_EXACT).exec(input);
|
|
136
|
+
if (!match) return null;
|
|
137
|
+
const major = match[2];
|
|
138
|
+
return tryParse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
139
|
+
}
|
|
140
|
+
//#endregion
|
|
141
|
+
export { GREATER_LESS_THAN as a, LOOSE_PLAIN as c, compareParsed as d, formatComparableVersion as f, tryParse as g, safeRegex as h, FULL_PLAIN as i, XRANGE_PLAIN as l, parse as m, normalize as n, LONE_CARET as o, isGreaterOrEqual as p, BUILD as r, LONE_TILDE as s, coerce as t, XRANGE_PLAIN_LOOSE as u };
|
|
@@ -41,7 +41,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
41
41
|
}) : target, mod));
|
|
42
42
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region \0@oxc-project+runtime@0.
|
|
44
|
+
//#region \0@oxc-project+runtime@0.148.0/helpers/esm/typeof.js
|
|
45
45
|
function _typeof(o) {
|
|
46
46
|
"@babel/helpers - typeof";
|
|
47
47
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -51,7 +51,7 @@ function _typeof(o) {
|
|
|
51
51
|
}, _typeof(o);
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
54
|
-
//#region \0@oxc-project+runtime@0.
|
|
54
|
+
//#region \0@oxc-project+runtime@0.148.0/helpers/esm/toPrimitive.js
|
|
55
55
|
function toPrimitive(t, r) {
|
|
56
56
|
if ("object" != _typeof(t) || !t) return t;
|
|
57
57
|
var e = t[Symbol.toPrimitive];
|
|
@@ -63,13 +63,13 @@ function toPrimitive(t, r) {
|
|
|
63
63
|
return ("string" === r ? String : Number)(t);
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
|
-
//#region \0@oxc-project+runtime@0.
|
|
66
|
+
//#region \0@oxc-project+runtime@0.148.0/helpers/esm/toPropertyKey.js
|
|
67
67
|
function toPropertyKey(t) {
|
|
68
68
|
var i = toPrimitive(t, "string");
|
|
69
69
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
|
-
//#region \0@oxc-project+runtime@0.
|
|
72
|
+
//#region \0@oxc-project+runtime@0.148.0/helpers/esm/defineProperty.js
|
|
73
73
|
function _defineProperty(e, r, t) {
|
|
74
74
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
75
75
|
value: t,
|
|
@@ -287,9 +287,9 @@ var DevRuntime = class {
|
|
|
287
287
|
}
|
|
288
288
|
/**
|
|
289
289
|
* @param {string} id
|
|
290
|
-
* @param {{ exports: any }} exportsHolder
|
|
290
|
+
* @param {{ exports: any }} [exportsHolder]
|
|
291
291
|
*/
|
|
292
|
-
registerModule(id, exportsHolder) {
|
|
292
|
+
registerModule(id, exportsHolder = { exports: {} }) {
|
|
293
293
|
const module = new Module(id);
|
|
294
294
|
module.exportsHolder = exportsHolder;
|
|
295
295
|
this.moduleCache.set(id, module);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@vite/env";
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.148.0/helpers/esm/typeof.js
|
|
3
3
|
function _typeof(o) {
|
|
4
4
|
"@babel/helpers - typeof";
|
|
5
5
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -9,7 +9,7 @@ function _typeof(o) {
|
|
|
9
9
|
}, _typeof(o);
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region \0@oxc-project+runtime@0.
|
|
12
|
+
//#region \0@oxc-project+runtime@0.148.0/helpers/esm/toPrimitive.js
|
|
13
13
|
function toPrimitive(t, r) {
|
|
14
14
|
if ("object" != _typeof(t) || !t) return t;
|
|
15
15
|
var e = t[Symbol.toPrimitive];
|
|
@@ -21,13 +21,13 @@ function toPrimitive(t, r) {
|
|
|
21
21
|
return ("string" === r ? String : Number)(t);
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
|
-
//#region \0@oxc-project+runtime@0.
|
|
24
|
+
//#region \0@oxc-project+runtime@0.148.0/helpers/esm/toPropertyKey.js
|
|
25
25
|
function toPropertyKey(t) {
|
|
26
26
|
var i = toPrimitive(t, "string");
|
|
27
27
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
|
-
//#region \0@oxc-project+runtime@0.
|
|
30
|
+
//#region \0@oxc-project+runtime@0.148.0/helpers/esm/defineProperty.js
|
|
31
31
|
function _defineProperty(e, r, t) {
|
|
32
32
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
33
33
|
value: t,
|
|
@@ -4552,8 +4552,8 @@ var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4552
4552
|
exports.isPseudoElement = isPseudoElement;
|
|
4553
4553
|
exports.isUniversal = exports.isTag = exports.isString = exports.isSelector = exports.isRoot = void 0;
|
|
4554
4554
|
var _types = require_types();
|
|
4555
|
-
var _IS_TYPE;
|
|
4556
|
-
var IS_TYPE = (_IS_TYPE
|
|
4555
|
+
var _IS_TYPE = {};
|
|
4556
|
+
var IS_TYPE = (_IS_TYPE[_types.ATTRIBUTE] = true, _IS_TYPE[_types.CLASS] = true, _IS_TYPE[_types.COMBINATOR] = true, _IS_TYPE[_types.COMMENT] = true, _IS_TYPE[_types.ID] = true, _IS_TYPE[_types.NESTING] = true, _IS_TYPE[_types.PSEUDO] = true, _IS_TYPE[_types.ROOT] = true, _IS_TYPE[_types.SELECTOR] = true, _IS_TYPE[_types.STRING] = true, _IS_TYPE[_types.TAG] = true, _IS_TYPE[_types.UNIVERSAL] = true, _IS_TYPE);
|
|
4557
4557
|
function isNode(node) {
|
|
4558
4558
|
return typeof node === "object" && IS_TYPE[node.type];
|
|
4559
4559
|
}
|
|
@@ -233,8 +233,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
233
233
|
//#region ../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/walk.js
|
|
234
234
|
var require_walk = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
235
235
|
module.exports = function walk(nodes, cb, bubble) {
|
|
236
|
-
var i, max, node, result;
|
|
237
|
-
for (
|
|
236
|
+
var i = 0, max = nodes.length, node, result;
|
|
237
|
+
for (; i < max; i += 1) {
|
|
238
238
|
node = nodes[i];
|
|
239
239
|
if (!bubble) result = cb(node, i, nodes);
|
|
240
240
|
if (result !== false && node.type === "function" && Array.isArray(node.nodes)) walk(node.nodes, cb, bubble);
|
|
@@ -248,7 +248,7 @@ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
248
248
|
module.exports.createColors = createColors;
|
|
249
249
|
}));
|
|
250
250
|
//#endregion
|
|
251
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
251
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/constants.js
|
|
252
252
|
var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
253
253
|
const WIN_SLASH = "\\\\/";
|
|
254
254
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
@@ -417,7 +417,7 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
417
417
|
};
|
|
418
418
|
}));
|
|
419
419
|
//#endregion
|
|
420
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
420
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/utils.js
|
|
421
421
|
var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
422
422
|
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$4();
|
|
423
423
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -465,7 +465,7 @@ var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
465
465
|
};
|
|
466
466
|
}));
|
|
467
467
|
//#endregion
|
|
468
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
468
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/scan.js
|
|
469
469
|
var require_scan$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
470
470
|
const utils = require_utils$2();
|
|
471
471
|
const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants$4();
|
|
@@ -494,7 +494,7 @@ var require_scan$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
494
494
|
const scan = (input, options) => {
|
|
495
495
|
const opts = options || {};
|
|
496
496
|
const length = input.length - 1;
|
|
497
|
-
const scanToEnd = opts.parts === true || opts.scanToEnd === true;
|
|
497
|
+
const scanToEnd = opts.parts === true || opts.tokens === true || opts.scanToEnd === true;
|
|
498
498
|
const slashes = [];
|
|
499
499
|
const tokens = [];
|
|
500
500
|
const parts = [];
|
|
@@ -597,14 +597,18 @@ var require_scan$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
597
597
|
finished = true;
|
|
598
598
|
if (code === CHAR_EXCLAMATION_MARK && index === start) negatedExtglob = true;
|
|
599
599
|
if (scanToEnd === true) {
|
|
600
|
+
let parens = 0;
|
|
600
601
|
while (eos() !== true && (code = advance())) {
|
|
601
602
|
if (code === CHAR_BACKWARD_SLASH) {
|
|
602
603
|
backslashes = token.backslashes = true;
|
|
603
|
-
|
|
604
|
+
advance();
|
|
604
605
|
continue;
|
|
605
606
|
}
|
|
606
|
-
if (code ===
|
|
607
|
-
|
|
607
|
+
if (code === CHAR_LEFT_PARENTHESES) {
|
|
608
|
+
parens++;
|
|
609
|
+
continue;
|
|
610
|
+
}
|
|
611
|
+
if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
|
|
608
612
|
finished = true;
|
|
609
613
|
break;
|
|
610
614
|
}
|
|
@@ -652,13 +656,18 @@ var require_scan$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
652
656
|
if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
|
|
653
657
|
isGlob = token.isGlob = true;
|
|
654
658
|
if (scanToEnd === true) {
|
|
659
|
+
let parens = 1;
|
|
655
660
|
while (eos() !== true && (code = advance())) {
|
|
656
|
-
if (code ===
|
|
661
|
+
if (code === CHAR_BACKWARD_SLASH) {
|
|
657
662
|
backslashes = token.backslashes = true;
|
|
658
|
-
|
|
663
|
+
advance();
|
|
659
664
|
continue;
|
|
660
665
|
}
|
|
661
|
-
if (code ===
|
|
666
|
+
if (code === CHAR_LEFT_PARENTHESES) {
|
|
667
|
+
parens++;
|
|
668
|
+
continue;
|
|
669
|
+
}
|
|
670
|
+
if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
|
|
662
671
|
finished = true;
|
|
663
672
|
break;
|
|
664
673
|
}
|
|
@@ -721,7 +730,7 @@ var require_scan$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
721
730
|
if (opts.parts === true || opts.tokens === true) {
|
|
722
731
|
let prevIndex;
|
|
723
732
|
for (let idx = 0; idx < slashes.length; idx++) {
|
|
724
|
-
const n = prevIndex ? prevIndex + 1 : start;
|
|
733
|
+
const n = prevIndex !== void 0 ? prevIndex + 1 : start;
|
|
725
734
|
const i = slashes[idx];
|
|
726
735
|
const value = input.slice(n, i);
|
|
727
736
|
if (opts.tokens) {
|
|
@@ -732,18 +741,19 @@ var require_scan$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
732
741
|
depth(tokens[idx]);
|
|
733
742
|
state.maxDepth += tokens[idx].depth;
|
|
734
743
|
}
|
|
735
|
-
if (
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
if (prevIndex && prevIndex + 1 < input.length) {
|
|
739
|
-
const value = input.slice(prevIndex + 1);
|
|
740
|
-
parts.push(value);
|
|
741
|
-
if (opts.tokens) {
|
|
742
|
-
tokens[tokens.length - 1].value = value;
|
|
743
|
-
depth(tokens[tokens.length - 1]);
|
|
744
|
-
state.maxDepth += tokens[tokens.length - 1].depth;
|
|
744
|
+
if (i >= start) {
|
|
745
|
+
parts.push(value);
|
|
746
|
+
prevIndex = i;
|
|
745
747
|
}
|
|
746
748
|
}
|
|
749
|
+
const n = prevIndex !== void 0 ? prevIndex + 1 : start;
|
|
750
|
+
const value = input.slice(n);
|
|
751
|
+
parts.push(value);
|
|
752
|
+
if (opts.tokens && prevIndex && prevIndex + 1 < input.length) {
|
|
753
|
+
tokens[tokens.length - 1].value = value;
|
|
754
|
+
depth(tokens[tokens.length - 1]);
|
|
755
|
+
state.maxDepth += tokens[tokens.length - 1].depth;
|
|
756
|
+
}
|
|
747
757
|
state.slashes = slashes;
|
|
748
758
|
state.parts = parts;
|
|
749
759
|
}
|
|
@@ -752,7 +762,7 @@ var require_scan$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
752
762
|
module.exports = scan;
|
|
753
763
|
}));
|
|
754
764
|
//#endregion
|
|
755
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
765
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/parse.js
|
|
756
766
|
var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
757
767
|
const constants = require_constants$4();
|
|
758
768
|
const utils = require_utils$2();
|
|
@@ -1650,6 +1660,7 @@ var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1650
1660
|
rest = rest.slice(3);
|
|
1651
1661
|
consume("/**", 3);
|
|
1652
1662
|
}
|
|
1663
|
+
const isEnd = eos() || state.parens > 0 && rest === ")".repeat(state.parens) && !extglobs.some((extglob) => extglob.type === "negate");
|
|
1653
1664
|
if (prior.type === "bos" && eos()) {
|
|
1654
1665
|
prev.type = "globstar";
|
|
1655
1666
|
prev.value += value;
|
|
@@ -1659,7 +1670,7 @@ var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1659
1670
|
consume(value);
|
|
1660
1671
|
continue;
|
|
1661
1672
|
}
|
|
1662
|
-
if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar &&
|
|
1673
|
+
if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && isEnd) {
|
|
1663
1674
|
state.output = state.output.slice(0, -(prior.output + prev.output).length);
|
|
1664
1675
|
prior.output = `(?:${prior.output}`;
|
|
1665
1676
|
prev.type = "globstar";
|
|
@@ -1824,7 +1835,7 @@ var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1824
1835
|
module.exports = parse;
|
|
1825
1836
|
}));
|
|
1826
1837
|
//#endregion
|
|
1827
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
1838
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/picomatch.js
|
|
1828
1839
|
var require_picomatch$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1829
1840
|
const scan = require_scan$1();
|
|
1830
1841
|
const parse = require_parse$4();
|
|
@@ -2133,7 +2144,7 @@ var require_picomatch$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2133
2144
|
module.exports = picomatch;
|
|
2134
2145
|
}));
|
|
2135
2146
|
//#endregion
|
|
2136
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
2147
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/index.js
|
|
2137
2148
|
var require_picomatch$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2138
2149
|
const pico = require_picomatch$3();
|
|
2139
2150
|
const utils = require_utils$2();
|
|
@@ -2298,7 +2309,7 @@ function freshImport(specifier) {
|
|
|
2298
2309
|
return importer?.collect(specifier);
|
|
2299
2310
|
}
|
|
2300
2311
|
//#endregion
|
|
2301
|
-
//#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.
|
|
2312
|
+
//#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.7/node_modules/fdir/dist/index.mjs
|
|
2302
2313
|
var __require = /* @__PURE__ */ createRequire$1(import.meta.url);
|
|
2303
2314
|
function cleanPath(path) {
|
|
2304
2315
|
let normalized = normalize$1(path);
|
|
@@ -4404,7 +4415,7 @@ var node_default = createDebug;
|
|
|
4404
4415
|
createDebug.default = createDebug;
|
|
4405
4416
|
createDebug.debug = createDebug;
|
|
4406
4417
|
//#endregion
|
|
4407
|
-
//#region ../../node_modules/.pnpm/@rollup+pluginutils@5.4.0_rollup@4.
|
|
4418
|
+
//#region ../../node_modules/.pnpm/@rollup+pluginutils@5.4.0_rollup@4.63.1/node_modules/@rollup/pluginutils/dist/es/index.js
|
|
4408
4419
|
function isArray(arg) {
|
|
4409
4420
|
return Array.isArray(arg);
|
|
4410
4421
|
}
|
|
@@ -8000,7 +8011,7 @@ var MagicString = class MagicString {
|
|
|
8000
8011
|
}
|
|
8001
8012
|
};
|
|
8002
8013
|
//#endregion
|
|
8003
|
-
//#region ../../node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.
|
|
8014
|
+
//#region ../../node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.63.1/node_modules/@rollup/plugin-alias/dist/index.js
|
|
8004
8015
|
function matches$1(pattern, importee) {
|
|
8005
8016
|
if (pattern instanceof RegExp) return pattern.test(importee);
|
|
8006
8017
|
if (importee.length < pattern.length) return false;
|
|
@@ -8986,8 +8997,8 @@ var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8986
8997
|
* @api public
|
|
8987
8998
|
*/
|
|
8988
8999
|
function enabled(name) {
|
|
8989
|
-
var i, len;
|
|
8990
|
-
for (
|
|
9000
|
+
var i = 0, len = exports.skips.length;
|
|
9001
|
+
for (; i < len; i++) if (exports.skips[i].test(name)) return false;
|
|
8991
9002
|
for (i = 0, len = exports.names.length; i < len; i++) if (exports.names[i].test(name)) return true;
|
|
8992
9003
|
return false;
|
|
8993
9004
|
}
|
|
@@ -34643,7 +34654,7 @@ function getQueryDelimiterIndex(rawUrl) {
|
|
|
34643
34654
|
return -1;
|
|
34644
34655
|
}
|
|
34645
34656
|
//#endregion
|
|
34646
|
-
//#region ../../node_modules/.pnpm/@rollup+plugin-dynamic-import-vars@2.1.4_rollup@4.
|
|
34657
|
+
//#region ../../node_modules/.pnpm/@rollup+plugin-dynamic-import-vars@2.1.4_rollup@4.63.1/node_modules/@rollup/plugin-dynamic-import-vars/dist/es/index.js
|
|
34647
34658
|
var VariableDynamicImportError = class extends Error {};
|
|
34648
34659
|
const example = "For example: import(`./foo/${bar}.js`).";
|
|
34649
34660
|
function sanitizeString(str) {
|
|
@@ -54,7 +54,7 @@ const resolve = function(...arguments_) {
|
|
|
54
54
|
let resolvedPath = "", resolvedAbsolute = !1;
|
|
55
55
|
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
56
56
|
let path = index >= 0 ? arguments_[index] : cwd();
|
|
57
|
-
|
|
57
|
+
path && path.length !== 0 && (resolvedPath = `${path}/${resolvedPath}`, resolvedAbsolute = isAbsolute(path));
|
|
58
58
|
}
|
|
59
59
|
return resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
|
|
60
60
|
};
|
|
@@ -760,7 +760,7 @@ var Queue = class {
|
|
|
760
760
|
function createHMRHandlerForRunner(runner) {
|
|
761
761
|
return createHMRHandler(async (payload) => {
|
|
762
762
|
let hmrClient = runner.hmrClient;
|
|
763
|
-
if (
|
|
763
|
+
if (hmrClient && !runner.isClosed()) switch (payload.type) {
|
|
764
764
|
case "connected":
|
|
765
765
|
hmrClient.logger.debug("connected.");
|
|
766
766
|
break;
|
|
@@ -1163,7 +1163,7 @@ var ModuleRunner = class {
|
|
|
1163
1163
|
visited.add(mod.id);
|
|
1164
1164
|
for (let importedModuleId of mod.imports) {
|
|
1165
1165
|
let importedModule = this.evaluatedModules.getModuleById(importedModuleId);
|
|
1166
|
-
if (
|
|
1166
|
+
if (importedModule?.promise && !importedModule.evaluated && (callstack.includes(importedModuleId) || this.isCircularRequest(importedModule, callstack, visited))) return !0;
|
|
1167
1167
|
}
|
|
1168
1168
|
return !1;
|
|
1169
1169
|
}
|