vite 7.0.0-beta.2 → 7.0.0
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/client/client.mjs +8 -8
- package/dist/node/chunks/{dep-B_m28uIY.js → dep-BDIuIvL4.js} +1 -1
- package/dist/node/chunks/{dep-C5h9brB_.js → dep-BrEuKyO0.js} +1 -1
- package/dist/node/chunks/{dep-Bkc4tc5S.js → dep-Bsx9IwL8.js} +86 -97
- package/dist/node/chunks/{dep-BYhaRSbV.js → dep-DcjhO6Jt.js} +65 -30
- package/dist/node/chunks/{dep-CZ6VYVb7.js → dep-DnkJBLYF.js} +1 -1
- package/dist/node/chunks/{dep-8cccGkwy.js → dep-Do-w1DD4.js} +39 -39
- package/dist/node/chunks/{dep-DZ1Lk4oF.js → dep-pyXEOwQv.js} +1 -1
- package/dist/node/cli.js +5 -5
- package/dist/node/index.d.ts +27 -234
- package/dist/node/index.js +1 -1
- package/dist/node/module-runner.d.ts +2 -1
- package/dist/node/module-runner.js +7 -15
- package/package.json +8 -8
- package/types/internal/terserOptions.d.ts +11 -0
@@ -1779,7 +1779,7 @@ function walk$2(ast, { enter, leave }) {
|
|
1779
1779
|
}
|
1780
1780
|
|
1781
1781
|
//#endregion
|
1782
|
-
//#region ../../node_modules/.pnpm/@rollup+pluginutils@5.
|
1782
|
+
//#region ../../node_modules/.pnpm/@rollup+pluginutils@5.2.0_rollup@4.40.1/node_modules/@rollup/pluginutils/dist/es/index.js
|
1783
1783
|
const extractors = {
|
1784
1784
|
ArrayPattern(names, param) {
|
1785
1785
|
for (const element of param.elements) if (element) extractors[element.type](names, element);
|
@@ -2025,7 +2025,7 @@ let pnp;
|
|
2025
2025
|
if (process.versions.pnp) try {
|
2026
2026
|
pnp = createRequire(
|
2027
2027
|
/** #__KEEP__ */
|
2028
|
-
|
2028
|
+
import.meta.url
|
2029
2029
|
)("pnpapi");
|
2030
2030
|
} catch {}
|
2031
2031
|
function invalidatePackageData(packageCache, pkgPath) {
|
@@ -2274,9 +2274,9 @@ function createIsBuiltin(builtins$1) {
|
|
2274
2274
|
}
|
2275
2275
|
const nodeLikeBuiltins = [
|
2276
2276
|
...nodeBuiltins,
|
2277
|
-
new RegExp(`^${NODE_BUILTIN_NAMESPACE}`),
|
2278
|
-
new RegExp(`^${NPM_BUILTIN_NAMESPACE}`),
|
2279
|
-
new RegExp(`^${BUN_BUILTIN_NAMESPACE}`)
|
2277
|
+
/* @__PURE__ */ new RegExp(`^${NODE_BUILTIN_NAMESPACE}`),
|
2278
|
+
/* @__PURE__ */ new RegExp(`^${NPM_BUILTIN_NAMESPACE}`),
|
2279
|
+
/* @__PURE__ */ new RegExp(`^${BUN_BUILTIN_NAMESPACE}`)
|
2280
2280
|
];
|
2281
2281
|
function isNodeLikeBuiltin(id) {
|
2282
2282
|
return isBuiltin(nodeLikeBuiltins, id);
|
@@ -2299,11 +2299,11 @@ const bareImportRE = /^(?![a-zA-Z]:)[\w@](?!.*:\/\/)/;
|
|
2299
2299
|
const deepImportRE = /^([^@][^/]*)\/|^(@[^/]+\/[^/]+)\//;
|
2300
2300
|
const _require$1 = createRequire(
|
2301
2301
|
/** #__KEEP__ */
|
2302
|
-
|
2302
|
+
import.meta.url
|
2303
2303
|
);
|
2304
2304
|
const _dirname = path.dirname(fileURLToPath(
|
2305
2305
|
/** #__KEEP__ */
|
2306
|
-
|
2306
|
+
import.meta.url
|
2307
2307
|
));
|
2308
2308
|
const rollupVersion = resolvePackageData("rollup", _dirname, true)?.data.version ?? "";
|
2309
2309
|
const filter = process.env.VITE_DEBUG_FILTER;
|
@@ -2385,7 +2385,7 @@ const internalPrefixes = [
|
|
2385
2385
|
CLIENT_PUBLIC_PATH,
|
2386
2386
|
ENV_PUBLIC_PATH
|
2387
2387
|
];
|
2388
|
-
const InternalPrefixRE = new RegExp(`^(?:${internalPrefixes.join("|")})`);
|
2388
|
+
const InternalPrefixRE = /* @__PURE__ */ new RegExp(`^(?:${internalPrefixes.join("|")})`);
|
2389
2389
|
const trailingSeparatorRE = /[?&]$/;
|
2390
2390
|
const isImportRequest = (url$6) => importQueryRE.test(url$6);
|
2391
2391
|
const isInternalRequest = (url$6) => InternalPrefixRE.test(url$6);
|
@@ -2488,21 +2488,10 @@ function posToNumber(source, pos) {
|
|
2488
2488
|
function numberToPos(source, offset$1) {
|
2489
2489
|
if (typeof offset$1 !== "number") return offset$1;
|
2490
2490
|
if (offset$1 > source.length) throw new Error(`offset is longer than source length! offset ${offset$1} > length ${source.length}`);
|
2491
|
-
const lines = source.split(splitRE);
|
2492
|
-
let counted = 0;
|
2493
|
-
let line = 0;
|
2494
|
-
let column = 0;
|
2495
|
-
for (; line < lines.length; line++) {
|
2496
|
-
const lineLength = lines[line].length + 1;
|
2497
|
-
if (counted + lineLength >= offset$1) {
|
2498
|
-
column = offset$1 - counted + 1;
|
2499
|
-
break;
|
2500
|
-
}
|
2501
|
-
counted += lineLength;
|
2502
|
-
}
|
2491
|
+
const lines = source.slice(0, offset$1).split(splitRE);
|
2503
2492
|
return {
|
2504
|
-
line:
|
2505
|
-
column
|
2493
|
+
line: lines.length,
|
2494
|
+
column: lines[lines.length - 1].length
|
2506
2495
|
};
|
2507
2496
|
}
|
2508
2497
|
function generateCodeFrame(source, start = 0, end) {
|
@@ -2598,7 +2587,7 @@ async function recursiveReaddir(dir) {
|
|
2598
2587
|
throw e$1;
|
2599
2588
|
}
|
2600
2589
|
if (dirents.some((dirent) => dirent.isSymbolicLink())) {
|
2601
|
-
const err$2 = new Error("Symbolic links are not supported in recursiveReaddir");
|
2590
|
+
const err$2 = /* @__PURE__ */ new Error("Symbolic links are not supported in recursiveReaddir");
|
2602
2591
|
err$2.code = ERR_SYMLINK_IN_RECURSIVE_READDIR;
|
2603
2592
|
throw err$2;
|
2604
2593
|
}
|
@@ -2849,7 +2838,7 @@ function getHash(text, length = 8) {
|
|
2849
2838
|
const requireResolveFromRootWithFallback = (root, id) => {
|
2850
2839
|
const found$1 = resolvePackageData(id, root) || resolvePackageData(id, _dirname);
|
2851
2840
|
if (!found$1) {
|
2852
|
-
const error$1 = new Error(`${JSON.stringify(id)} not found.`);
|
2841
|
+
const error$1 = /* @__PURE__ */ new Error(`${JSON.stringify(id)} not found.`);
|
2853
2842
|
error$1.code = "MODULE_NOT_FOUND";
|
2854
2843
|
throw error$1;
|
2855
2844
|
}
|
@@ -4032,7 +4021,7 @@ var MagicString = class MagicString {
|
|
4032
4021
|
return this.trimStart(charType).trimEnd(charType);
|
4033
4022
|
}
|
4034
4023
|
trimEndAborted(charType) {
|
4035
|
-
const rx = new RegExp((charType || "\\s") + "+$");
|
4024
|
+
const rx = /* @__PURE__ */ new RegExp((charType || "\\s") + "+$");
|
4036
4025
|
this.outro = this.outro.replace(rx, "");
|
4037
4026
|
if (this.outro.length) return true;
|
4038
4027
|
let chunk = this.lastChunk;
|
@@ -4055,7 +4044,7 @@ var MagicString = class MagicString {
|
|
4055
4044
|
return this;
|
4056
4045
|
}
|
4057
4046
|
trimStartAborted(charType) {
|
4058
|
-
const rx = new RegExp("^" + (charType || "\\s") + "+");
|
4047
|
+
const rx = /* @__PURE__ */ new RegExp("^" + (charType || "\\s") + "+");
|
4059
4048
|
this.intro = this.intro.replace(rx, "");
|
4060
4049
|
if (this.intro.length) return true;
|
4061
4050
|
let chunk = this.firstChunk;
|
@@ -4171,10 +4160,10 @@ var require_is_reference = __commonJS({ "../../node_modules/.pnpm/is-reference@1
|
|
4171
4160
|
} });
|
4172
4161
|
|
4173
4162
|
//#endregion
|
4174
|
-
//#region ../../node_modules/.pnpm/@rollup+plugin-commonjs@28.0.
|
4163
|
+
//#region ../../node_modules/.pnpm/@rollup+plugin-commonjs@28.0.6_rollup@4.40.1/node_modules/@rollup/plugin-commonjs/dist/es/index.js
|
4175
4164
|
var import_commondir = __toESM(require_commondir(), 1);
|
4176
4165
|
var import_is_reference = __toESM(require_is_reference(), 1);
|
4177
|
-
var version$1 = "28.0.
|
4166
|
+
var version$1 = "28.0.6";
|
4178
4167
|
var peerDependencies = { rollup: "^2.68.0||^3.0.0||^4.0.0" };
|
4179
4168
|
function tryParse(parse$16, code, id) {
|
4180
4169
|
try {
|
@@ -4634,7 +4623,7 @@ function getRequireResolver(extensions$1, detectCyclesAndConditional, currentlyR
|
|
4634
4623
|
}
|
4635
4624
|
const parentRequireSet = new Set((parentRequires || []).map(({ resolved: { id } }) => id));
|
4636
4625
|
return (await Promise.all(Object.keys(resolvedSources).map((source) => resolvedSources[source]).filter(({ id, external }) => !(external || parentRequireSet.has(id))).map(async (resolved) => {
|
4637
|
-
if (isWrappedId(resolved.id, ES_IMPORT_SUFFIX)) return await getTypeForImportedModule((await this.load(
|
4626
|
+
if (isWrappedId(resolved.id, ES_IMPORT_SUFFIX)) return await getTypeForImportedModule((await this.load(resolved)).meta.commonjs.resolved, this.load) !== IS_WRAPPED_COMMONJS;
|
4638
4627
|
return await getTypeForImportedModule(resolved, this.load) === IS_WRAPPED_COMMONJS;
|
4639
4628
|
}))).some((shouldTransform) => shouldTransform);
|
4640
4629
|
},
|
@@ -6876,7 +6865,7 @@ var Worker$1 = class {
|
|
6876
6865
|
}
|
6877
6866
|
stop() {
|
6878
6867
|
this._pool.forEach((w$1) => w$1.unref());
|
6879
|
-
this._queue.forEach(([, reject]) => reject(new Error("Main worker pool stopped before a worker was available.")));
|
6868
|
+
this._queue.forEach(([, reject]) => reject(/* @__PURE__ */ new Error("Main worker pool stopped before a worker was available.")));
|
6880
6869
|
this._pool = [];
|
6881
6870
|
this._idlePool = [];
|
6882
6871
|
this._queue = [];
|
@@ -6923,7 +6912,7 @@ var Worker$1 = class {
|
|
6923
6912
|
const i$1 = this._pool.indexOf(worker);
|
6924
6913
|
if (i$1 > -1) this._pool.splice(i$1, 1);
|
6925
6914
|
if (code !== 0 && worker.currentReject) {
|
6926
|
-
worker.currentReject(new Error(`Worker stopped with non-0 exit code ${code}`));
|
6915
|
+
worker.currentReject(/* @__PURE__ */ new Error(`Worker stopped with non-0 exit code ${code}`));
|
6927
6916
|
worker.currentReject = null;
|
6928
6917
|
parentFunctionResponder.close();
|
6929
6918
|
}
|
@@ -7166,7 +7155,7 @@ const loadTerserPath = (root) => {
|
|
7166
7155
|
} catch (e$1) {
|
7167
7156
|
if (e$1.code === "MODULE_NOT_FOUND") throw new Error("terser not found. Since Vite v3, terser has become an optional dependency. You need to install it.");
|
7168
7157
|
else {
|
7169
|
-
const message = new Error(`terser failed to load:\n${e$1.message}`);
|
7158
|
+
const message = /* @__PURE__ */ new Error(`terser failed to load:\n${e$1.message}`);
|
7170
7159
|
message.stack = e$1.stack + "\n" + message.stack;
|
7171
7160
|
throw message;
|
7172
7161
|
}
|
@@ -8085,7 +8074,7 @@ function parse(E$1, g = "@") {
|
|
8085
8074
|
const I = E$1.length + 1, w$1 = (C.__heap_base.value || C.__heap_base) + 4 * I - C.memory.buffer.byteLength;
|
8086
8075
|
w$1 > 0 && C.memory.grow(Math.ceil(w$1 / 65536));
|
8087
8076
|
const K = C.sa(I - 1);
|
8088
|
-
if ((A ? B : Q)(E$1, new Uint16Array(C.memory.buffer, K, I)), !C.parse()) throw Object.assign(new Error(`Parse error ${g}:${E$1.slice(0, C.e()).split("\n").length}:${C.e() - E$1.lastIndexOf("\n", C.e() - 1)}`), { idx: C.e() });
|
8077
|
+
if ((A ? B : Q)(E$1, new Uint16Array(C.memory.buffer, K, I)), !C.parse()) throw Object.assign(/* @__PURE__ */ new Error(`Parse error ${g}:${E$1.slice(0, C.e()).split("\n").length}:${C.e() - E$1.lastIndexOf("\n", C.e() - 1)}`), { idx: C.e() });
|
8089
8078
|
const o$1 = [], D = [];
|
8090
8079
|
for (; C.ri();) {
|
8091
8080
|
const A$1 = C.is(), Q$1 = C.ie(), B$1 = C.it(), g$1 = C.ai(), I$1 = C.id(), w$2 = C.ss(), K$1 = C.se();
|
@@ -8718,8 +8707,8 @@ var require_src$1 = __commonJS({ "../../node_modules/.pnpm/lilconfig@3.1.3/node_
|
|
8718
8707
|
} });
|
8719
8708
|
|
8720
8709
|
//#endregion
|
8721
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.
|
8722
|
-
var require_req = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.
|
8710
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/req.js
|
8711
|
+
var require_req = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/req.js"(exports, module) {
|
8723
8712
|
const { createRequire: createRequire$2 } = require("node:module");
|
8724
8713
|
const { fileURLToPath: fileURLToPath$1, pathToFileURL: pathToFileURL$1 } = require("node:url");
|
8725
8714
|
const TS_EXT_RE = /\.[mc]?ts$/;
|
@@ -8761,8 +8750,8 @@ var require_req = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0
|
|
8761
8750
|
} });
|
8762
8751
|
|
8763
8752
|
//#endregion
|
8764
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.
|
8765
|
-
var require_options = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.
|
8753
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/options.js
|
8754
|
+
var require_options = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/options.js"(exports, module) {
|
8766
8755
|
const req$2 = require_req();
|
8767
8756
|
/**
|
8768
8757
|
* Load Options
|
@@ -8796,8 +8785,8 @@ var require_options = __commonJS({ "../../node_modules/.pnpm/postcss-load-config
|
|
8796
8785
|
} });
|
8797
8786
|
|
8798
8787
|
//#endregion
|
8799
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.
|
8800
|
-
var require_plugins = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.
|
8788
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/plugins.js
|
8789
|
+
var require_plugins = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/plugins.js"(exports, module) {
|
8801
8790
|
const req$1 = require_req();
|
8802
8791
|
/**
|
8803
8792
|
* Plugin Loader
|
@@ -8851,8 +8840,8 @@ var require_plugins = __commonJS({ "../../node_modules/.pnpm/postcss-load-config
|
|
8851
8840
|
} });
|
8852
8841
|
|
8853
8842
|
//#endregion
|
8854
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.
|
8855
|
-
var require_src = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.
|
8843
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/index.js
|
8844
|
+
var require_src = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/index.js"(exports, module) {
|
8856
8845
|
const { resolve: resolve$2 } = require("node:path");
|
8857
8846
|
const config$1 = require_src$1();
|
8858
8847
|
const loadOptions = require_options();
|
@@ -9660,7 +9649,7 @@ function esbuildDepPlugin(environment, qualified, external) {
|
|
9660
9649
|
esmPackageCache.clear();
|
9661
9650
|
cjsPackageCache.clear();
|
9662
9651
|
});
|
9663
|
-
build$3.onResolve({ filter: new RegExp(`\\.(` + allExternalTypes.join("|") + `)(\\?.*)?$`) }, async ({ path: id, importer, kind }) => {
|
9652
|
+
build$3.onResolve({ filter: /* @__PURE__ */ new RegExp(`\\.(` + allExternalTypes.join("|") + `)(\\?.*)?$`) }, async ({ path: id, importer, kind }) => {
|
9664
9653
|
if (id.startsWith(convertedExternalPrefix)) return {
|
9665
9654
|
path: id.slice(convertedExternalPrefix.length),
|
9666
9655
|
external: true
|
@@ -9744,7 +9733,7 @@ function esbuildCjsExternalPlugin(externals, platform$2) {
|
|
9744
9733
|
name: "cjs-external",
|
9745
9734
|
setup(build$3) {
|
9746
9735
|
const filter$1 = new RegExp(externals.map(matchesEntireLine).join("|"));
|
9747
|
-
build$3.onResolve({ filter: new RegExp(`^${nonFacadePrefix}`) }, (args) => {
|
9736
|
+
build$3.onResolve({ filter: /* @__PURE__ */ new RegExp(`^${nonFacadePrefix}`) }, (args) => {
|
9748
9737
|
return {
|
9749
9738
|
path: args.path.slice(nonFacadePrefix.length),
|
9750
9739
|
external: true
|
@@ -10431,7 +10420,7 @@ async function parseImportGlob(code, importer, root, resolveId, logger) {
|
|
10431
10420
|
const tasks = matches$2.map(async (match, index) => {
|
10432
10421
|
const start = match.index;
|
10433
10422
|
const err$2 = (msg) => {
|
10434
|
-
const e$1 = new Error(`Invalid glob import syntax: ${msg}`);
|
10423
|
+
const e$1 = /* @__PURE__ */ new Error(`Invalid glob import syntax: ${msg}`);
|
10435
10424
|
e$1.pos = start;
|
10436
10425
|
return e$1;
|
10437
10426
|
};
|
@@ -10996,7 +10985,7 @@ function esbuildScanPlugin(environment, depImports, missing, entries) {
|
|
10996
10985
|
};
|
10997
10986
|
setupExternalize(CSS_LANGS_RE, isUnlessEntry);
|
10998
10987
|
setupExternalize(/\.(json|json5|wasm)$/, isUnlessEntry);
|
10999
|
-
setupExternalize(new RegExp(`\\.(${KNOWN_ASSET_TYPES.join("|")})$`), isUnlessEntry);
|
10988
|
+
setupExternalize(/* @__PURE__ */ new RegExp(`\\.(${KNOWN_ASSET_TYPES.join("|")})$`), isUnlessEntry);
|
11000
10989
|
setupExternalize(SPECIAL_QUERY_RE, () => true);
|
11001
10990
|
build$3.onResolve({ filter: /.*/ }, async ({ path: id, importer }) => {
|
11002
10991
|
const resolved = await resolve$5(id, importer);
|
@@ -12226,7 +12215,7 @@ function resolvePackageEntry(id, { dir, data, setResolvedCache, getResolvedCache
|
|
12226
12215
|
packageEntryFailure(id);
|
12227
12216
|
}
|
12228
12217
|
function packageEntryFailure(id, details) {
|
12229
|
-
const err$2 = new Error(`Failed to resolve entry for package "${id}". The package may have incorrect main/module/exports specified in its package.json` + (details ? ": " + details : "."));
|
12218
|
+
const err$2 = /* @__PURE__ */ new Error(`Failed to resolve entry for package "${id}". The package may have incorrect main/module/exports specified in its package.json` + (details ? ": " + details : "."));
|
12230
12219
|
err$2.code = ERR_RESOLVE_PACKAGE_ENTRY_FAIL;
|
12231
12220
|
throw err$2;
|
12232
12221
|
}
|
@@ -12407,17 +12396,17 @@ function optimizedDepsPlugin() {
|
|
12407
12396
|
};
|
12408
12397
|
}
|
12409
12398
|
function throwProcessingError(id) {
|
12410
|
-
const err$2 = new Error(`Something unexpected happened while optimizing "${id}". The current page should have reloaded by now`);
|
12399
|
+
const err$2 = /* @__PURE__ */ new Error(`Something unexpected happened while optimizing "${id}". The current page should have reloaded by now`);
|
12411
12400
|
err$2.code = ERR_OPTIMIZE_DEPS_PROCESSING_ERROR;
|
12412
12401
|
throw err$2;
|
12413
12402
|
}
|
12414
12403
|
function throwOutdatedRequest(id) {
|
12415
|
-
const err$2 = new Error(`There is a new version of the pre-bundle for "${id}", a page reload is going to ask for it.`);
|
12404
|
+
const err$2 = /* @__PURE__ */ new Error(`There is a new version of the pre-bundle for "${id}", a page reload is going to ask for it.`);
|
12416
12405
|
err$2.code = ERR_OUTDATED_OPTIMIZED_DEP;
|
12417
12406
|
throw err$2;
|
12418
12407
|
}
|
12419
12408
|
function throwFileNotFoundInOptimizedDep(id) {
|
12420
|
-
const err$2 = new Error(`The file does not exist at "${id}" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to \`optimizeDeps.exclude\`.`);
|
12409
|
+
const err$2 = /* @__PURE__ */ new Error(`The file does not exist at "${id}" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to \`optimizeDeps.exclude\`.`);
|
12421
12410
|
err$2.code = ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR;
|
12422
12411
|
throw err$2;
|
12423
12412
|
}
|
@@ -12518,7 +12507,7 @@ var require_main$1 = __commonJS({ "../../node_modules/.pnpm/dotenv@16.5.0/node_m
|
|
12518
12507
|
const vaultPath = _vaultPath(options$1);
|
12519
12508
|
const result = DotenvModule.configDotenv({ path: vaultPath });
|
12520
12509
|
if (!result.parsed) {
|
12521
|
-
const err$2 = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
12510
|
+
const err$2 = /* @__PURE__ */ new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
12522
12511
|
err$2.code = "MISSING_DATA";
|
12523
12512
|
throw err$2;
|
12524
12513
|
}
|
@@ -12552,7 +12541,7 @@ var require_main$1 = __commonJS({ "../../node_modules/.pnpm/dotenv@16.5.0/node_m
|
|
12552
12541
|
uri = new URL(dotenvKey);
|
12553
12542
|
} catch (error$1) {
|
12554
12543
|
if (error$1.code === "ERR_INVALID_URL") {
|
12555
|
-
const err$2 = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
|
12544
|
+
const err$2 = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
|
12556
12545
|
err$2.code = "INVALID_DOTENV_KEY";
|
12557
12546
|
throw err$2;
|
12558
12547
|
}
|
@@ -12560,20 +12549,20 @@ var require_main$1 = __commonJS({ "../../node_modules/.pnpm/dotenv@16.5.0/node_m
|
|
12560
12549
|
}
|
12561
12550
|
const key = uri.password;
|
12562
12551
|
if (!key) {
|
12563
|
-
const err$2 = new Error("INVALID_DOTENV_KEY: Missing key part");
|
12552
|
+
const err$2 = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Missing key part");
|
12564
12553
|
err$2.code = "INVALID_DOTENV_KEY";
|
12565
12554
|
throw err$2;
|
12566
12555
|
}
|
12567
12556
|
const environment = uri.searchParams.get("environment");
|
12568
12557
|
if (!environment) {
|
12569
|
-
const err$2 = new Error("INVALID_DOTENV_KEY: Missing environment part");
|
12558
|
+
const err$2 = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Missing environment part");
|
12570
12559
|
err$2.code = "INVALID_DOTENV_KEY";
|
12571
12560
|
throw err$2;
|
12572
12561
|
}
|
12573
12562
|
const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
|
12574
12563
|
const ciphertext = result.parsed[environmentKey];
|
12575
12564
|
if (!ciphertext) {
|
12576
|
-
const err$2 = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
|
12565
|
+
const err$2 = /* @__PURE__ */ new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
|
12577
12566
|
err$2.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
|
12578
12567
|
throw err$2;
|
12579
12568
|
}
|
@@ -12657,11 +12646,11 @@ var require_main$1 = __commonJS({ "../../node_modules/.pnpm/dotenv@16.5.0/node_m
|
|
12657
12646
|
const invalidKeyLength = error$1.message === "Invalid key length";
|
12658
12647
|
const decryptionFailed = error$1.message === "Unsupported state or unable to authenticate data";
|
12659
12648
|
if (isRange || invalidKeyLength) {
|
12660
|
-
const err$2 = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
|
12649
|
+
const err$2 = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
|
12661
12650
|
err$2.code = "INVALID_DOTENV_KEY";
|
12662
12651
|
throw err$2;
|
12663
12652
|
} else if (decryptionFailed) {
|
12664
|
-
const err$2 = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
|
12653
|
+
const err$2 = /* @__PURE__ */ new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
|
12665
12654
|
err$2.code = "DECRYPTION_FAILED";
|
12666
12655
|
throw err$2;
|
12667
12656
|
} else throw error$1;
|
@@ -12671,7 +12660,7 @@ var require_main$1 = __commonJS({ "../../node_modules/.pnpm/dotenv@16.5.0/node_m
|
|
12671
12660
|
const debug$19 = Boolean(options$1 && options$1.debug);
|
12672
12661
|
const override = Boolean(options$1 && options$1.override);
|
12673
12662
|
if (typeof parsed !== "object") {
|
12674
|
-
const err$2 = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
12663
|
+
const err$2 = /* @__PURE__ */ new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
12675
12664
|
err$2.code = "OBJECT_REQUIRED";
|
12676
12665
|
throw err$2;
|
12677
12666
|
}
|
@@ -12834,7 +12823,7 @@ function warnFutureDeprecation(config$2, type, extraMessage, stacktrace = true)
|
|
12834
12823
|
const docs = `${docsURL}/changes/${deprecationCode[type].toLowerCase()}`;
|
12835
12824
|
msg += import_picocolors$22.default.gray(`\n ${stacktrace ? "├" : "└"}─── `) + import_picocolors$22.default.underline(docs) + "\n";
|
12836
12825
|
if (stacktrace) {
|
12837
|
-
const stack = new Error().stack;
|
12826
|
+
const stack = (/* @__PURE__ */ new Error()).stack;
|
12838
12827
|
if (stack) {
|
12839
12828
|
let stacks = stack.split("\n").slice(3).filter((i$1) => !i$1.includes("/node_modules/vite/dist/"));
|
12840
12829
|
if (stacks.length === 0) stacks.push("No stack trace found.");
|
@@ -13143,8 +13132,8 @@ var require_debug$1 = __commonJS({ "../../node_modules/.pnpm/debug@2.6.9/node_mo
|
|
13143
13132
|
for (var i$1 = 0; i$1 < len; i$1++) {
|
13144
13133
|
if (!split[i$1]) continue;
|
13145
13134
|
namespaces = split[i$1].replace(/\*/g, ".*?");
|
13146
|
-
if (namespaces[0] === "-") exports.skips.push(new RegExp("^" + namespaces.substr(1) + "$"));
|
13147
|
-
else exports.names.push(new RegExp("^" + namespaces + "$"));
|
13135
|
+
if (namespaces[0] === "-") exports.skips.push(/* @__PURE__ */ new RegExp("^" + namespaces.substr(1) + "$"));
|
13136
|
+
else exports.names.push(/* @__PURE__ */ new RegExp("^" + namespaces + "$"));
|
13148
13137
|
}
|
13149
13138
|
}
|
13150
13139
|
/**
|
@@ -14412,7 +14401,7 @@ var require_object_assign = __commonJS({ "../../node_modules/.pnpm/object-assign
|
|
14412
14401
|
function shouldUseNative() {
|
14413
14402
|
try {
|
14414
14403
|
if (!Object.assign) return false;
|
14415
|
-
var test1 = new String("abc");
|
14404
|
+
var test1 = /* @__PURE__ */ new String("abc");
|
14416
14405
|
test1[5] = "de";
|
14417
14406
|
if (Object.getOwnPropertyNames(test1)[0] === "5") return false;
|
14418
14407
|
var test2 = {};
|
@@ -14902,7 +14891,7 @@ var require_readdirp = __commonJS({ "../../node_modules/.pnpm/readdirp@3.6.0/nod
|
|
14902
14891
|
if (entryRealPathStats.isDirectory()) {
|
14903
14892
|
const len = entryRealPath.length;
|
14904
14893
|
if (full.startsWith(entryRealPath) && full.substr(len, 1) === sysPath$3.sep) {
|
14905
|
-
const recursiveError = new Error(`Circular symlink detected: "${full}" points to "${entryRealPath}"`);
|
14894
|
+
const recursiveError = /* @__PURE__ */ new Error(`Circular symlink detected: "${full}" points to "${entryRealPath}"`);
|
14906
14895
|
recursiveError.code = RECURSIVE_ERROR_CODE;
|
14907
14896
|
return this._onError(recursiveError);
|
14908
14897
|
}
|
@@ -15603,7 +15592,7 @@ var require_fill_range = __commonJS({ "../../node_modules/.pnpm/fill-range@7.1.1
|
|
15603
15592
|
return toRegexRange(start, end, options$1);
|
15604
15593
|
};
|
15605
15594
|
const rangeError = (...args) => {
|
15606
|
-
return new RangeError("Invalid range arguments: " + util$1.inspect(...args));
|
15595
|
+
return /* @__PURE__ */ new RangeError("Invalid range arguments: " + util$1.inspect(...args));
|
15607
15596
|
};
|
15608
15597
|
const invalidRange = (start, end, options$1) => {
|
15609
15598
|
if (options$1.strictRanges === true) throw rangeError([start, end]);
|
@@ -18155,7 +18144,7 @@ var require_parse$1 = __commonJS({ "../../node_modules/.pnpm/shell-quote@1.8.2/n
|
|
18155
18144
|
"<\\&",
|
18156
18145
|
"[&;()|<>]"
|
18157
18146
|
].join("|") + ")";
|
18158
|
-
var controlRE = new RegExp("^" + CONTROL + "$");
|
18147
|
+
var controlRE = /* @__PURE__ */ new RegExp("^" + CONTROL + "$");
|
18159
18148
|
var META = "|&;()<> \\t";
|
18160
18149
|
var SINGLE_QUOTE = "\"((\\\\\"|[^\"])*?)\"";
|
18161
18150
|
var DOUBLE_QUOTE = "'((\\\\'|[^'])*?)'";
|
@@ -18166,7 +18155,7 @@ var require_parse$1 = __commonJS({ "../../node_modules/.pnpm/shell-quote@1.8.2/n
|
|
18166
18155
|
var TOKEN = "";
|
18167
18156
|
var mult = 4294967296;
|
18168
18157
|
for (var i = 0; i < 4; i++) TOKEN += (mult * Math.random()).toString(16);
|
18169
|
-
var startsWithToken = new RegExp("^" + TOKEN);
|
18158
|
+
var startsWithToken = /* @__PURE__ */ new RegExp("^" + TOKEN);
|
18170
18159
|
function matchAll(s$2, r$2) {
|
18171
18160
|
var origIndex = r$2.lastIndex;
|
18172
18161
|
var matches$2 = [];
|
@@ -18701,7 +18690,7 @@ async function httpServerStart(httpServer, serverOptions) {
|
|
18701
18690
|
const onError$1 = (e$1) => {
|
18702
18691
|
if (e$1.code === "EADDRINUSE") if (strictPort) {
|
18703
18692
|
httpServer.removeListener("error", onError$1);
|
18704
|
-
reject(new Error(`Port ${port} is already in use`));
|
18693
|
+
reject(/* @__PURE__ */ new Error(`Port ${port} is already in use`));
|
18705
18694
|
} else {
|
18706
18695
|
logger.info(`Port ${port} is in use, trying another one...`);
|
18707
18696
|
httpServer.listen(++port, host);
|
@@ -19800,7 +19789,7 @@ const baseOpen = async (options$1) => {
|
|
19800
19789
|
subprocess.once("error", reject);
|
19801
19790
|
subprocess.once("close", (exitCode) => {
|
19802
19791
|
if (!options$1.allowNonzeroExitCode && exitCode > 0) {
|
19803
|
-
reject(new Error(`Exited with code ${exitCode}`));
|
19792
|
+
reject(/* @__PURE__ */ new Error(`Exited with code ${exitCode}`));
|
19804
19793
|
return;
|
19805
19794
|
}
|
19806
19795
|
resolve$5(subprocess);
|
@@ -19967,7 +19956,7 @@ var require_which = __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modu
|
|
19967
19956
|
const path$4 = require("path");
|
19968
19957
|
const COLON = isWindows$1 ? ";" : ":";
|
19969
19958
|
const isexe = require_isexe();
|
19970
|
-
const getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
19959
|
+
const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
19971
19960
|
const getPathInfo = (cmd, opt) => {
|
19972
19961
|
const colon = opt.colon || COLON;
|
19973
19962
|
const pathEnv = cmd.match(/\//) || isWindows$1 && cmd.match(/\\/) ? [""] : [...isWindows$1 ? [process.cwd()] : [], ...(opt.path || process.env.PATH || "").split(colon)];
|
@@ -20208,7 +20197,7 @@ var require_parse = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/nod
|
|
20208
20197
|
var require_enoent = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
|
20209
20198
|
const isWin = process.platform === "win32";
|
20210
20199
|
function notFoundError(original, syscall) {
|
20211
|
-
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
20200
|
+
return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
|
20212
20201
|
code: "ENOENT",
|
20213
20202
|
errno: "ENOENT",
|
20214
20203
|
syscall: `${syscall} ${original.command}`,
|
@@ -20781,7 +20770,7 @@ var require_permessage_deflate = __commonJS({ "../../node_modules/.pnpm/ws@8.18.
|
|
20781
20770
|
const callback = this._deflate[kCallback];
|
20782
20771
|
this._deflate.close();
|
20783
20772
|
this._deflate = null;
|
20784
|
-
if (callback) callback(new Error("The deflate stream was closed while data was being processed"));
|
20773
|
+
if (callback) callback(/* @__PURE__ */ new Error("The deflate stream was closed while data was being processed"));
|
20785
20774
|
}
|
20786
20775
|
}
|
20787
20776
|
/**
|
@@ -20987,7 +20976,7 @@ var require_permessage_deflate = __commonJS({ "../../node_modules/.pnpm/ws@8.18.
|
|
20987
20976
|
this[kBuffers].push(chunk);
|
20988
20977
|
return;
|
20989
20978
|
}
|
20990
|
-
this[kError$1] = new RangeError("Max payload size exceeded");
|
20979
|
+
this[kError$1] = /* @__PURE__ */ new RangeError("Max payload size exceeded");
|
20991
20980
|
this[kError$1].code = "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH";
|
20992
20981
|
this[kError$1][kStatusCode$2] = 1009;
|
20993
20982
|
this.removeListener("data", inflateOnData);
|
@@ -22042,7 +22031,7 @@ var require_sender = __commonJS({ "../../node_modules/.pnpm/ws@8.18.2/node_modul
|
|
22042
22031
|
this._state = GET_BLOB_DATA;
|
22043
22032
|
blob.arrayBuffer().then((arrayBuffer) => {
|
22044
22033
|
if (this._socket.destroyed) {
|
22045
|
-
const err$2 = new Error("The socket was closed while the blob was being read");
|
22034
|
+
const err$2 = /* @__PURE__ */ new Error("The socket was closed while the blob was being read");
|
22046
22035
|
process.nextTick(callCallbacks, this, err$2, cb);
|
22047
22036
|
return;
|
22048
22037
|
}
|
@@ -22090,7 +22079,7 @@ var require_sender = __commonJS({ "../../node_modules/.pnpm/ws@8.18.2/node_modul
|
|
22090
22079
|
this._state = DEFLATING;
|
22091
22080
|
perMessageDeflate.compress(data, options$1.fin, (_, buf) => {
|
22092
22081
|
if (this._socket.destroyed) {
|
22093
|
-
const err$2 = new Error("The socket was closed while data was being compressed");
|
22082
|
+
const err$2 = /* @__PURE__ */ new Error("The socket was closed while data was being compressed");
|
22094
22083
|
callCallbacks(this, err$2, cb);
|
22095
22084
|
return;
|
22096
22085
|
}
|
@@ -23177,7 +23166,7 @@ var require_websocket = __commonJS({ "../../node_modules/.pnpm/ws@8.18.2/node_mo
|
|
23177
23166
|
try {
|
23178
23167
|
addr = new URL$3(location$1, address);
|
23179
23168
|
} catch (e$1) {
|
23180
|
-
const err$2 = new SyntaxError(`Invalid URL: ${location$1}`);
|
23169
|
+
const err$2 = /* @__PURE__ */ new SyntaxError(`Invalid URL: ${location$1}`);
|
23181
23170
|
emitErrorAndClose(websocket, err$2);
|
23182
23171
|
return;
|
23183
23172
|
}
|
@@ -23325,7 +23314,7 @@ var require_websocket = __commonJS({ "../../node_modules/.pnpm/ws@8.18.2/node_mo
|
|
23325
23314
|
else websocket._bufferedAmount += length;
|
23326
23315
|
}
|
23327
23316
|
if (cb) {
|
23328
|
-
const err$2 = new Error(`WebSocket is not open: readyState ${websocket.readyState} (${readyStates[websocket.readyState]})`);
|
23317
|
+
const err$2 = /* @__PURE__ */ new Error(`WebSocket is not open: readyState ${websocket.readyState} (${readyStates[websocket.readyState]})`);
|
23329
23318
|
process.nextTick(cb, err$2);
|
23330
23319
|
}
|
23331
23320
|
}
|
@@ -23791,7 +23780,7 @@ var require_websocket_server = __commonJS({ "../../node_modules/.pnpm/ws@8.18.2/
|
|
23791
23780
|
close(cb) {
|
23792
23781
|
if (this._state === CLOSED) {
|
23793
23782
|
if (cb) this.once("close", () => {
|
23794
|
-
cb(new Error("The server is not running"));
|
23783
|
+
cb(/* @__PURE__ */ new Error("The server is not running"));
|
23795
23784
|
});
|
23796
23785
|
process.nextTick(emitClose, this);
|
23797
23786
|
return;
|
@@ -24166,7 +24155,7 @@ function createWebSocketServer(server, config$2, httpsOptions) {
|
|
24166
24155
|
handleInvoke: async () => ({ error: {
|
24167
24156
|
name: "TransportError",
|
24168
24157
|
message: "handleInvoke not implemented",
|
24169
|
-
stack: new Error().stack
|
24158
|
+
stack: (/* @__PURE__ */ new Error()).stack
|
24170
24159
|
} }),
|
24171
24160
|
listen: noop$2,
|
24172
24161
|
send: noop$2
|
@@ -25536,7 +25525,7 @@ var require_http_proxy$2 = __commonJS({ "../../node_modules/.pnpm/http-proxy@1.1
|
|
25536
25525
|
["target", "forward"].forEach(function(e$1) {
|
25537
25526
|
if (typeof requestOptions[e$1] === "string") requestOptions[e$1] = parse_url(requestOptions[e$1]);
|
25538
25527
|
});
|
25539
|
-
if (!requestOptions.target && !requestOptions.forward) return this.emit("error", new Error("Must provide a proper URL as target"));
|
25528
|
+
if (!requestOptions.target && !requestOptions.forward) return this.emit("error", /* @__PURE__ */ new Error("Must provide a proper URL as target"));
|
25540
25529
|
for (var i$1 = 0; i$1 < passes.length; i$1++)
|
25541
25530
|
/**
|
25542
25531
|
* Call of passes functions
|
@@ -26160,7 +26149,7 @@ const sirvOptions = ({ config: config$2, getHeaders, disableFsServeCheck }) => {
|
|
26160
26149
|
shouldServe: disableFsServeCheck ? void 0 : (filePath) => {
|
26161
26150
|
const servingAccessResult = checkLoadingAccess(config$2, filePath);
|
26162
26151
|
if (servingAccessResult === "denied") {
|
26163
|
-
const error$1 = new Error("denied access");
|
26152
|
+
const error$1 = /* @__PURE__ */ new Error("denied access");
|
26164
26153
|
error$1.code = ERR_DENIED_FILE;
|
26165
26154
|
error$1.path = filePath;
|
26166
26155
|
throw error$1;
|
@@ -26389,7 +26378,7 @@ async function loadAndTransform(environment, id, url$6, options$1, timestamp, mo
|
|
26389
26378
|
const prettyUrl = debugLoad || debugTransform ? prettifyUrl(url$6, config$2.root) : "";
|
26390
26379
|
const moduleGraph = environment.moduleGraph;
|
26391
26380
|
if (options$1.allowId && !options$1.allowId(id)) {
|
26392
|
-
const err$2 = new Error(`Denied ID ${id}`);
|
26381
|
+
const err$2 = /* @__PURE__ */ new Error(`Denied ID ${id}`);
|
26393
26382
|
err$2.code = ERR_DENIED_ID;
|
26394
26383
|
throw err$2;
|
26395
26384
|
}
|
@@ -26435,7 +26424,7 @@ async function loadAndTransform(environment, id, url$6, options$1, timestamp, mo
|
|
26435
26424
|
const msg = isPublicFile ? `This file is in ${publicDirName} and will be copied as-is during build without going through the plugin transforms, and therefore should not be imported from source code. It can only be referenced via HTML tags.` : `Does the file exist?`;
|
26436
26425
|
const importerMod = moduleGraph.idToModuleMap.get(id)?.importers.values().next().value;
|
26437
26426
|
const importer = importerMod?.file || importerMod?.url;
|
26438
|
-
const err$2 = new Error(`Failed to load url ${url$6} (resolved id: ${id})${importer ? ` in ${importer}` : ""}. ${msg}`);
|
26427
|
+
const err$2 = /* @__PURE__ */ new Error(`Failed to load url ${url$6} (resolved id: ${id})${importer ? ` in ${importer}` : ""}. ${msg}`);
|
26439
26428
|
err$2.code = isPublicFile ? ERR_LOAD_PUBLIC_URL : ERR_LOAD_URL;
|
26440
26429
|
throw err$2;
|
26441
26430
|
}
|
@@ -26887,7 +26876,7 @@ function buildHtmlPlugin(config$2) {
|
|
26887
26876
|
inlineModuleIndex++;
|
26888
26877
|
if (url$6 && !isExcludedUrl(url$6) && !isPublicFile) {
|
26889
26878
|
setModuleSideEffectPromises.push(this.resolve(url$6, id).then((resolved) => {
|
26890
|
-
if (!resolved) return Promise.reject(new Error(`Failed to resolve ${url$6} from ${id}`));
|
26879
|
+
if (!resolved) return Promise.reject(/* @__PURE__ */ new Error(`Failed to resolve ${url$6} from ${id}`));
|
26891
26880
|
const moduleInfo = this.getModuleInfo(resolved.id);
|
26892
26881
|
if (moduleInfo) moduleInfo.moduleSideEffects = true;
|
26893
26882
|
else if (!resolved.external) return this.load(resolved).then((mod) => {
|
@@ -28801,7 +28790,7 @@ const normalizeHotChannel = (channel, enableHmr, normalizeClient = true) => {
|
|
28801
28790
|
if (!invokeHandlers) return { error: {
|
28802
28791
|
name: "TransportError",
|
28803
28792
|
message: "invokeHandlers is not set",
|
28804
|
-
stack: new Error().stack
|
28793
|
+
stack: (/* @__PURE__ */ new Error()).stack
|
28805
28794
|
} };
|
28806
28795
|
const data = payload.data;
|
28807
28796
|
const { name, data: args } = data;
|
@@ -29290,7 +29279,7 @@ function normalizeHmrUrl(url$6) {
|
|
29290
29279
|
return url$6;
|
29291
29280
|
}
|
29292
29281
|
function error(pos) {
|
29293
|
-
const err$2 = new Error("import.meta.hot.accept() can only accept string literals or an Array of string literals.");
|
29282
|
+
const err$2 = /* @__PURE__ */ new Error("import.meta.hot.accept() can only accept string literals or an Array of string literals.");
|
29294
29283
|
err$2.pos = pos;
|
29295
29284
|
throw err$2;
|
29296
29285
|
}
|
@@ -30741,7 +30730,7 @@ const dynamicImportHelper = (glob$1, path$13, segs) => {
|
|
30741
30730
|
const v = glob$1[path$13];
|
30742
30731
|
if (v) return typeof v === "function" ? v() : Promise.resolve(v);
|
30743
30732
|
return new Promise((_, reject) => {
|
30744
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path$13 + (path$13.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : ""))));
|
30733
|
+
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + path$13 + (path$13.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : ""))));
|
30745
30734
|
});
|
30746
30735
|
};
|
30747
30736
|
function parseDynamicImportPattern(strings) {
|
@@ -30921,7 +30910,7 @@ function createFilterForTransform(idFilter, codeFilter, cwd) {
|
|
30921
30910
|
async function resolvePlugins(config$2, prePlugins, normalPlugins, postPlugins) {
|
30922
30911
|
const isBuild = config$2.command === "build";
|
30923
30912
|
const isWorker = config$2.isWorker;
|
30924
|
-
const buildPlugins = isBuild ? await (await import("./dep-
|
30913
|
+
const buildPlugins = isBuild ? await (await import("./dep-pyXEOwQv.js")).resolveBuildPlugins(config$2) : {
|
30925
30914
|
pre: [],
|
30926
30915
|
post: []
|
30927
30916
|
};
|
@@ -31064,7 +31053,7 @@ const debugPluginTransform = createDebugger("vite:plugin-transform", { onlyWhenF
|
|
31064
31053
|
const debugPluginContainerContext = createDebugger("vite:plugin-container-context");
|
31065
31054
|
const ERR_CLOSED_SERVER = "ERR_CLOSED_SERVER";
|
31066
31055
|
function throwClosedServerError() {
|
31067
|
-
const err$2 = new Error("The server is being restarted or closed. Request is outdated");
|
31056
|
+
const err$2 = /* @__PURE__ */ new Error("The server is being restarted or closed. Request is outdated");
|
31068
31057
|
err$2.code = ERR_CLOSED_SERVER;
|
31069
31058
|
throw err$2;
|
31070
31059
|
}
|
@@ -31750,7 +31739,7 @@ function resolveCSSOptions(options$1) {
|
|
31750
31739
|
}
|
31751
31740
|
return resolved;
|
31752
31741
|
}
|
31753
|
-
const cssModuleRE = new RegExp(`\\.module${CSS_LANGS_RE.source}`);
|
31742
|
+
const cssModuleRE = /* @__PURE__ */ new RegExp(`\\.module${CSS_LANGS_RE.source}`);
|
31754
31743
|
const directRequestRE = /[?&]direct\b/;
|
31755
31744
|
const htmlProxyRE = /[?&]html-proxy\b/;
|
31756
31745
|
const htmlProxyIndexRE = /&index=(\d+)/;
|
@@ -32456,8 +32445,8 @@ function createCachedImport(imp) {
|
|
32456
32445
|
return cached;
|
32457
32446
|
};
|
32458
32447
|
}
|
32459
|
-
const importPostcssImport = createCachedImport(() => import("./dep-
|
32460
|
-
const importPostcssModules = createCachedImport(() => import("./dep-
|
32448
|
+
const importPostcssImport = createCachedImport(() => import("./dep-DcjhO6Jt.js").then(__toDynamicImportESM(1)));
|
32449
|
+
const importPostcssModules = createCachedImport(() => import("./dep-Do-w1DD4.js").then(__toDynamicImportESM(1)));
|
32461
32450
|
const importPostcss = createCachedImport(() => import("postcss"));
|
32462
32451
|
const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
|
32463
32452
|
let alwaysFakeWorkerWorkerControllerCache;
|
@@ -32739,7 +32728,7 @@ function loadPreprocessorPath(lang, root) {
|
|
32739
32728
|
const installCommand = getPackageManagerCommand("install");
|
32740
32729
|
throw new Error(`Preprocessor dependency "${lang}" not found. Did you install it? Try \`${installCommand} -D ${lang}\`.`);
|
32741
32730
|
} else {
|
32742
|
-
const message = new Error(`Preprocessor dependency "${lang}" failed to load:\n${e$1.message}`);
|
32731
|
+
const message = /* @__PURE__ */ new Error(`Preprocessor dependency "${lang}" failed to load:\n${e$1.message}`);
|
32743
32732
|
message.stack = e$1.stack + "\n" + message.stack;
|
32744
32733
|
throw message;
|
32745
32734
|
}
|
@@ -32770,7 +32759,7 @@ function loadSss(root) {
|
|
32770
32759
|
const sssPath = loadPreprocessorPath(PostCssDialectLang.sss, root);
|
32771
32760
|
cachedSss = createRequire(
|
32772
32761
|
/** #__KEEP__ */
|
32773
|
-
|
32762
|
+
import.meta.url
|
32774
32763
|
)(sssPath);
|
32775
32764
|
return cachedSss;
|
32776
32765
|
}
|
@@ -33002,7 +32991,7 @@ const lessProcessor = (maxWorkers) => {
|
|
33002
32991
|
result = await worker.run(lessPath, content, optionsWithoutAdditionalData);
|
33003
32992
|
} catch (e$1) {
|
33004
32993
|
const error$1 = e$1;
|
33005
|
-
const normalizedError = new Error(`[less] ${error$1.message || error$1.type}`);
|
32994
|
+
const normalizedError = /* @__PURE__ */ new Error(`[less] ${error$1.message || error$1.type}`);
|
33006
32995
|
normalizedError.loc = {
|
33007
32996
|
file: error$1.filename || options$1.filename,
|
33008
32997
|
line: error$1.line,
|
@@ -33077,7 +33066,7 @@ const stylProcessor = (maxWorkers) => {
|
|
33077
33066
|
deps: [...deps, ...importsDeps]
|
33078
33067
|
};
|
33079
33068
|
} catch (e$1) {
|
33080
|
-
const wrapped = new Error(`[stylus] ${e$1.message}`);
|
33069
|
+
const wrapped = /* @__PURE__ */ new Error(`[stylus] ${e$1.message}`);
|
33081
33070
|
wrapped.name = e$1.name;
|
33082
33071
|
wrapped.stack = e$1.stack;
|
33083
33072
|
return {
|
@@ -33469,7 +33458,7 @@ function preload(baseModule, deps, importerUrl) {
|
|
33469
33458
|
document.head.appendChild(link);
|
33470
33459
|
if (isCss) return new Promise((res, rej) => {
|
33471
33460
|
link.addEventListener("load", res);
|
33472
|
-
link.addEventListener("error", () => rej(new Error(`Unable to preload CSS for ${dep}`)));
|
33461
|
+
link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
|
33473
33462
|
});
|
33474
33463
|
}));
|
33475
33464
|
}
|
@@ -34546,7 +34535,7 @@ async function fetchModule(environment, url$6, importer, options$1 = {}) {
|
|
34546
34535
|
builtins: environment.config.resolve.builtins
|
34547
34536
|
});
|
34548
34537
|
if (!resolved) {
|
34549
|
-
const err$2 = new Error(`Cannot find module '${url$6}' imported from '${importer}'`);
|
34538
|
+
const err$2 = /* @__PURE__ */ new Error(`Cannot find module '${url$6}' imported from '${importer}'`);
|
34550
34539
|
err$2.code = "ERR_MODULE_NOT_FOUND";
|
34551
34540
|
throw err$2;
|
34552
34541
|
}
|
@@ -36463,7 +36452,7 @@ async function bundleConfigFile(fileName, isESM) {
|
|
36463
36452
|
}
|
36464
36453
|
const _require = createRequire(
|
36465
36454
|
/** #__KEEP__ */
|
36466
|
-
|
36455
|
+
import.meta.url
|
36467
36456
|
);
|
36468
36457
|
async function loadConfigFromBundledFile(fileName, bundledCode, isESM) {
|
36469
36458
|
if (isESM) {
|