vite 6.0.7 → 6.0.8
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.
Potentially problematic release.
This version of vite might be problematic. Click here for more details.
- package/dist/client/client.mjs +5 -5
- package/dist/node/chunks/{dep-BJP6rrE_.js → dep-Beq30MX9.js} +332 -289
- package/dist/node/chunks/{dep-Cpceb51t.js → dep-BthWCIj2.js} +1 -1
- package/dist/node/chunks/{dep-DB1BmmOk.js → dep-C-SVMOic.js} +63 -66
- package/dist/node/chunks/{dep-DnSxfB-q.js → dep-DcIXjcop.js} +17 -17
- package/dist/node/cli.js +17 -17
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.js +2 -2
- package/dist/node-cjs/publicUtils.cjs +5 -5
- package/package.json +5 -5
@@ -7,7 +7,7 @@ import { promisify as promisify$4, format as format$2, inspect, stripVTControlCh
|
|
7
7
|
import { performance } from 'node:perf_hooks';
|
8
8
|
import require$$0$6, { createRequire as createRequire$1, builtinModules } from 'node:module';
|
9
9
|
import esbuild, { transform as transform$1, formatMessages, build as build$b } from 'esbuild';
|
10
|
-
import { CLIENT_ENTRY, OPTIMIZABLE_ENTRY_RE, wildcardHosts, loopbackHosts, FS_PREFIX, CLIENT_PUBLIC_PATH, ENV_PUBLIC_PATH, DEFAULT_ASSETS_INLINE_LIMIT, ENV_ENTRY,
|
10
|
+
import { CLIENT_ENTRY, OPTIMIZABLE_ENTRY_RE, wildcardHosts, loopbackHosts, FS_PREFIX, CLIENT_PUBLIC_PATH, ENV_PUBLIC_PATH, DEFAULT_ASSETS_INLINE_LIMIT, ENV_ENTRY, DEP_VERSION_RE, SPECIAL_QUERY_RE, DEV_PROD_CONDITION, JS_TYPES_RE, KNOWN_ASSET_TYPES, CSS_LANGS_RE, METADATA_FILENAME, ESBUILD_MODULES_TARGET, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, VITE_PACKAGE_DIR, DEFAULT_DEV_PORT, CLIENT_DIR, VERSION, ROLLUP_HOOKS, DEFAULT_PREVIEW_PORT, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_SERVER_MAIN_FIELDS, DEFAULT_CLIENT_CONDITIONS, DEFAULT_SERVER_CONDITIONS } from '../constants.js';
|
11
11
|
import require$$0$2, { posix, win32, isAbsolute, resolve as resolve$3, relative as relative$1, basename as basename$1, extname, dirname as dirname$1, join, sep } from 'path';
|
12
12
|
import require$$0$3, { existsSync, readFileSync, statSync, readdirSync } from 'fs';
|
13
13
|
import childProcess$2, { exec, execFile, execSync } from 'node:child_process';
|
@@ -1640,7 +1640,7 @@ const parse$h = (input, options) => {
|
|
1640
1640
|
}
|
1641
1641
|
|
1642
1642
|
if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
|
1643
|
-
const end = rest[1] !==
|
1643
|
+
const end = rest[1] !== undefined ? '|$' : '';
|
1644
1644
|
|
1645
1645
|
state.output = state.output.slice(0, -(prior.output + prev.output).length);
|
1646
1646
|
prior.output = `(?:${prior.output}`;
|
@@ -2764,7 +2764,7 @@ const dataToEsm = function dataToEsm(data, options = {}) {
|
|
2764
2764
|
}
|
2765
2765
|
let maxUnderbarPrefixLength = 0;
|
2766
2766
|
for (const key of Object.keys(data)) {
|
2767
|
-
const underbarPrefixLength = (_b = (_a = /^(_+)/.exec(key)) === null || _a ===
|
2767
|
+
const underbarPrefixLength = (_b = (_a = /^(_+)/.exec(key)) === null || _a === undefined ? undefined : _a[0].length) !== null && _b !== undefined ? _b : 0;
|
2768
2768
|
if (underbarPrefixLength > maxUnderbarPrefixLength) {
|
2769
2769
|
maxUnderbarPrefixLength = underbarPrefixLength;
|
2770
2770
|
}
|
@@ -2842,7 +2842,7 @@ var walker = {};
|
|
2842
2842
|
var utils$8 = {};
|
2843
2843
|
|
2844
2844
|
Object.defineProperty(utils$8, "__esModule", { value: true });
|
2845
|
-
utils$8.normalizePath = utils$8.convertSlashes = utils$8.cleanPath =
|
2845
|
+
utils$8.normalizePath = utils$8.convertSlashes = utils$8.cleanPath = undefined;
|
2846
2846
|
const path_1$4 = require$$0$2;
|
2847
2847
|
function cleanPath(path) {
|
2848
2848
|
let normalized = (0, path_1$4.normalize)(path);
|
@@ -2876,7 +2876,7 @@ utils$8.normalizePath = normalizePath$5;
|
|
2876
2876
|
var joinPath$2 = {};
|
2877
2877
|
|
2878
2878
|
Object.defineProperty(joinPath$2, "__esModule", { value: true });
|
2879
|
-
joinPath$2.build = joinPath$2.joinDirectoryPath = joinPath$2.joinPathWithBasePath =
|
2879
|
+
joinPath$2.build = joinPath$2.joinDirectoryPath = joinPath$2.joinPathWithBasePath = undefined;
|
2880
2880
|
const path_1$3 = require$$0$2;
|
2881
2881
|
const utils_1$1 = utils$8;
|
2882
2882
|
function joinPathWithBasePath(filename, directoryPath) {
|
@@ -2914,7 +2914,7 @@ joinPath$2.build = build$a;
|
|
2914
2914
|
var pushDirectory$2 = {};
|
2915
2915
|
|
2916
2916
|
Object.defineProperty(pushDirectory$2, "__esModule", { value: true });
|
2917
|
-
pushDirectory$2.build =
|
2917
|
+
pushDirectory$2.build = undefined;
|
2918
2918
|
function pushDirectoryWithRelativePath(root) {
|
2919
2919
|
return function (directoryPath, paths) {
|
2920
2920
|
paths.push(directoryPath.substring(root.length) || ".");
|
@@ -2953,7 +2953,7 @@ pushDirectory$2.build = build$9;
|
|
2953
2953
|
var pushFile$2 = {};
|
2954
2954
|
|
2955
2955
|
Object.defineProperty(pushFile$2, "__esModule", { value: true });
|
2956
|
-
pushFile$2.build =
|
2956
|
+
pushFile$2.build = undefined;
|
2957
2957
|
const pushFileFilterAndCount = (filename, _paths, counts, filters) => {
|
2958
2958
|
if (filters.every((filter) => filter(filename, false)))
|
2959
2959
|
counts.files++;
|
@@ -2988,7 +2988,7 @@ pushFile$2.build = build$8;
|
|
2988
2988
|
var getArray$2 = {};
|
2989
2989
|
|
2990
2990
|
Object.defineProperty(getArray$2, "__esModule", { value: true });
|
2991
|
-
getArray$2.build =
|
2991
|
+
getArray$2.build = undefined;
|
2992
2992
|
const getArray$1 = (paths) => {
|
2993
2993
|
return paths;
|
2994
2994
|
};
|
@@ -3003,7 +3003,7 @@ getArray$2.build = build$7;
|
|
3003
3003
|
var groupFiles$2 = {};
|
3004
3004
|
|
3005
3005
|
Object.defineProperty(groupFiles$2, "__esModule", { value: true });
|
3006
|
-
groupFiles$2.build =
|
3006
|
+
groupFiles$2.build = undefined;
|
3007
3007
|
const groupFiles$1 = (groups, directory, files) => {
|
3008
3008
|
groups.push({ directory, files, dir: directory });
|
3009
3009
|
};
|
@@ -3015,11 +3015,11 @@ groupFiles$2.build = build$6;
|
|
3015
3015
|
|
3016
3016
|
var resolveSymlink$1 = {};
|
3017
3017
|
|
3018
|
-
var __importDefault$1 = (resolveSymlink$1
|
3018
|
+
var __importDefault$1 = (resolveSymlink$1.__importDefault) || function (mod) {
|
3019
3019
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
3020
3020
|
};
|
3021
3021
|
Object.defineProperty(resolveSymlink$1, "__esModule", { value: true });
|
3022
|
-
resolveSymlink$1.build =
|
3022
|
+
resolveSymlink$1.build = undefined;
|
3023
3023
|
const fs_1$1 = __importDefault$1(require$$0$3);
|
3024
3024
|
const path_1$2 = require$$0$2;
|
3025
3025
|
const resolveSymlinksAsync = function (path, state, callback) {
|
@@ -3085,7 +3085,7 @@ function isRecursiveUsingRealPaths(resolved, state) {
|
|
3085
3085
|
var invokeCallback$1 = {};
|
3086
3086
|
|
3087
3087
|
Object.defineProperty(invokeCallback$1, "__esModule", { value: true });
|
3088
|
-
invokeCallback$1.build =
|
3088
|
+
invokeCallback$1.build = undefined;
|
3089
3089
|
const onlyCountsSync = (state) => {
|
3090
3090
|
return state.counts;
|
3091
3091
|
};
|
@@ -3143,11 +3143,11 @@ invokeCallback$1.build = build$4;
|
|
3143
3143
|
|
3144
3144
|
var walkDirectory$1 = {};
|
3145
3145
|
|
3146
|
-
var __importDefault = (walkDirectory$1
|
3146
|
+
var __importDefault = (walkDirectory$1.__importDefault) || function (mod) {
|
3147
3147
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
3148
3148
|
};
|
3149
3149
|
Object.defineProperty(walkDirectory$1, "__esModule", { value: true });
|
3150
|
-
walkDirectory$1.build =
|
3150
|
+
walkDirectory$1.build = undefined;
|
3151
3151
|
const fs_1 = __importDefault(require$$0$3);
|
3152
3152
|
const readdirOpts = { withFileTypes: true };
|
3153
3153
|
const walkAsync = (state, crawlPath, directoryPath, currentDepth, callback) => {
|
@@ -3186,7 +3186,7 @@ walkDirectory$1.build = build$3;
|
|
3186
3186
|
var queue = {};
|
3187
3187
|
|
3188
3188
|
Object.defineProperty(queue, "__esModule", { value: true });
|
3189
|
-
queue.Queue =
|
3189
|
+
queue.Queue = undefined;
|
3190
3190
|
/**
|
3191
3191
|
* This is a custom stateless queue to track concurrent async fs calls.
|
3192
3192
|
* It increments a counter whenever a call is queued and decrements it
|
@@ -3211,7 +3211,7 @@ queue.Queue = Queue;
|
|
3211
3211
|
var counter = {};
|
3212
3212
|
|
3213
3213
|
Object.defineProperty(counter, "__esModule", { value: true });
|
3214
|
-
counter.Counter =
|
3214
|
+
counter.Counter = undefined;
|
3215
3215
|
class Counter {
|
3216
3216
|
_files = 0;
|
3217
3217
|
_directories = 0;
|
@@ -3237,7 +3237,7 @@ class Counter {
|
|
3237
3237
|
}
|
3238
3238
|
counter.Counter = Counter;
|
3239
3239
|
|
3240
|
-
var __createBinding = (walker
|
3240
|
+
var __createBinding = (walker.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3241
3241
|
if (k2 === undefined) k2 = k;
|
3242
3242
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
3243
3243
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
@@ -3248,12 +3248,12 @@ var __createBinding = (walker && walker.__createBinding) || (Object.create ? (fu
|
|
3248
3248
|
if (k2 === undefined) k2 = k;
|
3249
3249
|
o[k2] = m[k];
|
3250
3250
|
}));
|
3251
|
-
var __setModuleDefault = (walker
|
3251
|
+
var __setModuleDefault = (walker.__setModuleDefault) || (Object.create ? (function(o, v) {
|
3252
3252
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
3253
3253
|
}) : function(o, v) {
|
3254
3254
|
o["default"] = v;
|
3255
3255
|
});
|
3256
|
-
var __importStar = (walker
|
3256
|
+
var __importStar = (walker.__importStar) || function (mod) {
|
3257
3257
|
if (mod && mod.__esModule) return mod;
|
3258
3258
|
var result = {};
|
3259
3259
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
@@ -3261,7 +3261,7 @@ var __importStar = (walker && walker.__importStar) || function (mod) {
|
|
3261
3261
|
return result;
|
3262
3262
|
};
|
3263
3263
|
Object.defineProperty(walker, "__esModule", { value: true });
|
3264
|
-
walker.Walker =
|
3264
|
+
walker.Walker = undefined;
|
3265
3265
|
const path_1$1 = require$$0$2;
|
3266
3266
|
const utils_1 = utils$8;
|
3267
3267
|
const joinPath = __importStar(joinPath$2);
|
@@ -3362,7 +3362,7 @@ class Walker {
|
|
3362
3362
|
walker.Walker = Walker;
|
3363
3363
|
|
3364
3364
|
Object.defineProperty(async, "__esModule", { value: true });
|
3365
|
-
async.callback = async.promise =
|
3365
|
+
async.callback = async.promise = undefined;
|
3366
3366
|
const walker_1$1 = walker;
|
3367
3367
|
function promise(root, options) {
|
3368
3368
|
return new Promise((resolve, reject) => {
|
@@ -3383,7 +3383,7 @@ async.callback = callback;
|
|
3383
3383
|
var sync$2 = {};
|
3384
3384
|
|
3385
3385
|
Object.defineProperty(sync$2, "__esModule", { value: true });
|
3386
|
-
sync$2.sync =
|
3386
|
+
sync$2.sync = undefined;
|
3387
3387
|
const walker_1 = walker;
|
3388
3388
|
function sync$1(root, options) {
|
3389
3389
|
const walker = new walker_1.Walker(root, options);
|
@@ -3392,7 +3392,7 @@ function sync$1(root, options) {
|
|
3392
3392
|
sync$2.sync = sync$1;
|
3393
3393
|
|
3394
3394
|
Object.defineProperty(apiBuilder, "__esModule", { value: true });
|
3395
|
-
apiBuilder.APIBuilder =
|
3395
|
+
apiBuilder.APIBuilder = undefined;
|
3396
3396
|
const async_1 = async;
|
3397
3397
|
const sync_1 = sync$2;
|
3398
3398
|
class APIBuilder {
|
@@ -3415,7 +3415,7 @@ class APIBuilder {
|
|
3415
3415
|
apiBuilder.APIBuilder = APIBuilder;
|
3416
3416
|
|
3417
3417
|
Object.defineProperty(builder, "__esModule", { value: true });
|
3418
|
-
builder.Builder =
|
3418
|
+
builder.Builder = undefined;
|
3419
3419
|
const path_1 = require$$0$2;
|
3420
3420
|
const api_builder_1 = apiBuilder;
|
3421
3421
|
var pm = null;
|
@@ -3555,7 +3555,7 @@ var types$1 = {};
|
|
3555
3555
|
Object.defineProperty(types$1, "__esModule", { value: true });
|
3556
3556
|
|
3557
3557
|
(function (exports) {
|
3558
|
-
var __createBinding = (dist
|
3558
|
+
var __createBinding = (dist.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3559
3559
|
if (k2 === undefined) k2 = k;
|
3560
3560
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
3561
3561
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
@@ -3566,11 +3566,11 @@ Object.defineProperty(types$1, "__esModule", { value: true });
|
|
3566
3566
|
if (k2 === undefined) k2 = k;
|
3567
3567
|
o[k2] = m[k];
|
3568
3568
|
}));
|
3569
|
-
var __exportStar = (dist
|
3569
|
+
var __exportStar = (dist.__exportStar) || function(m, exports) {
|
3570
3570
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
3571
3571
|
};
|
3572
3572
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3573
|
-
exports.fdir =
|
3573
|
+
exports.fdir = undefined;
|
3574
3574
|
const builder_1 = builder;
|
3575
3575
|
Object.defineProperty(exports, "fdir", { enumerable: true, get: function () { return builder_1.Builder; } });
|
3576
3576
|
__exportStar(types$1, exports);
|
@@ -3599,7 +3599,7 @@ function decodeInteger(reader, relative) {
|
|
3599
3599
|
const shouldNegate = value & 1;
|
3600
3600
|
value >>>= 1;
|
3601
3601
|
if (shouldNegate) {
|
3602
|
-
value = -
|
3602
|
+
value = -2147483648 | -value;
|
3603
3603
|
}
|
3604
3604
|
return relative + value;
|
3605
3605
|
}
|
@@ -7814,7 +7814,7 @@ function cast$2(map) {
|
|
7814
7814
|
function encodedMappings(map) {
|
7815
7815
|
var _a;
|
7816
7816
|
var _b;
|
7817
|
-
return ((_a = (_b = cast$2(map))._encoded) !== null && _a !==
|
7817
|
+
return ((_a = (_b = cast$2(map))._encoded) !== null && _a !== undefined ? _a : (_b._encoded = encode$1(cast$2(map)._decoded)));
|
7818
7818
|
}
|
7819
7819
|
/**
|
7820
7820
|
* Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.
|
@@ -8308,7 +8308,7 @@ class SourceMap {
|
|
8308
8308
|
* VLQ encoded) mappings.
|
8309
8309
|
*/
|
8310
8310
|
function remapping(input, loader, options) {
|
8311
|
-
const opts = { excludeContent:
|
8311
|
+
const opts = { excludeContent: false, decodedMappings: false };
|
8312
8312
|
const tree = buildSourceMapTree(input, loader);
|
8313
8313
|
return new SourceMap(traceMappings(tree), opts);
|
8314
8314
|
}
|
@@ -9879,7 +9879,7 @@ function numberToPos(source, offset) {
|
|
9879
9879
|
function generateCodeFrame(source, start = 0, end) {
|
9880
9880
|
start = Math.max(posToNumber(source, start), 0);
|
9881
9881
|
end = Math.min(
|
9882
|
-
end !==
|
9882
|
+
end !== undefined ? posToNumber(source, end) : start,
|
9883
9883
|
source.length
|
9884
9884
|
);
|
9885
9885
|
const lines = source.split(splitRE);
|
@@ -10135,7 +10135,7 @@ function combineSourcemaps(filename, sourcemapList) {
|
|
10135
10135
|
});
|
10136
10136
|
let map;
|
10137
10137
|
let mapIndex = 1;
|
10138
|
-
const useArrayInterface = sourcemapList.slice(0, -1).find((m) => m.sources.length !== 1) ===
|
10138
|
+
const useArrayInterface = sourcemapList.slice(0, -1).find((m) => m.sources.length !== 1) === undefined;
|
10139
10139
|
if (useArrayInterface) {
|
10140
10140
|
map = remapping(sourcemapList, () => null);
|
10141
10141
|
} else {
|
@@ -10166,21 +10166,21 @@ async function getLocalhostAddressIfDiffersFromDNS() {
|
|
10166
10166
|
promises.lookup("localhost", { verbatim: true })
|
10167
10167
|
]);
|
10168
10168
|
const isSame = nodeResult.family === dnsResult.family && nodeResult.address === dnsResult.address;
|
10169
|
-
return isSame ?
|
10169
|
+
return isSame ? undefined : nodeResult.address;
|
10170
10170
|
}
|
10171
10171
|
function diffDnsOrderChange(oldUrls, newUrls) {
|
10172
10172
|
return !(oldUrls === newUrls || oldUrls && newUrls && arrayEqual(oldUrls.local, newUrls.local) && arrayEqual(oldUrls.network, newUrls.network));
|
10173
10173
|
}
|
10174
10174
|
async function resolveHostname(optionsHost) {
|
10175
10175
|
let host;
|
10176
|
-
if (optionsHost ===
|
10176
|
+
if (optionsHost === undefined || optionsHost === false) {
|
10177
10177
|
host = "localhost";
|
10178
10178
|
} else if (optionsHost === true) {
|
10179
|
-
host =
|
10179
|
+
host = undefined;
|
10180
10180
|
} else {
|
10181
10181
|
host = optionsHost;
|
10182
10182
|
}
|
10183
|
-
let name = host ===
|
10183
|
+
let name = host === undefined || wildcardHosts.has(host) ? "localhost" : host;
|
10184
10184
|
if (host === "localhost") {
|
10185
10185
|
const localhostAddr = await getLocalhostAddressIfDiffersFromDNS();
|
10186
10186
|
if (localhostAddr) {
|
@@ -10201,7 +10201,7 @@ async function resolveServerUrls(server, options, config) {
|
|
10201
10201
|
const protocol = options.https ? "https" : "http";
|
10202
10202
|
const port = address.port;
|
10203
10203
|
const base = config.rawBase === "./" || config.rawBase === "" ? "/" : config.rawBase;
|
10204
|
-
if (hostname.host !==
|
10204
|
+
if (hostname.host !== undefined && !wildcardHosts.has(hostname.host)) {
|
10205
10205
|
let hostnameName = hostname.name;
|
10206
10206
|
if (hostnameName.includes(":")) {
|
10207
10207
|
hostnameName = `[${hostnameName}]`;
|
@@ -10295,9 +10295,9 @@ function mergeWithDefaultsRecursively(defaults, values) {
|
|
10295
10295
|
const merged = defaults;
|
10296
10296
|
for (const key in values) {
|
10297
10297
|
const value = values[key];
|
10298
|
-
if (value ===
|
10298
|
+
if (value === undefined) continue;
|
10299
10299
|
const existing = merged[key];
|
10300
|
-
if (existing ===
|
10300
|
+
if (existing === undefined) {
|
10301
10301
|
merged[key] = value;
|
10302
10302
|
continue;
|
10303
10303
|
}
|
@@ -10515,7 +10515,7 @@ function createSerialPromiseQueue() {
|
|
10515
10515
|
previousTask = depTasks;
|
10516
10516
|
const [, result] = await depTasks;
|
10517
10517
|
if (previousTask === depTasks) {
|
10518
|
-
previousTask =
|
10518
|
+
previousTask = undefined;
|
10519
10519
|
}
|
10520
10520
|
return result;
|
10521
10521
|
}
|
@@ -10536,9 +10536,12 @@ function displayTime(time) {
|
|
10536
10536
|
if (time < 60) {
|
10537
10537
|
return `${time.toFixed(2)}s`;
|
10538
10538
|
}
|
10539
|
-
const mins =
|
10540
|
-
const seconds = time % 60;
|
10541
|
-
|
10539
|
+
const mins = Math.floor(time / 60);
|
10540
|
+
const seconds = Math.round(time % 60);
|
10541
|
+
if (seconds === 60) {
|
10542
|
+
return `${mins + 1}m`;
|
10543
|
+
}
|
10544
|
+
return `${mins}m${seconds < 1 ? "" : ` ${seconds}s`}`;
|
10542
10545
|
}
|
10543
10546
|
function encodeURIPath(uri) {
|
10544
10547
|
if (uri.startsWith("data:")) return uri;
|
@@ -10552,16 +10555,26 @@ function partialEncodeURIPath(uri) {
|
|
10552
10555
|
const postfix = filePath !== uri ? uri.slice(filePath.length) : "";
|
10553
10556
|
return filePath.replaceAll("%", "%25") + postfix;
|
10554
10557
|
}
|
10558
|
+
const sigtermCallbacks = /* @__PURE__ */ new Set();
|
10559
|
+
const parentSigtermCallback = async (signal, exitCode) => {
|
10560
|
+
await Promise.all([...sigtermCallbacks].map((cb) => cb(signal, exitCode)));
|
10561
|
+
};
|
10555
10562
|
const setupSIGTERMListener = (callback) => {
|
10556
|
-
|
10557
|
-
|
10558
|
-
process.
|
10563
|
+
if (sigtermCallbacks.size === 0) {
|
10564
|
+
process.once("SIGTERM", parentSigtermCallback);
|
10565
|
+
if (process.env.CI !== "true") {
|
10566
|
+
process.stdin.on("end", parentSigtermCallback);
|
10567
|
+
}
|
10559
10568
|
}
|
10569
|
+
sigtermCallbacks.add(callback);
|
10560
10570
|
};
|
10561
10571
|
const teardownSIGTERMListener = (callback) => {
|
10562
|
-
|
10563
|
-
if (
|
10564
|
-
process.
|
10572
|
+
sigtermCallbacks.delete(callback);
|
10573
|
+
if (sigtermCallbacks.size === 0) {
|
10574
|
+
process.off("SIGTERM", parentSigtermCallback);
|
10575
|
+
if (process.env.CI !== "true") {
|
10576
|
+
process.stdin.off("end", parentSigtermCallback);
|
10577
|
+
}
|
10565
10578
|
}
|
10566
10579
|
};
|
10567
10580
|
|
@@ -10583,7 +10596,7 @@ function clearScreen() {
|
|
10583
10596
|
}
|
10584
10597
|
let timeFormatter;
|
10585
10598
|
function getTimeFormatter() {
|
10586
|
-
timeFormatter ??= new Intl.DateTimeFormat(
|
10599
|
+
timeFormatter ??= new Intl.DateTimeFormat(undefined, {
|
10587
10600
|
hour: "numeric",
|
10588
10601
|
minute: "numeric",
|
10589
10602
|
second: "numeric"
|
@@ -10687,7 +10700,7 @@ function printServerUrls(urls, optionsHost, info) {
|
|
10687
10700
|
for (const url of urls.network) {
|
10688
10701
|
info(` ${colors$1.green("\u279C")} ${colors$1.bold("Network")}: ${colorUrl(url)}`);
|
10689
10702
|
}
|
10690
|
-
if (urls.network.length === 0 && optionsHost ===
|
10703
|
+
if (urls.network.length === 0 && optionsHost === undefined) {
|
10691
10704
|
info(
|
10692
10705
|
colors$1.dim(` ${colors$1.green("\u279C")} ${colors$1.bold("Network")}: use `) + colors$1.bold("--host") + colors$1.dim(" to expose")
|
10693
10706
|
);
|
@@ -12151,14 +12164,14 @@ async function transformWithEsbuild(code, filename, options, inMap, config, watc
|
|
12151
12164
|
...compilerOptionsForFile,
|
12152
12165
|
...tsconfigRaw?.compilerOptions
|
12153
12166
|
};
|
12154
|
-
if (compilerOptions.useDefineForClassFields ===
|
12167
|
+
if (compilerOptions.useDefineForClassFields === undefined && compilerOptions.target === undefined) {
|
12155
12168
|
compilerOptions.useDefineForClassFields = false;
|
12156
12169
|
}
|
12157
12170
|
if (options) {
|
12158
|
-
if (options.jsx) compilerOptions.jsx =
|
12159
|
-
if (options.jsxFactory) compilerOptions.jsxFactory =
|
12160
|
-
if (options.jsxFragment) compilerOptions.jsxFragmentFactory =
|
12161
|
-
if (options.jsxImportSource) compilerOptions.jsxImportSource =
|
12171
|
+
if (options.jsx) compilerOptions.jsx = undefined;
|
12172
|
+
if (options.jsxFactory) compilerOptions.jsxFactory = undefined;
|
12173
|
+
if (options.jsxFragment) compilerOptions.jsxFragmentFactory = undefined;
|
12174
|
+
if (options.jsxImportSource) compilerOptions.jsxImportSource = undefined;
|
12162
12175
|
}
|
12163
12176
|
tsconfigRaw = {
|
12164
12177
|
...tsconfigRaw,
|
@@ -12243,7 +12256,7 @@ function esbuildPlugin(config) {
|
|
12243
12256
|
code,
|
12244
12257
|
id,
|
12245
12258
|
transformOptions,
|
12246
|
-
|
12259
|
+
undefined,
|
12247
12260
|
config,
|
12248
12261
|
server?.watcher
|
12249
12262
|
);
|
@@ -12274,7 +12287,7 @@ const rollupToEsbuildFormatMap = {
|
|
12274
12287
|
// that `{ treeShaking: true }` removes a top-level no-side-effect variable
|
12275
12288
|
// like: `var Lib = 1`, which becomes `` after esbuild transforming,
|
12276
12289
|
// but thankfully rollup does not do this optimization now
|
12277
|
-
iife:
|
12290
|
+
iife: undefined
|
12278
12291
|
};
|
12279
12292
|
const buildEsbuildPlugin = () => {
|
12280
12293
|
return {
|
@@ -12295,7 +12308,7 @@ const buildEsbuildPlugin = () => {
|
|
12295
12308
|
code,
|
12296
12309
|
chunk.fileName,
|
12297
12310
|
options,
|
12298
|
-
|
12311
|
+
undefined,
|
12299
12312
|
config
|
12300
12313
|
);
|
12301
12314
|
if (config.build.lib) {
|
@@ -12322,7 +12335,7 @@ function resolveEsbuildTranspileOptions(config, format) {
|
|
12322
12335
|
charset: "utf8",
|
12323
12336
|
...esbuildOptions,
|
12324
12337
|
loader: "js",
|
12325
|
-
target: target ||
|
12338
|
+
target: target || undefined,
|
12326
12339
|
format: rollupToEsbuildFormatMap[format],
|
12327
12340
|
supported: {
|
12328
12341
|
...defaultEsbuildSupported,
|
@@ -12772,7 +12785,7 @@ var WorkerWithFallback = class {
|
|
12772
12785
|
/** @internal */
|
12773
12786
|
_shouldUseFake;
|
12774
12787
|
constructor(fn, options) {
|
12775
|
-
this._disableReal = options.max !==
|
12788
|
+
this._disableReal = options.max !== undefined && options.max <= 0;
|
12776
12789
|
this._realWorker = new Worker(fn, options);
|
12777
12790
|
this._fakeWorker = new FakeWorker(fn, options);
|
12778
12791
|
this._shouldUseFake = options.shouldUseFake;
|
@@ -13353,13 +13366,13 @@ function checkPublicFile(url, config) {
|
|
13353
13366
|
const fileName = cleanUrl(url);
|
13354
13367
|
const publicFiles = getPublicFiles(config);
|
13355
13368
|
if (publicFiles) {
|
13356
|
-
return publicFiles.has(fileName) ? normalizePath$3(path$d.join(publicDir, fileName)) :
|
13369
|
+
return publicFiles.has(fileName) ? normalizePath$3(path$d.join(publicDir, fileName)) : undefined;
|
13357
13370
|
}
|
13358
13371
|
const publicFile = normalizePath$3(path$d.join(publicDir, fileName));
|
13359
13372
|
if (!publicFile.startsWith(withTrailingSlash(publicDir))) {
|
13360
13373
|
return;
|
13361
13374
|
}
|
13362
|
-
return fs__default.existsSync(publicFile) ? publicFile :
|
13375
|
+
return fs__default.existsSync(publicFile) ? publicFile : undefined;
|
13363
13376
|
}
|
13364
13377
|
|
13365
13378
|
const assetUrlRE = /__VITE_ASSET__([\w$]+)__(?:\$_(.*?)__)?/g;
|
@@ -13467,7 +13480,7 @@ function assetPlugin(config) {
|
|
13467
13480
|
// Force rollup to keep this module from being shared between other entry points if it's an entrypoint.
|
13468
13481
|
// If the resulting chunk is empty, it will be removed in generateBundle.
|
13469
13482
|
moduleSideEffects: config.command === "build" && this.getModuleInfo(id)?.isEntry ? "no-treeshake" : false,
|
13470
|
-
meta: config.command === "build" ? { "vite:asset": true } :
|
13483
|
+
meta: config.command === "build" ? { "vite:asset": true } : undefined
|
13471
13484
|
};
|
13472
13485
|
},
|
13473
13486
|
renderChunk(code, chunk, opts) {
|
@@ -13517,7 +13530,7 @@ async function fileToDevUrl(environment, id, skipBase = false) {
|
|
13517
13530
|
if (svgExtRE.test(id)) {
|
13518
13531
|
const file = publicFile || cleanUrl(id);
|
13519
13532
|
const content = await fsp.readFile(file);
|
13520
|
-
if (shouldInline(environment, file, id, content,
|
13533
|
+
if (shouldInline(environment, file, id, content, undefined, undefined)) {
|
13521
13534
|
return assetToDataURL(environment, file, content);
|
13522
13535
|
}
|
13523
13536
|
}
|
@@ -13620,7 +13633,7 @@ function shouldInline(environment, file, id, content, buildPluginContext, forceI
|
|
13620
13633
|
if (environment.config.build.lib) return true;
|
13621
13634
|
if (buildPluginContext.getModuleInfo(id)?.isEntry) return false;
|
13622
13635
|
}
|
13623
|
-
if (forceInline !==
|
13636
|
+
if (forceInline !== undefined) return forceInline;
|
13624
13637
|
if (file.endsWith(".html")) return false;
|
13625
13638
|
if (file.endsWith(".svg") && id.includes("#")) return false;
|
13626
13639
|
let limit;
|
@@ -13688,7 +13701,7 @@ function manifestPlugin() {
|
|
13688
13701
|
function getInternalImports(imports) {
|
13689
13702
|
const filteredImports = [];
|
13690
13703
|
for (const file of imports) {
|
13691
|
-
if (bundle[file] ===
|
13704
|
+
if (bundle[file] === undefined) {
|
13692
13705
|
continue;
|
13693
13706
|
}
|
13694
13707
|
filteredImports.push(getChunkName(bundle[file]));
|
@@ -13773,7 +13786,7 @@ function manifestPlugin() {
|
|
13773
13786
|
this.emitFile({
|
13774
13787
|
fileName: typeof buildOptions.manifest === "string" ? buildOptions.manifest : ".vite/manifest.json",
|
13775
13788
|
type: "asset",
|
13776
|
-
source: JSON.stringify(sortObjectKeys(manifest),
|
13789
|
+
source: JSON.stringify(sortObjectKeys(manifest), undefined, 2)
|
13777
13790
|
});
|
13778
13791
|
}
|
13779
13792
|
}
|
@@ -13784,7 +13797,7 @@ function getChunkOriginalFileName(chunk, root, format) {
|
|
13784
13797
|
let name = normalizePath$3(path$d.relative(root, chunk.facadeModuleId));
|
13785
13798
|
if (format === "system" && !chunk.name.includes("-legacy")) {
|
13786
13799
|
const ext = path$d.extname(name);
|
13787
|
-
const endPos = ext.length !== 0 ? -ext.length :
|
13800
|
+
const endPos = ext.length !== 0 ? -ext.length : undefined;
|
13788
13801
|
name = `${name.slice(0, endPos)}-legacy${ext}`;
|
13789
13802
|
}
|
13790
13803
|
return name.replace(/\0/g, "");
|
@@ -13832,8 +13845,8 @@ function dataURIPlugin() {
|
|
13832
13845
|
};
|
13833
13846
|
}
|
13834
13847
|
|
13835
|
-
/* es-module-lexer 1.
|
13836
|
-
var ImportType;!function(A){A[A.Static=1]="Static",A[A.Dynamic=2]="Dynamic",A[A.ImportMeta=3]="ImportMeta",A[A.StaticSourcePhase=4]="StaticSourcePhase",A[A.DynamicSourcePhase=5]="DynamicSourcePhase";}(ImportType||(ImportType={}));const A=1===new Uint8Array(new Uint16Array([1]).buffer)[0];function parse$e(E,g="@"){if(!C)return init.then((()=>parse$e(E)));const I=E.length+1,w=(C.__heap_base.value||C.__heap_base)+4*I-C.memory.buffer.byteLength;w>0&&C.memory.grow(Math.ceil(w/65536));const K=C.sa(I-1);if((A?B:Q)(E,new Uint16Array(C.memory.buffer,K,I)),!C.parse())throw Object.assign(new Error(`Parse error ${g}:${E.slice(0,C.e()).split("\n").length}:${C.e()-E.lastIndexOf("\n",C.e()-1)}`),{idx:C.e()});const D=[],o=[];for(;C.ri();){const A=C.is(),Q=C.ie(),B=C.it(),g=C.ai(),I=C.id(),w=C.ss(),K=C.se();let o;C.ip()&&(o=k(E.slice(-1===I?A-1:A,-1===I?Q+1:Q))),D.push({n:o,t:B,s:A,e:Q,ss:w,se:K,d:I,a:g});}for(;C.re();){const A=C.es(),Q=C.ee(),B=C.els(),g=C.ele(),I=E.slice(A,Q),w=I[0],K=B<0?void 0:E.slice(B,g),D=K?K[0]:"";o.push({s:A,e:Q,ls:B,le:g,n:'"'===w||"'"===w?k(I):I,ln:'"'===D||"'"===D?k(K):K});}function k(A){try{return (0, eval)(A)}catch(A){}}return [D,o,!!C.f(),!!C.ms()]}function Q(A,Q){const B=A.length;let C=0;for(;C<B;){const B=A.charCodeAt(C);Q[C++]=(255&B)<<8|B>>>8;}}function B(A,Q){const B=A.length;let C=0;for(;C<B;)Q[C]=A.charCodeAt(C++);}let C;const init=WebAssembly.compile((E="AGFzbQEAAAABKwhgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gA39/fwADMTAAAQECAgICAgICAgICAgICAgICAgIAAwMDBAQAAAUAAAAAAAMDAwAGAAAABwAGAgUEBQFwAQEBBQMBAAEGDwJ/AUHA8gALfwBBwPIACwd6FQZtZW1vcnkCAAJzYQAAAWUAAwJpcwAEAmllAAUCc3MABgJzZQAHAml0AAgCYWkACQJpZAAKAmlwAAsCZXMADAJlZQANA2VscwAOA2VsZQAPAnJpABACcmUAEQFmABICbXMAEwVwYXJzZQAUC19faGVhcF9iYXNlAwEKm0EwaAEBf0EAIAA2AoAKQQAoAtwJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgKECkEAIAA2AogKQQBBADYC4AlBAEEANgLwCUEAQQA2AugJQQBBADYC5AlBAEEANgL4CUEAQQA2AuwJIAEL0wEBA39BACgC8AkhBEEAQQAoAogKIgU2AvAJQQAgBDYC9Al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AHUAbgBjAHQAaQBvAG4AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGMAbwBuAHQAaQBuAGkAbgBzAHQAYQBuAHQAeQBiAHIAZQBhAHIAZQB0AHUAcgBkAGUAYgB1AGcAZwBlAGEAdwBhAGkAdABoAHIAdwBoAGkAbABlAGkAZgBjAGEAdABjAGYAaQBuAGEAbABsAGUAbABzAABB0AkLEAEAAAACAAAAAAQAAEA5AAA=","undefined"!=typeof Buffer?Buffer.from(E,"base64"):Uint8Array.from(atob(E),(A=>A.charCodeAt(0))))).then(WebAssembly.instantiate).then((({exports:A})=>{C=A;}));var E;
|
13848
|
+
/* es-module-lexer 1.6.0 */
|
13849
|
+
var ImportType;!function(A){A[A.Static=1]="Static",A[A.Dynamic=2]="Dynamic",A[A.ImportMeta=3]="ImportMeta",A[A.StaticSourcePhase=4]="StaticSourcePhase",A[A.DynamicSourcePhase=5]="DynamicSourcePhase";}(ImportType||(ImportType={}));const A=1===new Uint8Array(new Uint16Array([1]).buffer)[0];function parse$e(E,g="@"){if(!C)return init.then((()=>parse$e(E)));const I=E.length+1,w=(C.__heap_base.value||C.__heap_base)+4*I-C.memory.buffer.byteLength;w>0&&C.memory.grow(Math.ceil(w/65536));const K=C.sa(I-1);if((A?B:Q)(E,new Uint16Array(C.memory.buffer,K,I)),!C.parse())throw Object.assign(new Error(`Parse error ${g}:${E.slice(0,C.e()).split("\n").length}:${C.e()-E.lastIndexOf("\n",C.e()-1)}`),{idx:C.e()});const o=[],D=[];for(;C.ri();){const A=C.is(),Q=C.ie(),B=C.it(),g=C.ai(),I=C.id(),w=C.ss(),K=C.se();let D;C.ip()&&(D=k(E.slice(-1===I?A-1:A,-1===I?Q+1:Q))),o.push({n:D,t:B,s:A,e:Q,ss:w,se:K,d:I,a:g});}for(;C.re();){const A=C.es(),Q=C.ee(),B=C.els(),g=C.ele(),I=E.slice(A,Q),w=I[0],K=B<0?undefined:E.slice(B,g),o=K?K[0]:"";D.push({s:A,e:Q,ls:B,le:g,n:'"'===w||"'"===w?k(I):I,ln:'"'===o||"'"===o?k(K):K});}function k(A){try{return (0, eval)(A)}catch(A){}}return [o,D,!!C.f(),!!C.ms()]}function Q(A,Q){const B=A.length;let C=0;for(;C<B;){const B=A.charCodeAt(C);Q[C++]=(255&B)<<8|B>>>8;}}function B(A,Q){const B=A.length;let C=0;for(;C<B;)Q[C]=A.charCodeAt(C++);}let C;const E=()=>{return A="AGFzbQEAAAABKwhgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gA39/fwADMTAAAQECAgICAgICAgICAgICAgICAgIAAwMDBAQAAAUAAAAAAAMDAwAGAAAABwAGAgUEBQFwAQEBBQMBAAEGDwJ/AUHA8gALfwBBwPIACwd6FQZtZW1vcnkCAAJzYQAAAWUAAwJpcwAEAmllAAUCc3MABgJzZQAHAml0AAgCYWkACQJpZAAKAmlwAAsCZXMADAJlZQANA2VscwAOA2VsZQAPAnJpABACcmUAEQFmABICbXMAEwVwYXJzZQAUC19faGVhcF9iYXNlAwEKm0EwaAEBf0EAIAA2AoAKQQAoAtwJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgKECkEAIAA2AogKQQBBADYC4AlBAEEANgLwCUEAQQA2AugJQQBBADYC5AlBAEEANgL4CUEAQQA2AuwJIAEL0wEBA39BACgC8AkhBEEAQQAoAogKIgU2AvAJQQAgBDYC9AlBACAFQSRqNgKICiAEQSBqQeAJIAQbIAU2AgBBACgC1AkhBEEAKALQCSEGIAUgATYCACAFIAA2AgggBSACIAJBAmpBACAGIANGIgAbIAQgA0YiBBs2AgwgBSADNgIUIAVBADYCECAFIAI2AgQgBUEANgIgIAVBA0EBQQIgABsgBBs2AhwgBUEAKALQCSADRiICOgAYAkACQCACDQBBACgC1AkgA0cNAQtBAEEBOgCMCgsLXgEBf0EAKAL4CSIEQRBqQeQJIAQbQQAoAogKIgQ2AgBBACAENgL4CUEAIARBFGo2AogKQQBBAToAjAogBEEANgIQIAQ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mo2ArAKQQEQKUH9AEYNAEEAKAKwCiEADAELC0EAKALwCSIBIAI2AhAgAUEAKAKwCkECajYCDAttAQJ/AkACQANAAkAgAEH//wNxIgFBd2oiAkEXSw0AQQEgAnRBn4CABHENAgsgAUGgAUYNASAAIQIgARAoDQJBACECQQBBACgCsAoiAEECajYCsAogAC8BAiIADQAMAgsLIAAhAgsgAkH//wNxC6sBAQR/AkACQEEAKAKwCiICLwEAIgNB4QBGDQAgASEEIAAhBQwBC0EAIAJBBGo2ArAKQQEQKSECQQAoArAKIQUCQAJAIAJBIkYNACACQSdGDQAgAhAsGkEAKAKwCiEEDAELIAIQGkEAQQAoArAKQQJqIgQ2ArAKC0EBECkhA0EAKAKwCiECCwJAIAIgBUYNACAFIARBACAAIAAgAUYiAhtBACABIAIbEAILIAMLcgEEf0EAKAKwCiEAQQAoArQKIQECQAJAA0AgAEECaiECIAAgAU8NAQJAAkAgAi8BACIDQaR/ag4CAQQACyACIQAgA0F2ag4EAgEBAgELIABBBGohAAwACwtBACACNgKwChAlQQAPC0EAIAI2ArAKQd0AC0kBA39BACEDAkAgAkUNAAJAA0AgAC0AACIEIAEtAAAiBUcNASABQQFqIQEgAEEBaiEAIAJBf2oiAg0ADAILCyAEIAVrIQMLIAMLC+wBAgBBgAgLzgEAAHgAcABvAHIAdABtAHAAbwByAHQAZgBvAHIAZQB0AGEAbwB1AHIAYwBlAHIAbwBtAHUAbgBjAHQAaQBvAG4AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGMAbwBuAHQAaQBuAGkAbgBzAHQAYQBuAHQAeQBiAHIAZQBhAHIAZQB0AHUAcgBkAGUAYgB1AGcAZwBlAGEAdwBhAGkAdABoAHIAdwBoAGkAbABlAGkAZgBjAGEAdABjAGYAaQBuAGEAbABsAGUAbABzAABB0AkLEAEAAAACAAAAAAQAAEA5AAA=","undefined"!=typeof Buffer?Buffer.from(A,"base64"):Uint8Array.from(atob(A),(A=>A.charCodeAt(0)));var A;};const init=WebAssembly.compile(E()).then(WebAssembly.instantiate).then((({exports:A})=>{C=A;}));
|
13837
13850
|
|
13838
13851
|
var convertSourceMap$1 = {};
|
13839
13852
|
|
@@ -14144,7 +14157,7 @@ function getCodeWithSourcemap(type, code, map) {
|
|
14144
14157
|
}
|
14145
14158
|
function applySourcemapIgnoreList(map, sourcemapPath, sourcemapIgnoreList, logger) {
|
14146
14159
|
let { x_google_ignoreList } = map;
|
14147
|
-
if (x_google_ignoreList ===
|
14160
|
+
if (x_google_ignoreList === undefined) {
|
14148
14161
|
x_google_ignoreList = [];
|
14149
14162
|
}
|
14150
14163
|
for (let sourcesIndex = 0; sourcesIndex < map.sources.length; ++sourcesIndex) {
|
@@ -15067,7 +15080,7 @@ function normalizePattern(pattern, expandDirectories, cwd, properties, isIgnore)
|
|
15067
15080
|
result = posix.normalize(result);
|
15068
15081
|
}
|
15069
15082
|
const parentDirectoryMatch = /^(\/?\.\.)+/.exec(result);
|
15070
|
-
if (parentDirectoryMatch == null ?
|
15083
|
+
if (parentDirectoryMatch == null ? undefined : parentDirectoryMatch[0]) {
|
15071
15084
|
const potentialRoot = posix.join(cwd, parentDirectoryMatch[0]);
|
15072
15085
|
if (properties.root.length > potentialRoot.length) {
|
15073
15086
|
properties.root = potentialRoot;
|
@@ -15182,7 +15195,7 @@ function crawl(options, cwd, sync) {
|
|
15182
15195
|
return sync ? api.sync().map((p) => getRelativePath(p, cwd, properties.root) + (!p || p.endsWith("/") ? "/" : "")) : api.withPromise().then((paths) => paths.map((p) => getRelativePath(p, cwd, properties.root) + (!p || p.endsWith("/") ? "/" : "")));
|
15183
15196
|
}
|
15184
15197
|
async function glob(patternsOrOptions, options) {
|
15185
|
-
if (patternsOrOptions && (options == null ?
|
15198
|
+
if (patternsOrOptions && (options == null ? undefined : options.patterns)) {
|
15186
15199
|
throw new Error("Cannot pass patterns as both an argument and an option");
|
15187
15200
|
}
|
15188
15201
|
const opts = Array.isArray(patternsOrOptions) || typeof patternsOrOptions === "string" ? { ...options, patterns: patternsOrOptions } : patternsOrOptions;
|
@@ -15190,7 +15203,7 @@ async function glob(patternsOrOptions, options) {
|
|
15190
15203
|
return crawl(opts, cwd, false);
|
15191
15204
|
}
|
15192
15205
|
function globSync(patternsOrOptions, options) {
|
15193
|
-
if (patternsOrOptions && (options == null ?
|
15206
|
+
if (patternsOrOptions && (options == null ? undefined : options.patterns)) {
|
15194
15207
|
throw new Error("Cannot pass patterns as both an argument and an option");
|
15195
15208
|
}
|
15196
15209
|
const opts = Array.isArray(patternsOrOptions) || typeof patternsOrOptions === "string" ? { ...options, patterns: patternsOrOptions } : patternsOrOptions;
|
@@ -15258,7 +15271,7 @@ function alias$1(options = {}) {
|
|
15258
15271
|
return {
|
15259
15272
|
name: 'alias',
|
15260
15273
|
async buildStart(inputOptions) {
|
15261
|
-
await Promise.all([...(Array.isArray(options.entries) ? options.entries : []), options].map(({ customResolver }) => { var _a; return customResolver && ((_a = getHookFunction(customResolver.buildStart)) === null || _a ===
|
15274
|
+
await Promise.all([...(Array.isArray(options.entries) ? options.entries : []), options].map(({ customResolver }) => { var _a; return customResolver && ((_a = getHookFunction(customResolver.buildStart)) === null || _a === undefined ? undefined : _a.call(this, inputOptions)); }));
|
15262
15275
|
},
|
15263
15276
|
resolveId(importee, importer, resolveOptions) {
|
15264
15277
|
// First match is supposed to be the correct one
|
@@ -15284,7 +15297,7 @@ function alias$1(options = {}) {
|
|
15284
15297
|
};
|
15285
15298
|
}
|
15286
15299
|
|
15287
|
-
function e(e,n,r){throw new Error(r?`No known conditions for "${n}" specifier in "${e}" package`:`Missing "${n}" specifier in "${e}" package`)}function n(n,i,o,f){let s,u,l=r(n,o),c=function(e){let n=new Set(["default",...e.conditions||[]]);return e.unsafe||n.add(e.require?"require":"import"),e.unsafe||n.add(e.browser?"browser":"node"),n}(f||{}),a=i[l];if(
|
15300
|
+
function e(e,n,r){throw new Error(r?`No known conditions for "${n}" specifier in "${e}" package`:`Missing "${n}" specifier in "${e}" package`)}function n(n,i,o,f){let s,u,l=r(n,o),c=function(e){let n=new Set(["default",...e.conditions||[]]);return e.unsafe||n.add(e.require?"require":"import"),e.unsafe||n.add(e.browser?"browser":"node"),n}(f||{}),a=i[l];if(undefined===a){let e,n,r,t;for(t in i)n&&t.length<n.length||("/"===t[t.length-1]&&l.startsWith(t)?(u=l.substring(t.length),n=t):t.length>1&&(r=t.indexOf("*",1),~r&&(e=RegExp("^"+t.substring(0,r)+"(.*)"+t.substring(1+r)+"$").exec(l),e&&e[1]&&(u=e[1],n=t))));a=i[n];}return a||e(n,l),s=t(a,c),s||e(n,l,1),u&&function(e,n){let r,t=0,i=e.length,o=/[*]/g,f=/[/]$/;for(;t<i;t++)e[t]=o.test(r=e[t])?r.replace(o,n):f.test(r)?r+n:r;}(s,u),s}function r(e,n,r){if(e===n||"."===n)return ".";let t=e+"/",i=t.length,o=n.slice(0,i)===t,f=o?n.slice(i):n;return "#"===f[0]?f:"./"===f.slice(0,2)?f:"./"+f}function t(e,n,r){if(e){if("string"==typeof e)return r&&r.add(e),[e];let i,o;if(Array.isArray(e)){for(o=r||new Set,i=0;i<e.length;i++)t(e[i],n,o);if(!r&&o.size)return [...o]}else for(i in e)if(n.has(i))return t(e[i],n,r)}}function o(e,r,t){let i,o=e.exports;if(o){if("string"==typeof o)o={".":o};else for(i in o){"."!==i[0]&&(o={".":o});break}return n(e.name,o,r||".",t)}}function f(e,r,t){if(e.imports)return n(e.name,e.imports,r,t)}
|
15288
15301
|
|
15289
15302
|
const HASH_RE = /#/g;
|
15290
15303
|
const AMPERSAND_RE = /&/g;
|
@@ -15317,7 +15330,7 @@ function encodeQueryItem(key, value) {
|
|
15317
15330
|
return `${encodeQueryKey(key)}=${encodeQueryValue(value)}`;
|
15318
15331
|
}
|
15319
15332
|
function stringifyQuery(query) {
|
15320
|
-
return Object.keys(query).filter((k) => query[k] !==
|
15333
|
+
return Object.keys(query).filter((k) => query[k] !== undefined).map((k) => encodeQueryItem(k, query[k])).filter(Boolean).join("&");
|
15321
15334
|
}
|
15322
15335
|
|
15323
15336
|
new Set(builtinModules);
|
@@ -15327,7 +15340,7 @@ function clearImports(imports) {
|
|
15327
15340
|
function getImportNames(cleanedImports) {
|
15328
15341
|
const topLevelImports = cleanedImports.replace(/{([^}]*)}/, "");
|
15329
15342
|
const namespacedImport = topLevelImports.match(/\* as \s*(\S*)/)?.[1];
|
15330
|
-
const defaultImport = topLevelImports.split(",").find((index) => !/[*{}]/.test(index))?.trim() ||
|
15343
|
+
const defaultImport = topLevelImports.split(",").find((index) => !/[*{}]/.test(index))?.trim() || undefined;
|
15331
15344
|
return {
|
15332
15345
|
namespacedImport,
|
15333
15346
|
defaultImport
|
@@ -15882,7 +15895,7 @@ function createIsConfiguredAsExternal(environment) {
|
|
15882
15895
|
const { config } = environment;
|
15883
15896
|
const { root, resolve } = config;
|
15884
15897
|
const { external, noExternal } = resolve;
|
15885
|
-
const noExternalFilter = typeof noExternal !== "boolean" && !(Array.isArray(noExternal) && noExternal.length === 0) && createFilter(
|
15898
|
+
const noExternalFilter = typeof noExternal !== "boolean" && !(Array.isArray(noExternal) && noExternal.length === 0) && createFilter(undefined, noExternal, { resolve: false });
|
15886
15899
|
const targetConditions = resolve.externalConditions;
|
15887
15900
|
const resolveOptions = {
|
15888
15901
|
...resolve,
|
@@ -15900,9 +15913,9 @@ function createIsConfiguredAsExternal(environment) {
|
|
15900
15913
|
id,
|
15901
15914
|
// Skip passing importer in build to avoid externalizing non-hoisted dependencies
|
15902
15915
|
// unresolvable from root (which would be unresolvable from output bundles also)
|
15903
|
-
config.command === "build" ?
|
15916
|
+
config.command === "build" ? undefined : importer,
|
15904
15917
|
resolveOptions,
|
15905
|
-
|
15918
|
+
undefined,
|
15906
15919
|
false
|
15907
15920
|
);
|
15908
15921
|
if (!resolved) {
|
@@ -15987,7 +16000,7 @@ function resolvePlugin(resolveOptions) {
|
|
15987
16000
|
id.startsWith("/virtual:")) {
|
15988
16001
|
return;
|
15989
16002
|
}
|
15990
|
-
const depsOptimizer = resolveOptions.optimizeDeps && this.environment.mode === "dev" ? this.environment.depsOptimizer :
|
16003
|
+
const depsOptimizer = resolveOptions.optimizeDeps && this.environment.mode === "dev" ? this.environment.depsOptimizer : undefined;
|
15991
16004
|
if (id.startsWith(browserExternalId)) {
|
15992
16005
|
return id;
|
15993
16006
|
}
|
@@ -16483,7 +16496,7 @@ function resolveExportsOrImports(pkg, key, options, type) {
|
|
16483
16496
|
}
|
16484
16497
|
const fn = type === "imports" ? f : o;
|
16485
16498
|
const result = fn(pkg, key, { conditions, unsafe: true });
|
16486
|
-
return result ? result[0] :
|
16499
|
+
return result ? result[0] : undefined;
|
16487
16500
|
}
|
16488
16501
|
function resolveDeepImport(id, { setResolvedCache, getResolvedCache, dir, data }, options) {
|
16489
16502
|
const cache = getResolvedCache(id, options);
|
@@ -16496,13 +16509,13 @@ function resolveDeepImport(id, { setResolvedCache, getResolvedCache, dir, data }
|
|
16496
16509
|
if (isObject$2(exportsField) && !Array.isArray(exportsField)) {
|
16497
16510
|
const { file, postfix } = splitFileAndPostfix(relativeId);
|
16498
16511
|
const exportsId = resolveExportsOrImports(data, file, options, "exports");
|
16499
|
-
if (exportsId !==
|
16512
|
+
if (exportsId !== undefined) {
|
16500
16513
|
relativeId = exportsId + postfix;
|
16501
16514
|
} else {
|
16502
|
-
relativeId =
|
16515
|
+
relativeId = undefined;
|
16503
16516
|
}
|
16504
16517
|
} else {
|
16505
|
-
relativeId =
|
16518
|
+
relativeId = undefined;
|
16506
16519
|
}
|
16507
16520
|
if (!relativeId) {
|
16508
16521
|
throw new Error(
|
@@ -16546,8 +16559,8 @@ function tryResolveBrowserMapping(id, importer, options, isFilePath, externalize
|
|
16546
16559
|
browserMappedPath,
|
16547
16560
|
importer,
|
16548
16561
|
options,
|
16549
|
-
|
16550
|
-
|
16562
|
+
undefined,
|
16563
|
+
undefined
|
16551
16564
|
)?.id : tryFsResolve(path$d.join(pkg.dir, browserMappedPath), options)) {
|
16552
16565
|
debug$e?.(`[browser mapped] ${colors$1.cyan(id)} -> ${colors$1.dim(res)}`);
|
16553
16566
|
let result = { id: res };
|
@@ -16790,7 +16803,7 @@ function esbuildDepPlugin(environment, qualified, external) {
|
|
16790
16803
|
let entry;
|
16791
16804
|
if (!importer) {
|
16792
16805
|
if (entry = resolveEntry(id)) return entry;
|
16793
|
-
const aliased = await _resolve(environment, id,
|
16806
|
+
const aliased = await _resolve(environment, id, undefined, true);
|
16794
16807
|
if (aliased && (entry = resolveEntry(aliased))) {
|
16795
16808
|
return entry;
|
16796
16809
|
}
|
@@ -17074,7 +17087,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
|
|
17074
17087
|
yield ({
|
17075
17088
|
type: "RegularExpressionLiteral",
|
17076
17089
|
value: match[0],
|
17077
|
-
closed: match[1] !==
|
17090
|
+
closed: match[1] !== undefined && match[1] !== "\\"
|
17078
17091
|
});
|
17079
17092
|
continue;
|
17080
17093
|
}
|
@@ -17212,7 +17225,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
|
|
17212
17225
|
yield ({
|
17213
17226
|
type: "StringLiteral",
|
17214
17227
|
value: match[0],
|
17215
|
-
closed: match[2] !==
|
17228
|
+
closed: match[2] !== undefined
|
17216
17229
|
});
|
17217
17230
|
continue;
|
17218
17231
|
}
|
@@ -17313,7 +17326,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
|
|
17313
17326
|
yield ({
|
17314
17327
|
type: "JSXString",
|
17315
17328
|
value: match[0],
|
17316
|
-
closed: match[2] !==
|
17329
|
+
closed: match[2] !== undefined
|
17317
17330
|
});
|
17318
17331
|
continue;
|
17319
17332
|
}
|
@@ -17388,7 +17401,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
|
|
17388
17401
|
yield ({
|
17389
17402
|
type: "MultiLineComment",
|
17390
17403
|
value: match[0],
|
17391
|
-
closed: match[1] !==
|
17404
|
+
closed: match[1] !== undefined
|
17392
17405
|
});
|
17393
17406
|
continue;
|
17394
17407
|
}
|
@@ -17411,7 +17424,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
|
|
17411
17424
|
value: firstCodePoint
|
17412
17425
|
});
|
17413
17426
|
}
|
17414
|
-
return
|
17427
|
+
return undefined;
|
17415
17428
|
};
|
17416
17429
|
|
17417
17430
|
var jsTokens = /*@__PURE__*/getDefaultExportFromCjs(jsTokens_1);
|
@@ -17541,7 +17554,7 @@ function importGlobPlugin(config) {
|
|
17541
17554
|
if (mod) modules.push(mod);
|
17542
17555
|
}
|
17543
17556
|
}
|
17544
|
-
return modules.length > 0 ? [...oldModules, ...modules] :
|
17557
|
+
return modules.length > 0 ? [...oldModules, ...modules] : undefined;
|
17545
17558
|
}
|
17546
17559
|
};
|
17547
17560
|
}
|
@@ -17752,10 +17765,10 @@ async function transformGlobImport(code, id, root, resolveId, restoreQueryExtens
|
|
17752
17765
|
id = slash$1(id);
|
17753
17766
|
root = slash$1(root);
|
17754
17767
|
const isVirtual = isVirtualModule(id);
|
17755
|
-
const dir = isVirtual ?
|
17768
|
+
const dir = isVirtual ? undefined : dirname(id);
|
17756
17769
|
const matches = await parseImportGlob(
|
17757
17770
|
code,
|
17758
|
-
isVirtual ?
|
17771
|
+
isVirtual ? undefined : id,
|
17759
17772
|
root,
|
17760
17773
|
resolveId,
|
17761
17774
|
logger
|
@@ -17820,7 +17833,7 @@ async function transformGlobImport(code, id, root, resolveId, restoreQueryExtens
|
|
17820
17833
|
importQuery = `${importQuery}&lang.${fileExtension}`;
|
17821
17834
|
}
|
17822
17835
|
importPath = `${importPath}${importQuery}`;
|
17823
|
-
const importKey = options.import && options.import !== "*" ? options.import :
|
17836
|
+
const importKey = options.import && options.import !== "*" ? options.import : undefined;
|
17824
17837
|
if (options.eager) {
|
17825
17838
|
const variableName = `${importPrefix}${index}_${i}`;
|
17826
17839
|
const expression = importKey ? `{ ${importKey} as ${variableName} }` : `* as ${variableName}`;
|
@@ -18083,10 +18096,10 @@ async function computeEntries(environment) {
|
|
18083
18096
|
entries = await globEntries(explicitEntryPatterns, environment);
|
18084
18097
|
} else if (buildInput) {
|
18085
18098
|
const resolvePath = async (p) => {
|
18086
|
-
const id = (await environment.pluginContainer.resolveId(p,
|
18099
|
+
const id = (await environment.pluginContainer.resolveId(p, undefined, {
|
18087
18100
|
scan: true
|
18088
18101
|
}))?.id;
|
18089
|
-
if (id ===
|
18102
|
+
if (id === undefined) {
|
18090
18103
|
throw new Error(
|
18091
18104
|
`failed to resolve rollupOptions.input value: ${JSON.stringify(p)}.`
|
18092
18105
|
);
|
@@ -18365,7 +18378,7 @@ function esbuildScanPlugin(environment, depImports, missing, entries) {
|
|
18365
18378
|
}
|
18366
18379
|
return externalUnlessEntry({ path: id });
|
18367
18380
|
} else if (isScannable(resolved, optimizeDepsOptions.extensions)) {
|
18368
|
-
const namespace = htmlTypesRE.test(resolved) ? "html" :
|
18381
|
+
const namespace = htmlTypesRE.test(resolved) ? "html" : undefined;
|
18369
18382
|
return {
|
18370
18383
|
path: path$d.resolve(resolved),
|
18371
18384
|
namespace
|
@@ -18407,7 +18420,7 @@ function esbuildScanPlugin(environment, depImports, missing, entries) {
|
|
18407
18420
|
if (shouldExternalizeDep(resolved, id) || !isScannable(resolved, optimizeDepsOptions.extensions)) {
|
18408
18421
|
return externalUnlessEntry({ path: id });
|
18409
18422
|
}
|
18410
|
-
const namespace = htmlTypesRE.test(resolved) ? "html" :
|
18423
|
+
const namespace = htmlTypesRE.test(resolved) ? "html" : undefined;
|
18411
18424
|
return {
|
18412
18425
|
path: path$d.resolve(cleanUrl(resolved)),
|
18413
18426
|
namespace
|
@@ -18482,7 +18495,7 @@ function createOptimizeDepsIncludeResolver(environment) {
|
|
18482
18495
|
return async (id) => {
|
18483
18496
|
const lastArrowIndex = id.lastIndexOf(">");
|
18484
18497
|
if (lastArrowIndex === -1) {
|
18485
|
-
return await resolve(environment, id,
|
18498
|
+
return await resolve(environment, id, undefined);
|
18486
18499
|
}
|
18487
18500
|
const nestedRoot = id.substring(0, lastArrowIndex).trim();
|
18488
18501
|
const nestedPath = id.substring(lastArrowIndex + 1).trim();
|
@@ -18954,7 +18967,7 @@ async function prepareEsbuildOptimizerRun(environment, depsInfo, processingCache
|
|
18954
18967
|
idToExports[id] = exportsData;
|
18955
18968
|
})
|
18956
18969
|
);
|
18957
|
-
if (optimizerContext.cancelled) return { context:
|
18970
|
+
if (optimizerContext.cancelled) return { context: undefined, idToExports };
|
18958
18971
|
const define = {
|
18959
18972
|
"process.env.NODE_ENV": environment.config.keepProcessEnv ? (
|
18960
18973
|
// define process.env.NODE_ENV even for keepProcessEnv === true
|
@@ -18982,7 +18995,7 @@ async function prepareEsbuildOptimizerRun(environment, depsInfo, processingCache
|
|
18982
18995
|
// See https://github.com/evanw/esbuild/issues/1921#issuecomment-1152991694
|
18983
18996
|
banner: platform === "node" ? {
|
18984
18997
|
js: `import { createRequire } from 'module';const require = createRequire(import.meta.url);`
|
18985
|
-
} :
|
18998
|
+
} : undefined,
|
18986
18999
|
target: ESBUILD_MODULES_TARGET,
|
18987
19000
|
external,
|
18988
19001
|
logLevel: "error",
|
@@ -19209,7 +19222,7 @@ async function extractExportsData(environment, filePath) {
|
|
19209
19222
|
entryContent,
|
19210
19223
|
filePath,
|
19211
19224
|
{ loader },
|
19212
|
-
|
19225
|
+
undefined,
|
19213
19226
|
environment.config
|
19214
19227
|
);
|
19215
19228
|
parseResult = parse$e(transformed.code);
|
@@ -19245,34 +19258,45 @@ function isSingleDefaultExport(exports) {
|
|
19245
19258
|
const lockfileFormats = [
|
19246
19259
|
{
|
19247
19260
|
path: "node_modules/.package-lock.json",
|
19248
|
-
|
19261
|
+
checkPatchesDir: "patches",
|
19249
19262
|
manager: "npm"
|
19250
19263
|
},
|
19251
19264
|
{
|
19252
19265
|
// Yarn non-PnP
|
19253
19266
|
path: "node_modules/.yarn-state.yml",
|
19254
|
-
|
19267
|
+
checkPatchesDir: false,
|
19268
|
+
manager: "yarn"
|
19269
|
+
},
|
19270
|
+
{
|
19271
|
+
// Yarn v3+ PnP
|
19272
|
+
path: ".pnp.cjs",
|
19273
|
+
checkPatchesDir: ".yarn/patches",
|
19255
19274
|
manager: "yarn"
|
19256
19275
|
},
|
19257
19276
|
{
|
19258
|
-
// Yarn PnP
|
19259
|
-
path: ".
|
19260
|
-
|
19277
|
+
// Yarn v2 PnP
|
19278
|
+
path: ".pnp.js",
|
19279
|
+
checkPatchesDir: ".yarn/patches",
|
19261
19280
|
manager: "yarn"
|
19262
19281
|
},
|
19263
19282
|
{
|
19264
19283
|
// yarn 1
|
19265
19284
|
path: "node_modules/.yarn-integrity",
|
19266
|
-
|
19285
|
+
checkPatchesDir: "patches",
|
19267
19286
|
manager: "yarn"
|
19268
19287
|
},
|
19269
19288
|
{
|
19270
19289
|
path: "node_modules/.pnpm/lock.yaml",
|
19271
19290
|
// Included in lockfile
|
19272
|
-
|
19291
|
+
checkPatchesDir: false,
|
19273
19292
|
manager: "pnpm"
|
19274
19293
|
},
|
19275
|
-
{
|
19294
|
+
{
|
19295
|
+
name: "bun.lockb",
|
19296
|
+
path: "bun.lockb",
|
19297
|
+
checkPatchesDir: "patches",
|
19298
|
+
manager: "bun"
|
19299
|
+
}
|
19276
19300
|
].sort((_, { manager }) => {
|
19277
19301
|
return process.env.npm_config_user_agent?.startsWith(manager) ? 1 : -1;
|
19278
19302
|
});
|
@@ -19288,8 +19312,8 @@ function getConfigHash(environment) {
|
|
19288
19312
|
assetsInclude: config.assetsInclude,
|
19289
19313
|
plugins: config.plugins.map((p) => p.name),
|
19290
19314
|
optimizeDeps: {
|
19291
|
-
include: optimizeDeps2.include ? unique(optimizeDeps2.include).sort() :
|
19292
|
-
exclude: optimizeDeps2.exclude ? unique(optimizeDeps2.exclude).sort() :
|
19315
|
+
include: optimizeDeps2.include ? unique(optimizeDeps2.include).sort() : undefined,
|
19316
|
+
exclude: optimizeDeps2.exclude ? unique(optimizeDeps2.exclude).sort() : undefined,
|
19293
19317
|
esbuildOptions: {
|
19294
19318
|
...optimizeDeps2.esbuildOptions,
|
19295
19319
|
plugins: optimizeDeps2.esbuildOptions?.plugins?.map((p) => p.name)
|
@@ -19313,9 +19337,12 @@ function getLockfileHash(environment) {
|
|
19313
19337
|
const lockfileFormat = lockfileFormats.find(
|
19314
19338
|
(f) => normalizedLockfilePath.endsWith(f.path)
|
19315
19339
|
);
|
19316
|
-
if (lockfileFormat.
|
19340
|
+
if (lockfileFormat.checkPatchesDir) {
|
19317
19341
|
const baseDir = lockfilePath.slice(0, -lockfileFormat.path.length);
|
19318
|
-
const fullPath = path$d.join(
|
19342
|
+
const fullPath = path$d.join(
|
19343
|
+
baseDir,
|
19344
|
+
lockfileFormat.checkPatchesDir
|
19345
|
+
);
|
19319
19346
|
const stat = tryStatSync(fullPath);
|
19320
19347
|
if (stat?.isDirectory()) {
|
19321
19348
|
content += stat.mtimeMs.toString();
|
@@ -19353,7 +19380,7 @@ function findOptimizedDepInfoInRecord(dependenciesInfo, callbackFn) {
|
|
19353
19380
|
}
|
19354
19381
|
async function optimizedDepNeedsInterop(environment, metadata, file) {
|
19355
19382
|
const depInfo = optimizedDepInfoFromFile(metadata, file);
|
19356
|
-
if (depInfo?.src && depInfo.needsInterop ===
|
19383
|
+
if (depInfo?.src && depInfo.needsInterop === undefined) {
|
19357
19384
|
depInfo.exportsData ??= extractExportsData(environment, depInfo.src);
|
19358
19385
|
depInfo.needsInterop = needsInterop(
|
19359
19386
|
environment,
|
@@ -19473,7 +19500,7 @@ function jsonPlugin(options, isBuild) {
|
|
19473
19500
|
json = JSON.stringify(JSON.parse(json));
|
19474
19501
|
}
|
19475
19502
|
return {
|
19476
|
-
code: `export default JSON.parse(${JSON.stringify(json)})`,
|
19503
|
+
code: `export default /* #__PURE__ */ JSON.parse(${JSON.stringify(json)})`,
|
19477
19504
|
map: { mappings: "" }
|
19478
19505
|
};
|
19479
19506
|
}
|
@@ -19496,7 +19523,7 @@ function jsonPlugin(options, isBuild) {
|
|
19496
19523
|
function serializeValue(value) {
|
19497
19524
|
const valueAsString = JSON.stringify(value);
|
19498
19525
|
if (typeof value === "object" && value != null && valueAsString.length > 10 * 1e3) {
|
19499
|
-
return
|
19526
|
+
return `/* #__PURE__ */ JSON.parse(${JSON.stringify(valueAsString)})`;
|
19500
19527
|
}
|
19501
19528
|
return valueAsString;
|
19502
19529
|
}
|
@@ -19505,7 +19532,7 @@ function extractJsonErrorPosition(errorMessage, inputLength) {
|
|
19505
19532
|
return inputLength - 1;
|
19506
19533
|
}
|
19507
19534
|
const errorMessageList = /at position (\d+)/.exec(errorMessage);
|
19508
|
-
return errorMessageList ? Math.max(parseInt(errorMessageList[1], 10) - 1, 0) :
|
19535
|
+
return errorMessageList ? Math.max(parseInt(errorMessageList[1], 10) - 1, 0) : undefined;
|
19509
19536
|
}
|
19510
19537
|
|
19511
19538
|
const debug$b = createDebugger("vite:optimize-deps");
|
@@ -19528,7 +19555,7 @@ function optimizedDepsPlugin() {
|
|
19528
19555
|
const metadata = depsOptimizer.metadata;
|
19529
19556
|
const file = cleanUrl(id);
|
19530
19557
|
const versionMatch = DEP_VERSION_RE.exec(file);
|
19531
|
-
const browserHash = versionMatch ? versionMatch[1].split("=")[1] :
|
19558
|
+
const browserHash = versionMatch ? versionMatch[1].split("=")[1] : undefined;
|
19532
19559
|
const info = optimizedDepInfoFromFile(metadata, file);
|
19533
19560
|
if (info) {
|
19534
19561
|
if (browserHash && info.browserHash !== browserHash) {
|
@@ -20148,13 +20175,13 @@ function loadEnv(mode, envDir, prefixes = "VITE_") {
|
|
20148
20175
|
return Object.entries(parse_1$3(fs__default.readFileSync(filePath)));
|
20149
20176
|
})
|
20150
20177
|
);
|
20151
|
-
if (parsed.NODE_ENV && process.env.VITE_USER_NODE_ENV ===
|
20178
|
+
if (parsed.NODE_ENV && process.env.VITE_USER_NODE_ENV === undefined) {
|
20152
20179
|
process.env.VITE_USER_NODE_ENV = parsed.NODE_ENV;
|
20153
20180
|
}
|
20154
|
-
if (parsed.BROWSER && process.env.BROWSER ===
|
20181
|
+
if (parsed.BROWSER && process.env.BROWSER === undefined) {
|
20155
20182
|
process.env.BROWSER = parsed.BROWSER;
|
20156
20183
|
}
|
20157
|
-
if (parsed.BROWSER_ARGS && process.env.BROWSER_ARGS ===
|
20184
|
+
if (parsed.BROWSER_ARGS && process.env.BROWSER_ARGS === undefined) {
|
20158
20185
|
process.env.BROWSER_ARGS = parsed.BROWSER_ARGS;
|
20159
20186
|
}
|
20160
20187
|
const processEnv = { ...process.env };
|
@@ -24623,7 +24650,7 @@ const parse$a = (input, options) => {
|
|
24623
24650
|
}
|
24624
24651
|
|
24625
24652
|
if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
|
24626
|
-
const end = rest[1] !==
|
24653
|
+
const end = rest[1] !== undefined ? '|$' : '';
|
24627
24654
|
|
24628
24655
|
state.output = state.output.slice(0, -(prior.output + prev.output).length);
|
24629
24656
|
prior.output = `(?:${prior.output}`;
|
@@ -26014,7 +26041,7 @@ const toRegexRange$1 = (min, max, options) => {
|
|
26014
26041
|
throw new TypeError('toRegexRange: expected the first argument to be a number');
|
26015
26042
|
}
|
26016
26043
|
|
26017
|
-
if (max ===
|
26044
|
+
if (max === undefined || min === max) {
|
26018
26045
|
return String(min);
|
26019
26046
|
}
|
26020
26047
|
|
@@ -26086,9 +26113,9 @@ const toRegexRange$1 = (min, max, options) => {
|
|
26086
26113
|
};
|
26087
26114
|
|
26088
26115
|
function collatePatterns(neg, pos, options) {
|
26089
|
-
let onlyNegative = filterPatterns(neg, pos, '-', false)
|
26090
|
-
let onlyPositive = filterPatterns(pos, neg, '', false)
|
26091
|
-
let intersected = filterPatterns(neg, pos, '-?', true)
|
26116
|
+
let onlyNegative = filterPatterns(neg, pos, '-', false);
|
26117
|
+
let onlyPositive = filterPatterns(pos, neg, '', false);
|
26118
|
+
let intersected = filterPatterns(neg, pos, '-?', true);
|
26092
26119
|
let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
|
26093
26120
|
return subpatterns.join('|');
|
26094
26121
|
}
|
@@ -29854,7 +29881,7 @@ function parseInternal(string, env, opts) {
|
|
29854
29881
|
return matches.map(function (match) {
|
29855
29882
|
var s = match[0];
|
29856
29883
|
if (!s || commented) {
|
29857
|
-
return
|
29884
|
+
return undefined;
|
29858
29885
|
}
|
29859
29886
|
if (controlRE.test(s)) {
|
29860
29887
|
return { op: s };
|
@@ -30513,7 +30540,7 @@ async function resolveHttpServer({ proxy }, app, httpsOptions) {
|
|
30513
30540
|
}
|
30514
30541
|
}
|
30515
30542
|
async function resolveHttpsConfig(https) {
|
30516
|
-
if (!https) return
|
30543
|
+
if (!https) return undefined;
|
30517
30544
|
const [ca, cert, key, pfx] = await Promise.all([
|
30518
30545
|
readFileIfExists(https.ca),
|
30519
30546
|
readFileIfExists(https.cert),
|
@@ -30574,7 +30601,7 @@ function setClientErrorHandler(server, logger) {
|
|
30574
30601
|
|
30575
30602
|
let offset;
|
30576
30603
|
function calculateOffsetOnce() {
|
30577
|
-
if (offset !==
|
30604
|
+
if (offset !== undefined) {
|
30578
30605
|
return;
|
30579
30606
|
}
|
30580
30607
|
try {
|
@@ -32769,7 +32796,7 @@ async function startBrowserProcess(browser, browserArgs, url, logger) {
|
|
32769
32796
|
}
|
32770
32797
|
}
|
32771
32798
|
if (process.platform === "darwin" && browser === "open") {
|
32772
|
-
browser =
|
32799
|
+
browser = undefined;
|
32773
32800
|
}
|
32774
32801
|
try {
|
32775
32802
|
const options = browser ? { app: { name: browser, arguments: browserArgs } } : {};
|
@@ -37681,7 +37708,7 @@ function createWebSocketServer(server, config, httpsOptions) {
|
|
37681
37708
|
};
|
37682
37709
|
}
|
37683
37710
|
let wss;
|
37684
|
-
let wsHttpServer =
|
37711
|
+
let wsHttpServer = undefined;
|
37685
37712
|
const hmr = isObject$2(config.server.hmr) && config.server.hmr;
|
37686
37713
|
const hmrServer = hmr && hmr.server;
|
37687
37714
|
const hmrPort = hmr && hmr.port;
|
@@ -37691,10 +37718,10 @@ function createWebSocketServer(server, config, httpsOptions) {
|
|
37691
37718
|
const customListeners = /* @__PURE__ */ new Map();
|
37692
37719
|
const clientsMap = /* @__PURE__ */ new WeakMap();
|
37693
37720
|
const port = hmrPort || 24678;
|
37694
|
-
const host = hmr && hmr.host ||
|
37721
|
+
const host = hmr && hmr.host || undefined;
|
37695
37722
|
if (wsServer) {
|
37696
37723
|
let hmrBase = config.base;
|
37697
|
-
const hmrPath = hmr ? hmr.path :
|
37724
|
+
const hmrPath = hmr ? hmr.path : undefined;
|
37698
37725
|
if (hmrPath) {
|
37699
37726
|
hmrBase = path$d.posix.join(hmrBase, hmrPath);
|
37700
37727
|
}
|
@@ -40156,7 +40183,7 @@ ${err.stack}`,
|
|
40156
40183
|
const [proxy, opts] = proxies[context];
|
40157
40184
|
if (opts.ws || opts.target?.toString().startsWith("ws:") || opts.target?.toString().startsWith("wss:")) {
|
40158
40185
|
if (opts.bypass) {
|
40159
|
-
const bypassResult = opts.bypass(req,
|
40186
|
+
const bypassResult = opts.bypass(req, undefined, opts);
|
40160
40187
|
if (typeof bypassResult === "string") {
|
40161
40188
|
req.url = bypassResult;
|
40162
40189
|
debug$5?.(`bypass: ${req.url} -> ${bypassResult}`);
|
@@ -40218,7 +40245,7 @@ function htmlFallbackMiddleware(root, spaFallback) {
|
|
40218
40245
|
// Only accept GET or HEAD
|
40219
40246
|
req.method !== "GET" && req.method !== "HEAD" || // Exclude default favicon requests
|
40220
40247
|
req.url === "/favicon.ico" || // Require Accept: text/html or */*
|
40221
|
-
!(req.headers.accept ===
|
40248
|
+
!(req.headers.accept === undefined || // equivalent to `Accept: */*`
|
40222
40249
|
req.headers.accept === "" || // equivalent to `Accept: */*`
|
40223
40250
|
req.headers.accept.includes("text/html") || req.headers.accept.includes("*/*"))
|
40224
40251
|
) {
|
@@ -40748,10 +40775,12 @@ function serveStaticMiddleware(server) {
|
|
40748
40775
|
);
|
40749
40776
|
return function viteServeStaticMiddleware(req, res, next) {
|
40750
40777
|
const cleanedUrl = cleanUrl(req.url);
|
40751
|
-
if (cleanedUrl[cleanedUrl.length - 1] === "/" || path$d.extname(cleanedUrl) === ".html" || isInternalRequest(req.url)
|
40778
|
+
if (cleanedUrl[cleanedUrl.length - 1] === "/" || path$d.extname(cleanedUrl) === ".html" || isInternalRequest(req.url) || // skip url starting with // as these will be interpreted as
|
40779
|
+
// scheme relative URLs by new URL() and will not be a valid file path
|
40780
|
+
req.url?.startsWith("//")) {
|
40752
40781
|
return next();
|
40753
40782
|
}
|
40754
|
-
const url = new URL(req.url
|
40783
|
+
const url = new URL(req.url, "http://example.com");
|
40755
40784
|
const pathname = decodeURI(url.pathname);
|
40756
40785
|
let redirectedPathname;
|
40757
40786
|
for (const { find, replacement } of server.config.resolve.alias) {
|
@@ -40787,8 +40816,8 @@ function serveRawFsMiddleware(server) {
|
|
40787
40816
|
sirvOptions({ getHeaders: () => server.config.server.headers })
|
40788
40817
|
);
|
40789
40818
|
return function viteServeRawFsMiddleware(req, res, next) {
|
40790
|
-
|
40791
|
-
|
40819
|
+
if (req.url.startsWith(FS_PREFIX)) {
|
40820
|
+
const url = new URL(req.url, "http://example.com");
|
40792
40821
|
const pathname = decodeURI(url.pathname);
|
40793
40822
|
if (!ensureServingAccess(
|
40794
40823
|
slash$1(path$d.resolve(fsPathFromId(pathname))),
|
@@ -40913,11 +40942,11 @@ async function doTransform(environment, url, options, timestamp) {
|
|
40913
40942
|
);
|
40914
40943
|
if (cached) return cached;
|
40915
40944
|
}
|
40916
|
-
const resolved = module ?
|
40945
|
+
const resolved = module ? undefined : await pluginContainer.resolveId(url, undefined) ?? undefined;
|
40917
40946
|
const id = module?.id ?? resolved?.id ?? url;
|
40918
40947
|
module ??= environment.moduleGraph.getModuleById(id);
|
40919
40948
|
if (module) {
|
40920
|
-
await environment.moduleGraph._ensureEntryFromUrl(url,
|
40949
|
+
await environment.moduleGraph._ensureEntryFromUrl(url, undefined, resolved);
|
40921
40950
|
const cached = await getCachedTransformResult(
|
40922
40951
|
environment,
|
40923
40952
|
url,
|
@@ -41029,7 +41058,7 @@ ${e}`, {
|
|
41029
41058
|
}
|
41030
41059
|
if (environment._closing && environment.config.dev.recoverable)
|
41031
41060
|
throwClosedServerError();
|
41032
|
-
mod ??= await moduleGraph._ensureEntryFromUrl(url,
|
41061
|
+
mod ??= await moduleGraph._ensureEntryFromUrl(url, undefined, resolved);
|
41033
41062
|
const transformStart = debugTransform ? performance.now() : 0;
|
41034
41063
|
const transformResult = await pluginContainer.transform(code, id, {
|
41035
41064
|
inMap: map
|
@@ -41097,7 +41126,7 @@ ${e}`, {
|
|
41097
41126
|
}
|
41098
41127
|
async function handleModuleSoftInvalidation(environment, mod, timestamp) {
|
41099
41128
|
const transformResult = mod.invalidationState;
|
41100
|
-
mod.invalidationState =
|
41129
|
+
mod.invalidationState = undefined;
|
41101
41130
|
if (!transformResult || transformResult === "HARD_INVALIDATED") return;
|
41102
41131
|
if (mod.transformResult) {
|
41103
41132
|
throw new Error(
|
@@ -41111,7 +41140,7 @@ async function handleModuleSoftInvalidation(environment, mod, timestamp) {
|
|
41111
41140
|
await init;
|
41112
41141
|
const source = transformResult.code;
|
41113
41142
|
const s = new MagicString(source);
|
41114
|
-
const [imports] = parse$e(source, mod.id ||
|
41143
|
+
const [imports] = parse$e(source, mod.id || undefined);
|
41115
41144
|
for (const imp of imports) {
|
41116
41145
|
let rawUrl = source.slice(imp.s, imp.e);
|
41117
41146
|
if (rawUrl === "import.meta") continue;
|
@@ -41254,7 +41283,7 @@ function getNodeAssetAttributes(node) {
|
|
41254
41283
|
return actions;
|
41255
41284
|
}
|
41256
41285
|
function getAttrKey(attr) {
|
41257
|
-
return attr.prefix ===
|
41286
|
+
return attr.prefix === undefined ? attr.name : `${attr.prefix}:${attr.name}`;
|
41258
41287
|
}
|
41259
41288
|
|
41260
41289
|
const modulePreloadPolyfillId = "vite/modulepreload-polyfill";
|
@@ -41393,7 +41422,7 @@ function traverseNodes(node, visitor) {
|
|
41393
41422
|
}
|
41394
41423
|
}
|
41395
41424
|
async function traverseHtml(html, filePath, visitor) {
|
41396
|
-
const { parse } = await import('./dep-
|
41425
|
+
const { parse } = await import('./dep-DcIXjcop.js');
|
41397
41426
|
const ast = parse(html, {
|
41398
41427
|
scriptingEnabled: false,
|
41399
41428
|
// parse inside <noscript>
|
@@ -41411,7 +41440,7 @@ function getScriptInfo(node) {
|
|
41411
41440
|
let isAsync = false;
|
41412
41441
|
let isIgnored = false;
|
41413
41442
|
for (const p of node.attrs) {
|
41414
|
-
if (p.prefix !==
|
41443
|
+
if (p.prefix !== undefined) continue;
|
41415
41444
|
if (p.name === "src") {
|
41416
41445
|
if (!src) {
|
41417
41446
|
src = p;
|
@@ -41680,7 +41709,7 @@ import ${JSON.stringify(url)}`;
|
|
41680
41709
|
const isNoInlineLink = node.nodeName === "link" && attr.attributes.rel && parseRelAttr(attr.attributes.rel).some(
|
41681
41710
|
(v) => noInlineLinkRels.has(v)
|
41682
41711
|
);
|
41683
|
-
const shouldInline = isNoInlineLink ? false :
|
41712
|
+
const shouldInline = isNoInlineLink ? false : undefined;
|
41684
41713
|
assetUrlsPromises.push(
|
41685
41714
|
(async () => {
|
41686
41715
|
const processedUrl = await processAssetUrl(
|
@@ -41994,10 +42023,10 @@ function parseRelAttr(attr) {
|
|
41994
42023
|
}
|
41995
42024
|
function findNeedTransformStyleAttribute(node) {
|
41996
42025
|
const attr = node.attrs.find(
|
41997
|
-
(prop) => prop.prefix ===
|
42026
|
+
(prop) => prop.prefix === undefined && prop.name === "style" && // only url(...) or image-set(...) in css need to emit file
|
41998
42027
|
(prop.value.includes("url(") || prop.value.includes("image-set("))
|
41999
42028
|
);
|
42000
|
-
if (!attr) return
|
42029
|
+
if (!attr) return undefined;
|
42001
42030
|
const location = node.sourceCodeLocation?.attrs?.["style"];
|
42002
42031
|
return { attr, location };
|
42003
42032
|
}
|
@@ -42161,7 +42190,7 @@ function resolveHtmlTransforms(plugins, logger) {
|
|
42161
42190
|
)
|
42162
42191
|
);
|
42163
42192
|
}
|
42164
|
-
const order = hook.order ?? (hook.enforce === "pre" ? "pre" :
|
42193
|
+
const order = hook.order ?? (hook.enforce === "pre" ? "pre" : undefined);
|
42165
42194
|
const handler = hook.handler ?? hook.transform;
|
42166
42195
|
if (order === "pre") {
|
42167
42196
|
preHooks.push(handler);
|
@@ -42935,7 +42964,7 @@ class ModuleNode {
|
|
42935
42964
|
_getModuleInfoUnion(prop) {
|
42936
42965
|
const _clientValue = this._clientModule?.[prop];
|
42937
42966
|
const _ssrValue = this._ssrModule?.[prop];
|
42938
|
-
if (_clientValue == null && _ssrValue == null) return
|
42967
|
+
if (_clientValue == null && _ssrValue == null) return undefined;
|
42939
42968
|
return new Proxy({}, {
|
42940
42969
|
get: (_, key) => {
|
42941
42970
|
if (key === "meta") {
|
@@ -42957,7 +42986,7 @@ class ModuleNode {
|
|
42957
42986
|
_getModuleObjectUnion(prop) {
|
42958
42987
|
const _clientValue = this._clientModule?.[prop];
|
42959
42988
|
const _ssrValue = this._ssrModule?.[prop];
|
42960
|
-
if (_clientValue == null && _ssrValue == null) return
|
42989
|
+
if (_clientValue == null && _ssrValue == null) return undefined;
|
42961
42990
|
const info = {};
|
42962
42991
|
if (_ssrValue) {
|
42963
42992
|
Object.assign(info, _ssrValue);
|
@@ -43152,7 +43181,7 @@ class ModuleGraph {
|
|
43152
43181
|
const clientModules = this._client.getModulesByFile(file);
|
43153
43182
|
const ssrModules = this._ssr.getModulesByFile(file);
|
43154
43183
|
if (!clientModules && !ssrModules) {
|
43155
|
-
return
|
43184
|
+
return undefined;
|
43156
43185
|
}
|
43157
43186
|
const result = /* @__PURE__ */ new Set();
|
43158
43187
|
if (clientModules) {
|
@@ -43260,12 +43289,12 @@ class ModuleGraph {
|
|
43260
43289
|
getBackwardCompatibleBrowserModuleNode(clientModule) {
|
43261
43290
|
return this.getBackwardCompatibleModuleNodeDual(
|
43262
43291
|
clientModule,
|
43263
|
-
clientModule.id ? this._ssr.getModuleById(clientModule.id) :
|
43292
|
+
clientModule.id ? this._ssr.getModuleById(clientModule.id) : undefined
|
43264
43293
|
);
|
43265
43294
|
}
|
43266
43295
|
getBackwardCompatibleServerModuleNode(ssrModule) {
|
43267
43296
|
return this.getBackwardCompatibleModuleNodeDual(
|
43268
|
-
ssrModule.id ? this._client.getModuleById(ssrModule.id) :
|
43297
|
+
ssrModule.id ? this._client.getModuleById(ssrModule.id) : undefined,
|
43269
43298
|
ssrModule
|
43270
43299
|
);
|
43271
43300
|
}
|
@@ -43310,7 +43339,7 @@ function createBackwardCompatibleModuleSet(moduleGraph, prop, module) {
|
|
43310
43339
|
return false;
|
43311
43340
|
}
|
43312
43341
|
const keyModule = moduleGraph._getModuleGraph(module.environment).getModuleById(key.id);
|
43313
|
-
return keyModule !==
|
43342
|
+
return keyModule !== undefined && module[prop].has(keyModule);
|
43314
43343
|
},
|
43315
43344
|
values() {
|
43316
43345
|
return this.keys();
|
@@ -43603,6 +43632,25 @@ async function _createServer(inlineConfig = {}, options) {
|
|
43603
43632
|
const pluginContainer = createPluginContainer(environments);
|
43604
43633
|
const closeHttpServer = createServerCloseFn(httpServer);
|
43605
43634
|
const devHtmlTransformFn = createDevHtmlTransformFn(config);
|
43635
|
+
let closeServerPromise;
|
43636
|
+
const closeServer = async () => {
|
43637
|
+
if (!middlewareMode) {
|
43638
|
+
teardownSIGTERMListener(closeServerAndExit);
|
43639
|
+
}
|
43640
|
+
await Promise.allSettled([
|
43641
|
+
watcher.close(),
|
43642
|
+
ws.close(),
|
43643
|
+
Promise.allSettled(
|
43644
|
+
Object.values(server.environments).map(
|
43645
|
+
(environment) => environment.close()
|
43646
|
+
)
|
43647
|
+
),
|
43648
|
+
closeHttpServer(),
|
43649
|
+
server._ssrCompatModuleRunner?.close()
|
43650
|
+
]);
|
43651
|
+
server.resolvedUrls = null;
|
43652
|
+
server._ssrCompatModuleRunner = undefined;
|
43653
|
+
};
|
43606
43654
|
let server = {
|
43607
43655
|
config,
|
43608
43656
|
middlewares,
|
@@ -43725,22 +43773,10 @@ async function _createServer(inlineConfig = {}, options) {
|
|
43725
43773
|
}
|
43726
43774
|
},
|
43727
43775
|
async close() {
|
43728
|
-
if (!
|
43729
|
-
|
43730
|
-
}
|
43731
|
-
|
43732
|
-
watcher.close(),
|
43733
|
-
ws.close(),
|
43734
|
-
Promise.allSettled(
|
43735
|
-
Object.values(server.environments).map(
|
43736
|
-
(environment) => environment.close()
|
43737
|
-
)
|
43738
|
-
),
|
43739
|
-
closeHttpServer(),
|
43740
|
-
server._ssrCompatModuleRunner?.close()
|
43741
|
-
]);
|
43742
|
-
server.resolvedUrls = null;
|
43743
|
-
server._ssrCompatModuleRunner = void 0;
|
43776
|
+
if (!closeServerPromise) {
|
43777
|
+
closeServerPromise = closeServer();
|
43778
|
+
}
|
43779
|
+
return closeServerPromise;
|
43744
43780
|
},
|
43745
43781
|
printUrls() {
|
43746
43782
|
if (server.resolvedUrls) {
|
@@ -43779,7 +43815,7 @@ async function _createServer(inlineConfig = {}, options) {
|
|
43779
43815
|
_importGlobMap: /* @__PURE__ */ new Map(),
|
43780
43816
|
_restartPromise: null,
|
43781
43817
|
_forceOptimizeOnRestart: false,
|
43782
|
-
_shortcutsOptions:
|
43818
|
+
_shortcutsOptions: undefined
|
43783
43819
|
};
|
43784
43820
|
const reflexServer = new Proxy(server, {
|
43785
43821
|
get: (_, property) => {
|
@@ -43794,7 +43830,7 @@ async function _createServer(inlineConfig = {}, options) {
|
|
43794
43830
|
try {
|
43795
43831
|
await server.close();
|
43796
43832
|
} finally {
|
43797
|
-
process.exitCode ??= exitCode ? 128 + exitCode :
|
43833
|
+
process.exitCode ??= exitCode ? 128 + exitCode : undefined;
|
43798
43834
|
process.exit();
|
43799
43835
|
}
|
43800
43836
|
};
|
@@ -43908,7 +43944,7 @@ async function _createServer(inlineConfig = {}, options) {
|
|
43908
43944
|
Object.values(environments).map((e) => e.listen(server))
|
43909
43945
|
);
|
43910
43946
|
}
|
43911
|
-
initingServer =
|
43947
|
+
initingServer = undefined;
|
43912
43948
|
serverInited = true;
|
43913
43949
|
}();
|
43914
43950
|
return initingServer;
|
@@ -43984,9 +44020,9 @@ const serverConfigDefaults = Object.freeze({
|
|
43984
44020
|
port: DEFAULT_DEV_PORT,
|
43985
44021
|
strictPort: false,
|
43986
44022
|
host: "localhost",
|
43987
|
-
https:
|
44023
|
+
https: undefined,
|
43988
44024
|
open: false,
|
43989
|
-
proxy:
|
44025
|
+
proxy: undefined,
|
43990
44026
|
cors: true,
|
43991
44027
|
headers: {},
|
43992
44028
|
// hmr
|
@@ -44012,7 +44048,7 @@ function resolveServerOptions(root, raw, logger) {
|
|
44012
44048
|
const _server = mergeWithDefaults(
|
44013
44049
|
{
|
44014
44050
|
...serverConfigDefaults,
|
44015
|
-
host:
|
44051
|
+
host: undefined,
|
44016
44052
|
// do not set here to detect whether host is set or not
|
44017
44053
|
sourcemapIgnoreList: isInNodeModules$1
|
44018
44054
|
},
|
@@ -44465,7 +44501,7 @@ async function handleHMRUpdate(type, file, server) {
|
|
44465
44501
|
throw error2;
|
44466
44502
|
}
|
44467
44503
|
if (!options.modules.length) {
|
44468
|
-
if (file.endsWith(".html")) {
|
44504
|
+
if (file.endsWith(".html") && environment.name === "client") {
|
44469
44505
|
environment.logger.info(
|
44470
44506
|
colors$1.green(`page reload `) + colors$1.dim(shortFile),
|
44471
44507
|
{
|
@@ -44574,7 +44610,7 @@ function propagateUpdate(node, traversedModules, boundaries, currentChain = [nod
|
|
44574
44610
|
return false;
|
44575
44611
|
}
|
44576
44612
|
traversedModules.add(node);
|
44577
|
-
if (node.id && node.isSelfAccepting ===
|
44613
|
+
if (node.id && node.isSelfAccepting === undefined) {
|
44578
44614
|
debugHmr?.(
|
44579
44615
|
`[propagate update] stop propagation because not analyzed: ${colors$1.dim(
|
44580
44616
|
node.id
|
@@ -45228,7 +45264,7 @@ function webWorkerPlugin(config) {
|
|
45228
45264
|
injectEnv = "";
|
45229
45265
|
} else {
|
45230
45266
|
const environment = this.environment;
|
45231
|
-
const moduleGraph = environment.mode === "dev" ? environment.moduleGraph :
|
45267
|
+
const moduleGraph = environment.mode === "dev" ? environment.moduleGraph : undefined;
|
45232
45268
|
const module = moduleGraph?.getModuleById(ENV_ENTRY);
|
45233
45269
|
injectEnv = module?.transformResult?.code || "";
|
45234
45270
|
}
|
@@ -45405,7 +45441,7 @@ function preAliasPlugin(config) {
|
|
45405
45441
|
async resolveId(id, importer, options) {
|
45406
45442
|
const { environment } = this;
|
45407
45443
|
const ssr = environment.config.consumer === "server";
|
45408
|
-
const depsOptimizer = environment.mode === "dev" ? environment.depsOptimizer :
|
45444
|
+
const depsOptimizer = environment.mode === "dev" ? environment.depsOptimizer : undefined;
|
45409
45445
|
if (importer && depsOptimizer && bareImportRE.test(id) && !options.scan && id !== "@vite/client" && id !== "@vite/env") {
|
45410
45446
|
if (findPatterns.find((pattern) => matches(pattern, id))) {
|
45411
45447
|
const optimizedId = await tryOptimizedResolve(
|
@@ -45590,7 +45626,7 @@ function importAnalysisPlugin(config) {
|
|
45590
45626
|
importer,
|
45591
45627
|
source
|
45592
45628
|
);
|
45593
|
-
this.error(message, showCodeFrame ? e.idx :
|
45629
|
+
this.error(message, showCodeFrame ? e.idx : undefined);
|
45594
45630
|
}
|
45595
45631
|
const depsOptimizer = environment.depsOptimizer;
|
45596
45632
|
const importerModule = moduleGraph.getModuleById(importer);
|
@@ -45735,7 +45771,7 @@ function importAnalysisPlugin(config) {
|
|
45735
45771
|
if (!isDynamicImport && attributeIndex > -1) {
|
45736
45772
|
str().remove(end + 1, expEnd);
|
45737
45773
|
}
|
45738
|
-
if (specifier !==
|
45774
|
+
if (specifier !== undefined) {
|
45739
45775
|
if (isExternalUrl(specifier) && !specifier.startsWith("file://") || isDataUrl(specifier)) {
|
45740
45776
|
return;
|
45741
45777
|
}
|
@@ -45769,7 +45805,7 @@ function importAnalysisPlugin(config) {
|
|
45769
45805
|
depsOptimizer.metadata,
|
45770
45806
|
file
|
45771
45807
|
);
|
45772
|
-
if (needsInterop ===
|
45808
|
+
if (needsInterop === undefined) {
|
45773
45809
|
if (!optimizedDepDynamicRE.test(file)) {
|
45774
45810
|
config.logger.error(
|
45775
45811
|
colors$1.red(
|
@@ -46125,7 +46161,7 @@ function clientInjectionsPlugin(config) {
|
|
46125
46161
|
const devBase = config.base;
|
46126
46162
|
const serverHost = `${resolvedServerHostname}:${resolvedServerPort}${devBase}`;
|
46127
46163
|
let hmrConfig = config.server.hmr;
|
46128
|
-
hmrConfig = isObject$2(hmrConfig) ? hmrConfig :
|
46164
|
+
hmrConfig = isObject$2(hmrConfig) ? hmrConfig : undefined;
|
46129
46165
|
const host = hmrConfig?.host || null;
|
46130
46166
|
const protocol = hmrConfig?.protocol || null;
|
46131
46167
|
const timeout = hmrConfig?.timeout || 3e4;
|
@@ -46990,7 +47026,7 @@ class EnvironmentPluginContainer {
|
|
46990
47026
|
const utils = createPluginHookUtils(plugins);
|
46991
47027
|
this.getSortedPlugins = utils.getSortedPlugins;
|
46992
47028
|
this.getSortedPluginHooks = utils.getSortedPluginHooks;
|
46993
|
-
this.moduleGraph = environment.mode === "dev" ? environment.moduleGraph :
|
47029
|
+
this.moduleGraph = environment.mode === "dev" ? environment.moduleGraph : undefined;
|
46994
47030
|
}
|
46995
47031
|
_pluginContextMap = /* @__PURE__ */ new Map();
|
46996
47032
|
_resolvedRollupOptions;
|
@@ -47032,7 +47068,7 @@ class EnvironmentPluginContainer {
|
|
47032
47068
|
return info[key];
|
47033
47069
|
}
|
47034
47070
|
if (key === "then") {
|
47035
|
-
return
|
47071
|
+
return undefined;
|
47036
47072
|
}
|
47037
47073
|
throw Error(
|
47038
47074
|
`[vite] The "${key}" property of ModuleInfo is not supported.`
|
@@ -47111,7 +47147,7 @@ class EnvironmentPluginContainer {
|
|
47111
47147
|
)
|
47112
47148
|
);
|
47113
47149
|
await this._buildStartPromise;
|
47114
|
-
this._buildStartPromise =
|
47150
|
+
this._buildStartPromise = undefined;
|
47115
47151
|
}
|
47116
47152
|
async resolveId(rawId, importer = join$1(
|
47117
47153
|
this.environment.config.root,
|
@@ -47233,7 +47269,7 @@ class EnvironmentPluginContainer {
|
|
47233
47269
|
prettifyUrl(id, this.environment.config.root)
|
47234
47270
|
);
|
47235
47271
|
if (isObject$2(result)) {
|
47236
|
-
if (result.code !==
|
47272
|
+
if (result.code !== undefined) {
|
47237
47273
|
code = result.code;
|
47238
47274
|
if (result.map) {
|
47239
47275
|
if (debugSourcemapCombine) {
|
@@ -47740,7 +47776,7 @@ function resolveCSSOptions(options) {
|
|
47740
47776
|
resolved.lightningcss ??= {};
|
47741
47777
|
resolved.lightningcss.targets ??= convertTargets(ESBUILD_MODULES_TARGET);
|
47742
47778
|
} else {
|
47743
|
-
resolved.lightningcss =
|
47779
|
+
resolved.lightningcss = undefined;
|
47744
47780
|
}
|
47745
47781
|
return resolved;
|
47746
47782
|
}
|
@@ -48030,7 +48066,7 @@ function cssPostPlugin(config) {
|
|
48030
48066
|
const resolveAssetUrlsInCss = (chunkCSS2, cssAssetName) => {
|
48031
48067
|
const encodedPublicUrls = encodePublicUrlsInCSS(config);
|
48032
48068
|
const relative = config.base === "./" || config.base === "";
|
48033
|
-
const cssAssetDirname = encodedPublicUrls || relative ? slash$1(getCssAssetDirname(cssAssetName)) :
|
48069
|
+
const cssAssetDirname = encodedPublicUrls || relative ? slash$1(getCssAssetDirname(cssAssetName)) : undefined;
|
48034
48070
|
const toRelative = (filename) => {
|
48035
48071
|
const relativePath = normalizePath$3(
|
48036
48072
|
path$d.relative(cssAssetDirname, filename)
|
@@ -48073,7 +48109,7 @@ function cssPostPlugin(config) {
|
|
48073
48109
|
};
|
48074
48110
|
function ensureFileExt(name, ext) {
|
48075
48111
|
return normalizePath$3(
|
48076
|
-
path$d.format({ ...path$d.parse(name), base:
|
48112
|
+
path$d.format({ ...path$d.parse(name), base: undefined, ext })
|
48077
48113
|
);
|
48078
48114
|
}
|
48079
48115
|
let s;
|
@@ -48397,7 +48433,7 @@ function createCSSResolvers(config) {
|
|
48397
48433
|
args[1] = fileURLToPath$1(args[1], {
|
48398
48434
|
windows: (
|
48399
48435
|
// file:///foo cannot be converted to path with windows mode
|
48400
|
-
isWindows$3 && args[1].startsWith("file:///") ? false :
|
48436
|
+
isWindows$3 && args[1].startsWith("file:///") ? false : undefined
|
48401
48437
|
)
|
48402
48438
|
});
|
48403
48439
|
}
|
@@ -48646,11 +48682,11 @@ ${generateCodeFrame(
|
|
48646
48682
|
column: warning.column - 1
|
48647
48683
|
// 1-based
|
48648
48684
|
},
|
48649
|
-
warning.endLine !==
|
48685
|
+
warning.endLine !== undefined && warning.endColumn !== undefined ? {
|
48650
48686
|
line: warning.endLine,
|
48651
48687
|
column: warning.endColumn - 1
|
48652
48688
|
// 1-based
|
48653
|
-
} :
|
48689
|
+
} : undefined
|
48654
48690
|
)}`;
|
48655
48691
|
environment.logger.warn(colors$1.yellow(msg));
|
48656
48692
|
}
|
@@ -48702,8 +48738,8 @@ function createCachedImport(imp) {
|
|
48702
48738
|
return cached;
|
48703
48739
|
};
|
48704
48740
|
}
|
48705
|
-
const importPostcssImport = createCachedImport(() => import('./dep-
|
48706
|
-
const importPostcssModules = createCachedImport(() => import('./dep-
|
48741
|
+
const importPostcssImport = createCachedImport(() => import('./dep-BthWCIj2.js').then(function (n) { return n.i; }));
|
48742
|
+
const importPostcssModules = createCachedImport(() => import('./dep-C-SVMOic.js').then(function (n) { return n.i; }));
|
48707
48743
|
const importPostcss = createCachedImport(() => import('postcss'));
|
48708
48744
|
const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
|
48709
48745
|
let alwaysFakeWorkerWorkerControllerCache;
|
@@ -48759,7 +48795,7 @@ async function finalizeCss(css, minify, config) {
|
|
48759
48795
|
}
|
48760
48796
|
async function resolvePostcssConfig(config) {
|
48761
48797
|
let result = postcssConfigCache.get(config);
|
48762
|
-
if (result !==
|
48798
|
+
if (result !== undefined) {
|
48763
48799
|
return await result;
|
48764
48800
|
}
|
48765
48801
|
const inlineOptions = config.css.postcss;
|
@@ -48927,7 +48963,7 @@ async function minifyCSS(css, config, inlined) {
|
|
48927
48963
|
const { code, warnings } = (await importLightningCSS()).transform({
|
48928
48964
|
...config.css.lightningcss,
|
48929
48965
|
targets: convertTargets(config.build.cssTarget),
|
48930
|
-
cssModules:
|
48966
|
+
cssModules: undefined,
|
48931
48967
|
// TODO: Pass actual filename here, which can also be passed to esbuild's
|
48932
48968
|
// `sourcefile` option below to improve error messages
|
48933
48969
|
filename: defaultCssBundleName,
|
@@ -48965,7 +49001,7 @@ ${messages.join("\n")}`)
|
|
48965
49001
|
try {
|
48966
49002
|
const { code, warnings } = await transform$1(css, {
|
48967
49003
|
loader: "css",
|
48968
|
-
target: config.build.cssTarget ||
|
49004
|
+
target: config.build.cssTarget || undefined,
|
48969
49005
|
...resolveMinifyCssEsbuildOptions(config.esbuild || {})
|
48970
49006
|
});
|
48971
49007
|
if (warnings.length) {
|
@@ -49239,7 +49275,7 @@ const makeModernScssWorker = (environment, resolvers, alias, maxWorkers) => {
|
|
49239
49275
|
const result = await sass.compileStringAsync(data, sassOptions);
|
49240
49276
|
return {
|
49241
49277
|
css: result.css,
|
49242
|
-
map: result.sourceMap ? JSON.stringify(result.sourceMap) :
|
49278
|
+
map: result.sourceMap ? JSON.stringify(result.sourceMap) : undefined,
|
49243
49279
|
stats: {
|
49244
49280
|
includedFiles: result.loadedUrls.filter((url) => url.protocol === "file:").map((url) => fileURLToPath2(url))
|
49245
49281
|
}
|
@@ -49308,7 +49344,7 @@ const makeModernCompilerScssWorker = (environment, resolvers, alias, _maxWorkers
|
|
49308
49344
|
const result = await compiler.compileStringAsync(data, sassOptions);
|
49309
49345
|
return {
|
49310
49346
|
css: result.css,
|
49311
|
-
map: result.sourceMap ? JSON.stringify(result.sourceMap) :
|
49347
|
+
map: result.sourceMap ? JSON.stringify(result.sourceMap) : undefined,
|
49312
49348
|
stats: {
|
49313
49349
|
includedFiles: result.loadedUrls.filter((url) => url.protocol === "file:").map((url) => fileURLToPath$1(url))
|
49314
49350
|
}
|
@@ -49316,7 +49352,7 @@ const makeModernCompilerScssWorker = (environment, resolvers, alias, _maxWorkers
|
|
49316
49352
|
},
|
49317
49353
|
async stop() {
|
49318
49354
|
(await compilerPromise)?.dispose();
|
49319
|
-
compilerPromise =
|
49355
|
+
compilerPromise = undefined;
|
49320
49356
|
}
|
49321
49357
|
};
|
49322
49358
|
return worker;
|
@@ -49361,7 +49397,7 @@ const scssProcessor = (maxWorkers) => {
|
|
49361
49397
|
);
|
49362
49398
|
const optionsWithoutAdditionalData = {
|
49363
49399
|
...options,
|
49364
|
-
additionalData:
|
49400
|
+
additionalData: undefined
|
49365
49401
|
};
|
49366
49402
|
try {
|
49367
49403
|
const result = await worker.run(
|
@@ -49371,7 +49407,7 @@ const scssProcessor = (maxWorkers) => {
|
|
49371
49407
|
optionsWithoutAdditionalData
|
49372
49408
|
);
|
49373
49409
|
const deps = result.stats.includedFiles.map((f) => cleanScssBugUrl(f));
|
49374
|
-
const map2 = result.map ? JSON.parse(result.map.toString()) :
|
49410
|
+
const map2 = result.map ? JSON.parse(result.map.toString()) : undefined;
|
49375
49411
|
if (map2) {
|
49376
49412
|
map2.sources = map2.sources.map(
|
49377
49413
|
(url) => url.startsWith("file://") ? normalizePath$3(fileURLToPath$1(url)) : url
|
@@ -49446,7 +49482,7 @@ const makeLessWorker = (environment, resolvers, alias, maxWorkers) => {
|
|
49446
49482
|
filename,
|
49447
49483
|
path$d.join(dir, "*")
|
49448
49484
|
);
|
49449
|
-
if (!resolved) return
|
49485
|
+
if (!resolved) return undefined;
|
49450
49486
|
const result = await rebaseUrls(
|
49451
49487
|
environment,
|
49452
49488
|
resolved,
|
@@ -49457,7 +49493,7 @@ const makeLessWorker = (environment, resolvers, alias, maxWorkers) => {
|
|
49457
49493
|
);
|
49458
49494
|
return {
|
49459
49495
|
resolved,
|
49460
|
-
contents: "contents" in result ? result.contents :
|
49496
|
+
contents: "contents" in result ? result.contents : undefined
|
49461
49497
|
};
|
49462
49498
|
};
|
49463
49499
|
const worker = new WorkerWithFallback(
|
@@ -49555,7 +49591,7 @@ const lessProcessor = (maxWorkers) => {
|
|
49555
49591
|
let result;
|
49556
49592
|
const optionsWithoutAdditionalData = {
|
49557
49593
|
...options,
|
49558
|
-
additionalData:
|
49594
|
+
additionalData: undefined
|
49559
49595
|
};
|
49560
49596
|
try {
|
49561
49597
|
result = await worker.run(
|
@@ -49653,7 +49689,7 @@ const stylProcessor = (maxWorkers) => {
|
|
49653
49689
|
);
|
49654
49690
|
const optionsWithoutAdditionalData = {
|
49655
49691
|
...options,
|
49656
|
-
additionalData:
|
49692
|
+
additionalData: undefined
|
49657
49693
|
};
|
49658
49694
|
try {
|
49659
49695
|
const { code, map: map2, deps } = await worker.run(
|
@@ -49679,7 +49715,7 @@ const stylProcessor = (maxWorkers) => {
|
|
49679
49715
|
};
|
49680
49716
|
};
|
49681
49717
|
function formatStylusSourceMap(mapBefore, root) {
|
49682
|
-
if (!mapBefore) return
|
49718
|
+
if (!mapBefore) return undefined;
|
49683
49719
|
const map2 = { ...mapBefore };
|
49684
49720
|
const resolveFromRoot = (p) => normalizePath$3(path$d.resolve(root, p));
|
49685
49721
|
if (map2.file) {
|
@@ -49739,8 +49775,8 @@ const createPreprocessorWorkerController = (maxWorkers) => {
|
|
49739
49775
|
};
|
49740
49776
|
};
|
49741
49777
|
const normalizeMaxWorkers = (maxWorker) => {
|
49742
|
-
if (maxWorker ===
|
49743
|
-
if (maxWorker === true) return
|
49778
|
+
if (maxWorker === undefined) return 0;
|
49779
|
+
if (maxWorker === true) return undefined;
|
49744
49780
|
return maxWorker;
|
49745
49781
|
};
|
49746
49782
|
const preprocessorSet = /* @__PURE__ */ new Set([
|
@@ -49799,7 +49835,7 @@ async function compileLightningCSS(id, src, environment, urlReplacer) {
|
|
49799
49835
|
minify: config.isProduction && !!config.build.cssMinify,
|
49800
49836
|
sourceMap: config.command === "build" ? !!config.build.sourcemap : config.css.devSourcemap,
|
49801
49837
|
analyzeDependencies: true,
|
49802
|
-
cssModules: cssModuleRE.test(id) ? config.css.lightningcss?.cssModules ?? true :
|
49838
|
+
cssModules: cssModuleRE.test(id) ? config.css.lightningcss?.cssModules ?? true : undefined
|
49803
49839
|
});
|
49804
49840
|
} catch (e) {
|
49805
49841
|
e.message = `[lightningcss] ${e.message}`;
|
@@ -49866,7 +49902,7 @@ ${generateCodeFrame(src, {
|
|
49866
49902
|
}
|
49867
49903
|
return {
|
49868
49904
|
code: css,
|
49869
|
-
map: "map" in res ? res.map?.toString() :
|
49905
|
+
map: "map" in res ? res.map?.toString() : undefined,
|
49870
49906
|
deps,
|
49871
49907
|
modules
|
49872
49908
|
};
|
@@ -49947,7 +49983,7 @@ function resolveLibCssFilename(libOptions, root, packageCache) {
|
|
49947
49983
|
return `${libOptions.fileName}.css`;
|
49948
49984
|
}
|
49949
49985
|
const packageJson = findNearestPackageData(root, packageCache)?.data;
|
49950
|
-
const name = packageJson ? getPkgName(packageJson.name) :
|
49986
|
+
const name = packageJson ? getPkgName(packageJson.name) : undefined;
|
49951
49987
|
if (!name)
|
49952
49988
|
throw new Error(
|
49953
49989
|
'Name in package.json is required if option "build.lib.cssFileName" is not provided.'
|
@@ -50085,7 +50121,7 @@ function buildImportAnalysisPlugin(config) {
|
|
50085
50121
|
importer,
|
50086
50122
|
source
|
50087
50123
|
);
|
50088
|
-
this.error(message, showCodeFrame ? e.idx :
|
50124
|
+
this.error(message, showCodeFrame ? e.idx : undefined);
|
50089
50125
|
}
|
50090
50126
|
if (!imports.length) {
|
50091
50127
|
return null;
|
@@ -50282,7 +50318,7 @@ function buildImportAnalysisPlugin(config) {
|
|
50282
50318
|
}
|
50283
50319
|
const deps = /* @__PURE__ */ new Set();
|
50284
50320
|
let hasRemovedPureCssChunk = false;
|
50285
|
-
let normalizedFile =
|
50321
|
+
let normalizedFile = undefined;
|
50286
50322
|
if (url) {
|
50287
50323
|
normalizedFile = path$d.posix.join(
|
50288
50324
|
path$d.posix.dirname(chunk.fileName),
|
@@ -50334,7 +50370,7 @@ function buildImportAnalysisPlugin(config) {
|
|
50334
50370
|
// we still need to pass these deps to the preload helper in dynamic imports.
|
50335
50371
|
[...deps].filter((d) => d.endsWith(".css"))
|
50336
50372
|
) : [...deps] : [];
|
50337
|
-
const resolveDependencies = modulePreload ? modulePreload.resolveDependencies :
|
50373
|
+
const resolveDependencies = modulePreload ? modulePreload.resolveDependencies : undefined;
|
50338
50374
|
if (resolveDependencies && normalizedFile) {
|
50339
50375
|
const cssDeps = [];
|
50340
50376
|
const otherDeps = [];
|
@@ -50523,7 +50559,7 @@ function ssrManifestPlugin() {
|
|
50523
50559
|
this.emitFile({
|
50524
50560
|
fileName: typeof config.build.ssrManifest === "string" ? config.build.ssrManifest : ".vite/ssr-manifest.json",
|
50525
50561
|
type: "asset",
|
50526
|
-
source: JSON.stringify(sortObjectKeys(ssrManifest),
|
50562
|
+
source: JSON.stringify(sortObjectKeys(ssrManifest), undefined, 2)
|
50527
50563
|
});
|
50528
50564
|
}
|
50529
50565
|
};
|
@@ -50606,12 +50642,12 @@ function resolveBuildEnvironmentOptions(raw, logger, consumer) {
|
|
50606
50642
|
const deprecatedPolyfillModulePreload = raw.polyfillModulePreload;
|
50607
50643
|
const { polyfillModulePreload, ...rest } = raw;
|
50608
50644
|
raw = rest;
|
50609
|
-
if (deprecatedPolyfillModulePreload !==
|
50645
|
+
if (deprecatedPolyfillModulePreload !== undefined) {
|
50610
50646
|
logger.warn(
|
50611
50647
|
"polyfillModulePreload is deprecated. Use modulePreload.polyfill instead."
|
50612
50648
|
);
|
50613
50649
|
}
|
50614
|
-
if (deprecatedPolyfillModulePreload === false && raw.modulePreload ===
|
50650
|
+
if (deprecatedPolyfillModulePreload === false && raw.modulePreload === undefined) {
|
50615
50651
|
raw.modulePreload = { polyfill: false };
|
50616
50652
|
}
|
50617
50653
|
const merged = mergeWithDefaults(
|
@@ -50731,7 +50767,7 @@ async function buildEnvironment(environment) {
|
|
50731
50767
|
);
|
50732
50768
|
const rollupOptions = {
|
50733
50769
|
preserveEntrySignatures: ssr ? "allow-extension" : libOptions ? "strict" : false,
|
50734
|
-
cache: options.watch ?
|
50770
|
+
cache: options.watch ? undefined : false,
|
50735
50771
|
...options.rollupOptions,
|
50736
50772
|
output: options.rollupOptions.output,
|
50737
50773
|
input,
|
@@ -50773,7 +50809,7 @@ file: ${colors$1.cyan(
|
|
50773
50809
|
` + colors$1.yellow(normalizeCodeFrame(e.frame));
|
50774
50810
|
}
|
50775
50811
|
e.message = msg;
|
50776
|
-
if (stackOnly !==
|
50812
|
+
if (stackOnly !== undefined) {
|
50777
50813
|
e.stack = `${e.message}
|
50778
50814
|
${stackOnly}`;
|
50779
50815
|
}
|
@@ -50816,8 +50852,8 @@ ${stackOnly}`;
|
|
50816
50852
|
format,
|
50817
50853
|
exports: "auto",
|
50818
50854
|
sourcemap: options.sourcemap,
|
50819
|
-
name: libOptions ? libOptions.name :
|
50820
|
-
hoistTransitiveImports: libOptions ? false :
|
50855
|
+
name: libOptions ? libOptions.name : undefined,
|
50856
|
+
hoistTransitiveImports: libOptions ? false : undefined,
|
50821
50857
|
// es2015 enables `generatedCode.symbols`
|
50822
50858
|
// - #764 add `Symbol.toStringTag` when build es module into cjs chunk
|
50823
50859
|
// - #1048 add `Symbol.toStringTag` for module default export
|
@@ -50915,7 +50951,7 @@ build started...`));
|
|
50915
50951
|
logger.error(
|
50916
50952
|
`${colors$1.red("x")} Build failed in ${displayTime(Date.now() - startTime)}`
|
50917
50953
|
);
|
50918
|
-
startTime =
|
50954
|
+
startTime = undefined;
|
50919
50955
|
}
|
50920
50956
|
throw e;
|
50921
50957
|
} finally {
|
@@ -51641,7 +51677,7 @@ function createDepsOptimizer(environment) {
|
|
51641
51677
|
devToScanEnvironment(environment)
|
51642
51678
|
);
|
51643
51679
|
const deps = await discover.result;
|
51644
|
-
discover =
|
51680
|
+
discover = undefined;
|
51645
51681
|
const manuallyIncluded = Object.keys(manuallyIncludedDepsInfo);
|
51646
51682
|
discoveredDepsWhileScanning.push(
|
51647
51683
|
...Object.keys(metadata.discovered).filter(
|
@@ -51659,7 +51695,7 @@ function createDepsOptimizer(environment) {
|
|
51659
51695
|
if (!holdUntilCrawlEnd) {
|
51660
51696
|
optimizationResult.result.then((result) => {
|
51661
51697
|
if (!waitingForCrawlEnd) return;
|
51662
|
-
optimizationResult =
|
51698
|
+
optimizationResult = undefined;
|
51663
51699
|
runOptimizer(result);
|
51664
51700
|
});
|
51665
51701
|
}
|
@@ -51667,7 +51703,7 @@ function createDepsOptimizer(environment) {
|
|
51667
51703
|
logger.error(e.stack || e.message);
|
51668
51704
|
} finally {
|
51669
51705
|
resolve();
|
51670
|
-
depsOptimizer.scanProcessing =
|
51706
|
+
depsOptimizer.scanProcessing = undefined;
|
51671
51707
|
}
|
51672
51708
|
})();
|
51673
51709
|
});
|
@@ -51694,7 +51730,7 @@ function createDepsOptimizer(environment) {
|
|
51694
51730
|
async function runOptimizer(preRunResult) {
|
51695
51731
|
const isRerun = firstRunCalled;
|
51696
51732
|
firstRunCalled = true;
|
51697
|
-
enqueuedRerun =
|
51733
|
+
enqueuedRerun = undefined;
|
51698
51734
|
if (debounceProcessingHandle) clearTimeout(debounceProcessingHandle);
|
51699
51735
|
if (closed) {
|
51700
51736
|
currentlyProcessing = false;
|
@@ -51712,7 +51748,7 @@ function createDepsOptimizer(environment) {
|
|
51712
51748
|
startNextDiscoveredBatch();
|
51713
51749
|
optimizationResult = runOptimizeDeps(environment, knownDeps);
|
51714
51750
|
processingResult = await optimizationResult.result;
|
51715
|
-
optimizationResult =
|
51751
|
+
optimizationResult = undefined;
|
51716
51752
|
}
|
51717
51753
|
if (closed) {
|
51718
51754
|
currentlyProcessing = false;
|
@@ -51751,7 +51787,7 @@ function createDepsOptimizer(environment) {
|
|
51751
51787
|
discovered.browserHash = optimized.browserHash;
|
51752
51788
|
discovered.fileHash = optimized.fileHash;
|
51753
51789
|
discovered.needsInterop = optimized.needsInterop;
|
51754
|
-
discovered.processing =
|
51790
|
+
discovered.processing = undefined;
|
51755
51791
|
}
|
51756
51792
|
}
|
51757
51793
|
if (isRerun) {
|
@@ -51769,7 +51805,7 @@ function createDepsOptimizer(environment) {
|
|
51769
51805
|
if (!debug$1) {
|
51770
51806
|
if (newDepsToLogHandle) clearTimeout(newDepsToLogHandle);
|
51771
51807
|
newDepsToLogHandle = setTimeout(() => {
|
51772
|
-
newDepsToLogHandle =
|
51808
|
+
newDepsToLogHandle = undefined;
|
51773
51809
|
logNewlyDiscoveredDeps();
|
51774
51810
|
if (warnAboutMissedDependencies) {
|
51775
51811
|
logDiscoveredDepsWhileScanning();
|
@@ -51801,7 +51837,7 @@ function createDepsOptimizer(environment) {
|
|
51801
51837
|
await commitProcessing();
|
51802
51838
|
if (!debug$1) {
|
51803
51839
|
if (newDepsToLogHandle) clearTimeout(newDepsToLogHandle);
|
51804
|
-
newDepsToLogHandle =
|
51840
|
+
newDepsToLogHandle = undefined;
|
51805
51841
|
logNewlyDiscoveredDeps();
|
51806
51842
|
if (warnAboutMissedDependencies) {
|
51807
51843
|
logDiscoveredDepsWhileScanning();
|
@@ -51904,12 +51940,12 @@ ${e.stack}`),
|
|
51904
51940
|
});
|
51905
51941
|
}
|
51906
51942
|
function debouncedProcessing(timeout = debounceMs) {
|
51907
|
-
enqueuedRerun =
|
51943
|
+
enqueuedRerun = undefined;
|
51908
51944
|
if (debounceProcessingHandle) clearTimeout(debounceProcessingHandle);
|
51909
51945
|
if (newDepsToLogHandle) clearTimeout(newDepsToLogHandle);
|
51910
|
-
newDepsToLogHandle =
|
51946
|
+
newDepsToLogHandle = undefined;
|
51911
51947
|
debounceProcessingHandle = setTimeout(() => {
|
51912
|
-
debounceProcessingHandle =
|
51948
|
+
debounceProcessingHandle = undefined;
|
51913
51949
|
enqueuedRerun = rerun;
|
51914
51950
|
if (!currentlyProcessing) {
|
51915
51951
|
enqueuedRerun();
|
@@ -51925,7 +51961,7 @@ ${e.stack}`),
|
|
51925
51961
|
await depsOptimizer.scanProcessing;
|
51926
51962
|
if (optimizationResult && !options.noDiscovery) {
|
51927
51963
|
const afterScanResult = optimizationResult.result;
|
51928
|
-
optimizationResult =
|
51964
|
+
optimizationResult = undefined;
|
51929
51965
|
const result = await afterScanResult;
|
51930
51966
|
currentlyProcessing = false;
|
51931
51967
|
const crawlDeps = Object.keys(metadata.discovered);
|
@@ -52029,7 +52065,7 @@ function findInteropMismatches(discovered, optimized) {
|
|
52029
52065
|
const needsInteropMismatch = [];
|
52030
52066
|
for (const dep in discovered) {
|
52031
52067
|
const discoveredDepInfo = discovered[dep];
|
52032
|
-
if (discoveredDepInfo.needsInterop ===
|
52068
|
+
if (discoveredDepInfo.needsInterop === undefined) continue;
|
52033
52069
|
const depInfo = optimized[dep];
|
52034
52070
|
if (!depInfo) continue;
|
52035
52071
|
if (depInfo.needsInterop !== discoveredDepInfo.needsInterop) {
|
@@ -52506,7 +52542,7 @@ class DevEnvironment extends BaseEnvironment {
|
|
52506
52542
|
this._pendingRequests = /* @__PURE__ */ new Map();
|
52507
52543
|
this.moduleGraph = new EnvironmentModuleGraph(
|
52508
52544
|
name,
|
52509
|
-
(url) => this.pluginContainer.resolveId(url,
|
52545
|
+
(url) => this.pluginContainer.resolveId(url, undefined)
|
52510
52546
|
);
|
52511
52547
|
this._crawlEndFinder = setupOnCrawlEnd();
|
52512
52548
|
this._remoteRunnerOptions = context.remoteRunner ?? {};
|
@@ -52526,7 +52562,7 @@ class DevEnvironment extends BaseEnvironment {
|
|
52526
52562
|
if (context.depsOptimizer) {
|
52527
52563
|
this.depsOptimizer = context.depsOptimizer;
|
52528
52564
|
} else if (isDepOptimizationDisabled(optimizeDeps)) {
|
52529
|
-
this.depsOptimizer =
|
52565
|
+
this.depsOptimizer = undefined;
|
52530
52566
|
} else {
|
52531
52567
|
this.depsOptimizer = (optimizeDeps.noDiscovery ? createExplicitDepsOptimizer : createDepsOptimizer)(this);
|
52532
52568
|
}
|
@@ -52881,14 +52917,21 @@ async function preview(inlineConfig = {}) {
|
|
52881
52917
|
const options = config.preview;
|
52882
52918
|
const logger = config.logger;
|
52883
52919
|
const closeHttpServer = createServerCloseFn(httpServer);
|
52920
|
+
let closeServerPromise;
|
52921
|
+
const closeServer = async () => {
|
52922
|
+
teardownSIGTERMListener(closeServerAndExit);
|
52923
|
+
await closeHttpServer();
|
52924
|
+
server.resolvedUrls = null;
|
52925
|
+
};
|
52884
52926
|
const server = {
|
52885
52927
|
config,
|
52886
52928
|
middlewares: app,
|
52887
52929
|
httpServer,
|
52888
52930
|
async close() {
|
52889
|
-
|
52890
|
-
|
52891
|
-
|
52931
|
+
if (!closeServerPromise) {
|
52932
|
+
closeServerPromise = closeServer();
|
52933
|
+
}
|
52934
|
+
return closeServerPromise;
|
52892
52935
|
},
|
52893
52936
|
resolvedUrls: null,
|
52894
52937
|
printUrls() {
|
@@ -52906,7 +52949,7 @@ async function preview(inlineConfig = {}) {
|
|
52906
52949
|
try {
|
52907
52950
|
await server.close();
|
52908
52951
|
} finally {
|
52909
|
-
process.exitCode ??= exitCode ? 128 + exitCode :
|
52952
|
+
process.exitCode ??= exitCode ? 128 + exitCode : undefined;
|
52910
52953
|
process.exit();
|
52911
52954
|
}
|
52912
52955
|
};
|
@@ -52992,7 +53035,7 @@ function resolveSSROptions(ssr, preserveSymlinks) {
|
|
52992
53035
|
const defaults = mergeWithDefaults(ssrConfigDefaults, {
|
52993
53036
|
optimizeDeps: { esbuildOptions: { preserveSymlinks } }
|
52994
53037
|
});
|
52995
|
-
return mergeWithDefaults(defaults, ssr
|
53038
|
+
return mergeWithDefaults(defaults, ssr);
|
52996
53039
|
}
|
52997
53040
|
|
52998
53041
|
const debug = createDebugger("vite:config", { depth: 10 });
|
@@ -53016,7 +53059,7 @@ const configDefaults = Object.freeze({
|
|
53016
53059
|
// preTransformRequests
|
53017
53060
|
/** @experimental */
|
53018
53061
|
sourcemap: { js: true },
|
53019
|
-
sourcemapIgnoreList:
|
53062
|
+
sourcemapIgnoreList: undefined
|
53020
53063
|
// createEnvironment
|
53021
53064
|
// recoverable
|
53022
53065
|
// moduleRunnerTransform
|
@@ -53041,7 +53084,7 @@ const configDefaults = Object.freeze({
|
|
53041
53084
|
// mode
|
53042
53085
|
plugins: [],
|
53043
53086
|
html: {
|
53044
|
-
cspNonce:
|
53087
|
+
cspNonce: undefined
|
53045
53088
|
},
|
53046
53089
|
css: cssConfigDefaults,
|
53047
53090
|
json: {
|
@@ -53049,7 +53092,7 @@ const configDefaults = Object.freeze({
|
|
53049
53092
|
stringify: "auto"
|
53050
53093
|
},
|
53051
53094
|
// esbuild
|
53052
|
-
assetsInclude:
|
53095
|
+
assetsInclude: undefined,
|
53053
53096
|
/** @experimental */
|
53054
53097
|
builder: builderOptionsDefaults,
|
53055
53098
|
server: serverConfigDefaults,
|
@@ -53066,25 +53109,25 @@ const configDefaults = Object.freeze({
|
|
53066
53109
|
/** @experimental */
|
53067
53110
|
experimental: {
|
53068
53111
|
importGlobRestoreExtension: false,
|
53069
|
-
renderBuiltUrl:
|
53112
|
+
renderBuiltUrl: undefined,
|
53070
53113
|
hmrPartialAccept: false,
|
53071
53114
|
skipSsrTransform: false
|
53072
53115
|
},
|
53073
53116
|
future: {
|
53074
|
-
removePluginHookHandleHotUpdate:
|
53075
|
-
removePluginHookSsrArgument:
|
53076
|
-
removeServerModuleGraph:
|
53077
|
-
removeServerHot:
|
53078
|
-
removeServerTransformRequest:
|
53079
|
-
removeSsrLoadModule:
|
53117
|
+
removePluginHookHandleHotUpdate: undefined,
|
53118
|
+
removePluginHookSsrArgument: undefined,
|
53119
|
+
removeServerModuleGraph: undefined,
|
53120
|
+
removeServerHot: undefined,
|
53121
|
+
removeServerTransformRequest: undefined,
|
53122
|
+
removeSsrLoadModule: undefined
|
53080
53123
|
},
|
53081
53124
|
legacy: {
|
53082
53125
|
proxySsrExternalModules: false
|
53083
53126
|
},
|
53084
53127
|
logLevel: "info",
|
53085
|
-
customLogger:
|
53128
|
+
customLogger: undefined,
|
53086
53129
|
clearScreen: true,
|
53087
|
-
envDir:
|
53130
|
+
envDir: undefined,
|
53088
53131
|
envPrefix: "VITE_",
|
53089
53132
|
worker: {
|
53090
53133
|
format: "iife",
|
@@ -53119,7 +53162,7 @@ function resolveDevEnvironmentOptions(dev, environmentName, consumer, skipSsrTra
|
|
53119
53162
|
preTransformRequests: consumer === "client",
|
53120
53163
|
createEnvironment: environmentName === "client" ? defaultCreateClientDevEnvironment : defaultCreateDevEnvironment,
|
53121
53164
|
recoverable: consumer === "client",
|
53122
|
-
moduleRunnerTransform: skipSsrTransform !==
|
53165
|
+
moduleRunnerTransform: skipSsrTransform !== undefined && consumer === "server" ? skipSsrTransform : consumer === "server"
|
53123
53166
|
},
|
53124
53167
|
dev ?? {}
|
53125
53168
|
);
|
@@ -53169,8 +53212,8 @@ function getDefaultEnvironmentOptions(config) {
|
|
53169
53212
|
resolve: {
|
53170
53213
|
...config.resolve,
|
53171
53214
|
// mainFields and conditions are not inherited
|
53172
|
-
mainFields:
|
53173
|
-
conditions:
|
53215
|
+
mainFields: undefined,
|
53216
|
+
conditions: undefined
|
53174
53217
|
},
|
53175
53218
|
dev: config.dev,
|
53176
53219
|
build: config.build
|
@@ -53210,8 +53253,8 @@ function resolveEnvironmentResolveOptions(resolve, alias, preserveSymlinks, logg
|
|
53210
53253
|
const resolvedResolve = mergeWithDefaults(
|
53211
53254
|
{
|
53212
53255
|
...configDefaults.resolve,
|
53213
|
-
mainFields: consumer === "client" || isSsrTargetWebworkerEnvironment ? DEFAULT_CLIENT_MAIN_FIELDS : DEFAULT_SERVER_MAIN_FIELDS,
|
53214
|
-
conditions: consumer === "client" || isSsrTargetWebworkerEnvironment ? DEFAULT_CLIENT_CONDITIONS : DEFAULT_SERVER_CONDITIONS.filter((c) => c !== "browser"),
|
53256
|
+
mainFields: consumer === undefined || consumer === "client" || isSsrTargetWebworkerEnvironment ? DEFAULT_CLIENT_MAIN_FIELDS : DEFAULT_SERVER_MAIN_FIELDS,
|
53257
|
+
conditions: consumer === undefined || consumer === "client" || isSsrTargetWebworkerEnvironment ? DEFAULT_CLIENT_CONDITIONS : DEFAULT_SERVER_CONDITIONS.filter((c) => c !== "browser"),
|
53215
53258
|
enableBuiltinNoExternalCheck: !!isSsrTargetWebworkerEnvironment
|
53216
53259
|
},
|
53217
53260
|
resolve ?? {}
|
@@ -53247,14 +53290,14 @@ function resolveResolveOptions(resolve, logger) {
|
|
53247
53290
|
alias,
|
53248
53291
|
preserveSymlinks,
|
53249
53292
|
logger,
|
53250
|
-
|
53293
|
+
undefined
|
53251
53294
|
);
|
53252
53295
|
}
|
53253
53296
|
function resolveDepOptimizationOptions(optimizeDeps, preserveSymlinks, consumer) {
|
53254
53297
|
return mergeWithDefaults(
|
53255
53298
|
{
|
53256
53299
|
...configDefaults.optimizeDeps,
|
53257
|
-
disabled:
|
53300
|
+
disabled: undefined,
|
53258
53301
|
// do not set here to avoid deprecation warning
|
53259
53302
|
noDiscovery: consumer !== "client",
|
53260
53303
|
esbuildOptions: {
|
@@ -53264,7 +53307,7 @@ function resolveDepOptimizationOptions(optimizeDeps, preserveSymlinks, consumer)
|
|
53264
53307
|
optimizeDeps ?? {}
|
53265
53308
|
);
|
53266
53309
|
}
|
53267
|
-
async function resolveConfig(inlineConfig, command, defaultMode = "development", defaultNodeEnv = "development", isPreview = false, patchConfig =
|
53310
|
+
async function resolveConfig(inlineConfig, command, defaultMode = "development", defaultNodeEnv = "development", isPreview = false, patchConfig = undefined, patchPlugins = undefined) {
|
53268
53311
|
let config = inlineConfig;
|
53269
53312
|
let configFileDependencies = [];
|
53270
53313
|
let mode = inlineConfig.mode || defaultMode;
|
@@ -53358,7 +53401,7 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
|
|
53358
53401
|
configEnvironmentsSsr.resolve ?? {}
|
53359
53402
|
);
|
53360
53403
|
}
|
53361
|
-
if (config.build?.ssrEmitAssets !==
|
53404
|
+
if (config.build?.ssrEmitAssets !== undefined) {
|
53362
53405
|
configEnvironmentsSsr ??= {};
|
53363
53406
|
configEnvironmentsSsr.build ??= {};
|
53364
53407
|
configEnvironmentsSsr.build.emitAssets = config.build.ssrEmitAssets;
|
@@ -53379,12 +53422,12 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
|
|
53379
53422
|
...defaultEnvironmentOptions,
|
53380
53423
|
dev: {
|
53381
53424
|
...defaultEnvironmentOptions.dev,
|
53382
|
-
createEnvironment:
|
53383
|
-
warmup:
|
53425
|
+
createEnvironment: undefined,
|
53426
|
+
warmup: undefined
|
53384
53427
|
},
|
53385
53428
|
build: {
|
53386
53429
|
...defaultEnvironmentOptions.build,
|
53387
|
-
createEnvironment:
|
53430
|
+
createEnvironment: undefined
|
53388
53431
|
}
|
53389
53432
|
};
|
53390
53433
|
for (const name of Object.keys(config.environments)) {
|
@@ -53419,13 +53462,13 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
|
|
53419
53462
|
const resolvedDevEnvironmentOptions = resolveDevEnvironmentOptions(
|
53420
53463
|
config.dev,
|
53421
53464
|
// default environment options
|
53422
|
-
|
53423
|
-
|
53465
|
+
undefined,
|
53466
|
+
undefined
|
53424
53467
|
);
|
53425
53468
|
const resolvedBuildOptions = resolveBuildEnvironmentOptions(
|
53426
53469
|
config.build ?? {},
|
53427
53470
|
logger,
|
53428
|
-
|
53471
|
+
undefined
|
53429
53472
|
);
|
53430
53473
|
const patchedConfigSsr = {
|
53431
53474
|
...config.ssr,
|
@@ -53525,7 +53568,7 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
|
|
53525
53568
|
};
|
53526
53569
|
const base = withTrailingSlash(resolvedBase);
|
53527
53570
|
resolved = {
|
53528
|
-
configFile: configFile ? normalizePath$3(configFile) :
|
53571
|
+
configFile: configFile ? normalizePath$3(configFile) : undefined,
|
53529
53572
|
configFileDependencies: configFileDependencies.map(
|
53530
53573
|
(name) => normalizePath$3(path$d.resolve(name))
|
53531
53574
|
),
|
@@ -53580,8 +53623,8 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
|
|
53580
53623
|
dev: resolvedDevEnvironmentOptions,
|
53581
53624
|
build: resolvedBuildOptions,
|
53582
53625
|
environments: resolvedEnvironments,
|
53583
|
-
getSortedPlugins:
|
53584
|
-
getSortedPluginHooks:
|
53626
|
+
getSortedPlugins: undefined,
|
53627
|
+
getSortedPluginHooks: undefined,
|
53585
53628
|
/**
|
53586
53629
|
* createResolver is deprecated. It only works for the client and ssr
|
53587
53630
|
* environments. The `aliasOnly` option is also not being used any more
|
@@ -53908,7 +53951,7 @@ async function bundleConfigFile(fileName, isESM) {
|
|
53908
53951
|
const _require = createRequire$1(import.meta.url);
|
53909
53952
|
async function loadConfigFromBundledFile(fileName, bundledCode, isESM) {
|
53910
53953
|
if (isESM) {
|
53911
|
-
let nodeModulesDir = typeof process.versions.deno === "string" ?
|
53954
|
+
let nodeModulesDir = typeof process.versions.deno === "string" ? undefined : findNearestNodeModules(path$d.dirname(fileName));
|
53912
53955
|
if (nodeModulesDir) {
|
53913
53956
|
try {
|
53914
53957
|
await fsp.mkdir(path$d.resolve(nodeModulesDir, ".vite-temp/"), {
|
@@ -53916,7 +53959,7 @@ async function loadConfigFromBundledFile(fileName, bundledCode, isESM) {
|
|
53916
53959
|
});
|
53917
53960
|
} catch (e) {
|
53918
53961
|
if (e.code === "EACCES") {
|
53919
|
-
nodeModulesDir =
|
53962
|
+
nodeModulesDir = undefined;
|
53920
53963
|
} else {
|
53921
53964
|
throw e;
|
53922
53965
|
}
|
@@ -53982,14 +54025,14 @@ async function runConfigEnvironmentHook(environments, plugins, configEnv, isSsrT
|
|
53982
54025
|
}
|
53983
54026
|
function optimizeDepsDisabledBackwardCompatibility(resolved, optimizeDeps, optimizeDepsPath = "") {
|
53984
54027
|
const optimizeDepsDisabled = optimizeDeps.disabled;
|
53985
|
-
if (optimizeDepsDisabled !==
|
54028
|
+
if (optimizeDepsDisabled !== undefined) {
|
53986
54029
|
if (optimizeDepsDisabled === true || optimizeDepsDisabled === "dev") {
|
53987
54030
|
const commonjsOptionsInclude = resolved.build.commonjsOptions.include;
|
53988
54031
|
const commonjsPluginDisabled = Array.isArray(commonjsOptionsInclude) && commonjsOptionsInclude.length === 0;
|
53989
54032
|
optimizeDeps.noDiscovery = true;
|
53990
|
-
optimizeDeps.include =
|
54033
|
+
optimizeDeps.include = undefined;
|
53991
54034
|
if (commonjsPluginDisabled) {
|
53992
|
-
resolved.build.commonjsOptions.include =
|
54035
|
+
resolved.build.commonjsOptions.include = undefined;
|
53993
54036
|
}
|
53994
54037
|
resolved.logger.warn(
|
53995
54038
|
colors$1.yellow(`(!) Experimental ${optimizeDepsPath}optimizeDeps.disabled and deps pre-bundling during build were removed in Vite 5.1.
|