vite 6.3.1 → 6.3.3
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/node/chunks/{dep-Bxmd1Uxj.js → dep-BMIURPaQ.js} +101 -71
- package/dist/node/chunks/{dep-yVbOhD1o.js → dep-CixbwhWq.js} +1 -1
- package/dist/node/chunks/{dep-DYEId0Fh.js → dep-DD7x-aKn.js} +1 -1
- package/dist/node/cli.js +5 -5
- package/dist/node/constants.js +2 -1
- package/dist/node/index.d.ts +3 -2
- package/dist/node/index.js +2 -2
- package/dist/node/module-runner.d.ts +4 -3
- package/dist/node/{moduleRunnerTransport.d-CXw_Ws6P.d.ts → moduleRunnerTransport.d-DJ_mE5sf.d.ts} +2 -1
- package/dist/node-cjs/publicUtils.cjs +5 -6
- package/package.json +12 -12
@@ -7510,14 +7510,17 @@ const teardownSIGTERMListener = (callback) => {
|
|
7510
7510
|
}
|
7511
7511
|
}
|
7512
7512
|
};
|
7513
|
-
function getServerUrlByHost(
|
7514
|
-
if (typeof host
|
7515
|
-
|
7513
|
+
function getServerUrlByHost(resolvedUrls, host) {
|
7514
|
+
if (typeof host === "string") {
|
7515
|
+
const matchedUrl = [
|
7516
|
+
...resolvedUrls?.local ?? [],
|
7517
|
+
...resolvedUrls?.network ?? []
|
7518
|
+
].find((url) => url.includes(host));
|
7519
|
+
if (matchedUrl) {
|
7520
|
+
return matchedUrl;
|
7521
|
+
}
|
7516
7522
|
}
|
7517
|
-
return [
|
7518
|
-
...server.resolvedUrls?.local ?? [],
|
7519
|
-
...server.resolvedUrls?.network ?? []
|
7520
|
-
].find((url) => url.includes(host));
|
7523
|
+
return resolvedUrls?.local[0] ?? resolvedUrls?.network[0];
|
7521
7524
|
}
|
7522
7525
|
|
7523
7526
|
const LogLevels = {
|
@@ -10556,7 +10559,7 @@ async function fileToBuiltUrl(pluginContext, id, skipPublicCheck = false, forceI
|
|
10556
10559
|
if (cached) {
|
10557
10560
|
return cached;
|
10558
10561
|
}
|
10559
|
-
|
10562
|
+
let { file, postfix } = splitFileAndPostfix(id);
|
10560
10563
|
const content = await fsp.readFile(file);
|
10561
10564
|
let url;
|
10562
10565
|
if (shouldInline(environment, file, id, content, pluginContext, forceInline)) {
|
@@ -10572,6 +10575,9 @@ async function fileToBuiltUrl(pluginContext, id, skipPublicCheck = false, forceI
|
|
10572
10575
|
originalFileName,
|
10573
10576
|
source: content
|
10574
10577
|
});
|
10578
|
+
if (environment.config.command === "build" && noInlineRE.test(postfix)) {
|
10579
|
+
postfix = postfix.replace(noInlineRE, "").replace(/^&/, "?");
|
10580
|
+
}
|
10575
10581
|
url = `__VITE_ASSET__${referenceId}__${postfix ? `$_${postfix}__` : ``}`;
|
10576
10582
|
}
|
10577
10583
|
cache.set(id, url);
|
@@ -12219,7 +12225,9 @@ function encodeQueryItem(key, value) {
|
|
12219
12225
|
return encodeQueryKey(key);
|
12220
12226
|
}
|
12221
12227
|
if (Array.isArray(value)) {
|
12222
|
-
return value.map(
|
12228
|
+
return value.map(
|
12229
|
+
(_value) => `${encodeQueryKey(key)}=${encodeQueryValue(_value)}`
|
12230
|
+
).join("&");
|
12223
12231
|
}
|
12224
12232
|
return `${encodeQueryKey(key)}=${encodeQueryValue(value)}`;
|
12225
12233
|
}
|
@@ -16441,7 +16449,7 @@ function throwFileNotFoundInOptimizedDep(id) {
|
|
16441
16449
|
|
16442
16450
|
var main = {exports: {}};
|
16443
16451
|
|
16444
|
-
var version$1 = "16.
|
16452
|
+
var version$1 = "16.5.0";
|
16445
16453
|
var require$$4 = {
|
16446
16454
|
version: version$1};
|
16447
16455
|
|
@@ -16536,10 +16544,6 @@ function _parseVault (options) {
|
|
16536
16544
|
return DotenvModule.parse(decrypted)
|
16537
16545
|
}
|
16538
16546
|
|
16539
|
-
function _log (message) {
|
16540
|
-
console.log(`[dotenv@${version}][INFO] ${message}`);
|
16541
|
-
}
|
16542
|
-
|
16543
16547
|
function _warn (message) {
|
16544
16548
|
console.log(`[dotenv@${version}][WARN] ${message}`);
|
16545
16549
|
}
|
@@ -16635,7 +16639,10 @@ function _resolveHome (envPath) {
|
|
16635
16639
|
}
|
16636
16640
|
|
16637
16641
|
function _configVault (options) {
|
16638
|
-
|
16642
|
+
const debug = Boolean(options && options.debug);
|
16643
|
+
if (debug) {
|
16644
|
+
_debug('Loading env from encrypted .env.vault');
|
16645
|
+
}
|
16639
16646
|
|
16640
16647
|
const parsed = DotenvModule._parseVault(options);
|
16641
16648
|
|
@@ -25649,14 +25656,40 @@ async function ssrTransformScript(code, inMap, url, originalCode) {
|
|
25649
25656
|
}
|
25650
25657
|
const imports = [];
|
25651
25658
|
const exports = [];
|
25659
|
+
const reExportImportIdMap = /* @__PURE__ */ new Map();
|
25652
25660
|
for (const node of ast.body) {
|
25653
25661
|
if (node.type === "ImportDeclaration") {
|
25654
25662
|
imports.push(node);
|
25655
|
-
} else if (node.type === "
|
25663
|
+
} else if (node.type === "ExportDefaultDeclaration") {
|
25664
|
+
exports.push(node);
|
25665
|
+
} else if (node.type === "ExportNamedDeclaration" || node.type === "ExportAllDeclaration") {
|
25666
|
+
imports.push(node);
|
25656
25667
|
exports.push(node);
|
25657
25668
|
}
|
25658
25669
|
}
|
25659
25670
|
for (const node of imports) {
|
25671
|
+
if (node.type === "ExportNamedDeclaration") {
|
25672
|
+
if (node.source) {
|
25673
|
+
const importId2 = defineImport(
|
25674
|
+
hoistIndex,
|
25675
|
+
node,
|
25676
|
+
{
|
25677
|
+
importedNames: node.specifiers.map(
|
25678
|
+
(s2) => getIdentifierNameOrLiteralValue$1(s2.local)
|
25679
|
+
)
|
25680
|
+
}
|
25681
|
+
);
|
25682
|
+
reExportImportIdMap.set(node, importId2);
|
25683
|
+
}
|
25684
|
+
continue;
|
25685
|
+
}
|
25686
|
+
if (node.type === "ExportAllDeclaration") {
|
25687
|
+
if (node.source) {
|
25688
|
+
const importId2 = defineImport(hoistIndex, node);
|
25689
|
+
reExportImportIdMap.set(node, importId2);
|
25690
|
+
}
|
25691
|
+
continue;
|
25692
|
+
}
|
25660
25693
|
const importId = defineImport(hoistIndex, node, {
|
25661
25694
|
importedNames: node.specifiers.map((s2) => {
|
25662
25695
|
if (s2.type === "ImportSpecifier")
|
@@ -25699,17 +25732,8 @@ async function ssrTransformScript(code, inMap, url, originalCode) {
|
|
25699
25732
|
}
|
25700
25733
|
s.remove(node.start, node.declaration.start);
|
25701
25734
|
} else {
|
25702
|
-
s.remove(node.start, node.end);
|
25703
25735
|
if (node.source) {
|
25704
|
-
const importId =
|
25705
|
-
node.start,
|
25706
|
-
node,
|
25707
|
-
{
|
25708
|
-
importedNames: node.specifiers.map(
|
25709
|
-
(s2) => getIdentifierNameOrLiteralValue$1(s2.local)
|
25710
|
-
)
|
25711
|
-
}
|
25712
|
-
);
|
25736
|
+
const importId = reExportImportIdMap.get(node);
|
25713
25737
|
for (const spec of node.specifiers) {
|
25714
25738
|
const exportedAs = getIdentifierNameOrLiteralValue$1(
|
25715
25739
|
spec.exported
|
@@ -25724,6 +25748,7 @@ async function ssrTransformScript(code, inMap, url, originalCode) {
|
|
25724
25748
|
}
|
25725
25749
|
}
|
25726
25750
|
} else {
|
25751
|
+
s.remove(node.start, node.end);
|
25727
25752
|
for (const spec of node.specifiers) {
|
25728
25753
|
const local = spec.local.name;
|
25729
25754
|
const binding = idToImportMap.get(local);
|
@@ -25744,20 +25769,19 @@ async function ssrTransformScript(code, inMap, url, originalCode) {
|
|
25744
25769
|
node.start + 15
|
25745
25770
|
/* 'export default '.length */
|
25746
25771
|
);
|
25747
|
-
|
25748
|
-
`
|
25749
|
-
Object.defineProperty(${ssrModuleExportsKey}, "default", { enumerable: true, configurable: true, value: ${name} });`
|
25750
|
-
);
|
25772
|
+
defineExport("default", name);
|
25751
25773
|
} else {
|
25774
|
+
const name = `__vite_ssr_export_default__`;
|
25752
25775
|
s.update(
|
25753
25776
|
node.start,
|
25754
25777
|
node.start + 14,
|
25755
|
-
|
25778
|
+
`const ${name} =`
|
25756
25779
|
);
|
25780
|
+
defineExport("default", name);
|
25757
25781
|
}
|
25758
25782
|
}
|
25759
25783
|
if (node.type === "ExportAllDeclaration") {
|
25760
|
-
const importId =
|
25784
|
+
const importId = reExportImportIdMap.get(node);
|
25761
25785
|
if (node.exported) {
|
25762
25786
|
const exportedAs = getIdentifierNameOrLiteralValue$1(
|
25763
25787
|
node.exported
|
@@ -26324,6 +26348,7 @@ const baseOpen = async options => {
|
|
26324
26348
|
'firefox.desktop': 'firefox',
|
26325
26349
|
'com.microsoft.msedge': 'edge',
|
26326
26350
|
'com.microsoft.edge': 'edge',
|
26351
|
+
'com.microsoft.edgemac': 'edge',
|
26327
26352
|
'microsoft-edge.desktop': 'edge',
|
26328
26353
|
};
|
26329
26354
|
|
@@ -37091,6 +37116,12 @@ function transformMiddleware(server) {
|
|
37091
37116
|
"\0"
|
37092
37117
|
);
|
37093
37118
|
} catch (e) {
|
37119
|
+
if (e instanceof URIError) {
|
37120
|
+
server.config.logger.warn(
|
37121
|
+
colors$1.yellow("Malformed URI sequence in request URL")
|
37122
|
+
);
|
37123
|
+
return next();
|
37124
|
+
}
|
37094
37125
|
return next(e);
|
37095
37126
|
}
|
37096
37127
|
const withoutQuery = cleanUrl(url);
|
@@ -38429,7 +38460,7 @@ async function _createServer(inlineConfig = {}, options) {
|
|
38429
38460
|
},
|
38430
38461
|
openBrowser() {
|
38431
38462
|
const options2 = server.config.server;
|
38432
|
-
const url = getServerUrlByHost(server, options2.host);
|
38463
|
+
const url = getServerUrlByHost(server.resolvedUrls, options2.host);
|
38433
38464
|
if (url) {
|
38434
38465
|
const path2 = typeof options2.open === "string" ? new URL(options2.open, url).href : url;
|
38435
38466
|
if (server.config.server.preTransformRequests) {
|
@@ -42761,8 +42792,6 @@ function resolveCSSOptions(options) {
|
|
42761
42792
|
if (resolved.transformer === "lightningcss") {
|
42762
42793
|
resolved.lightningcss ??= {};
|
42763
42794
|
resolved.lightningcss.targets ??= convertTargets(ESBUILD_MODULES_TARGET);
|
42764
|
-
} else {
|
42765
|
-
resolved.lightningcss = void 0;
|
42766
42795
|
}
|
42767
42796
|
return resolved;
|
42768
42797
|
}
|
@@ -43443,6 +43472,7 @@ function getEmptyChunkReplacer(pureCssChunkNames, outputFormat) {
|
|
43443
43472
|
}
|
43444
43473
|
);
|
43445
43474
|
}
|
43475
|
+
const fileURLWithWindowsDriveRE = /^file:\/\/\/[a-zA-Z]:\//;
|
43446
43476
|
function createCSSResolvers(config) {
|
43447
43477
|
let cssResolve;
|
43448
43478
|
let sassResolve;
|
@@ -43472,7 +43502,7 @@ function createCSSResolvers(config) {
|
|
43472
43502
|
args[1] = fileURLToPath$1(args[1], {
|
43473
43503
|
windows: (
|
43474
43504
|
// file:///foo cannot be converted to path with windows mode
|
43475
|
-
isWindows$3 && args[1]
|
43505
|
+
isWindows$3 && !fileURLWithWindowsDriveRE.test(args[1]) ? false : void 0
|
43476
43506
|
)
|
43477
43507
|
});
|
43478
43508
|
}
|
@@ -43834,8 +43864,8 @@ function createCachedImport(imp) {
|
|
43834
43864
|
return cached;
|
43835
43865
|
};
|
43836
43866
|
}
|
43837
|
-
const importPostcssImport = createCachedImport(() => import('./dep-
|
43838
|
-
const importPostcssModules = createCachedImport(() => import('./dep-
|
43867
|
+
const importPostcssImport = createCachedImport(() => import('./dep-DD7x-aKn.js').then(function (n) { return n.i; }));
|
43868
|
+
const importPostcssModules = createCachedImport(() => import('./dep-CixbwhWq.js').then(function (n) { return n.i; }));
|
43839
43869
|
const importPostcss = createCachedImport(() => import('postcss'));
|
43840
43870
|
const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
|
43841
43871
|
let alwaysFakeWorkerWorkerControllerCache;
|
@@ -44076,23 +44106,23 @@ async function minifyCSS(css, config, inlined) {
|
|
44076
44106
|
code: Buffer.from(css),
|
44077
44107
|
minify: true
|
44078
44108
|
});
|
44079
|
-
|
44080
|
-
|
44081
|
-
|
44082
|
-
|
44083
|
-
|
44084
|
-
|
44085
|
-
|
44086
|
-
|
44087
|
-
);
|
44088
|
-
config.logger.warn(
|
44089
|
-
colors$1.yellow(`warnings when minifying css:
|
44090
|
-
${messages.join("\n")}`)
|
44091
|
-
);
|
44109
|
+
for (const warning of warnings) {
|
44110
|
+
let msg = `[lightningcss minify] ${warning.message}`;
|
44111
|
+
msg += `
|
44112
|
+
${generateCodeFrame(css, {
|
44113
|
+
line: warning.loc.line,
|
44114
|
+
column: warning.loc.column - 1
|
44115
|
+
// 1-based
|
44116
|
+
})}`;
|
44117
|
+
config.logger.warn(colors$1.yellow(msg));
|
44092
44118
|
}
|
44093
44119
|
return decoder.decode(code) + (inlined ? "" : "\n");
|
44094
44120
|
} catch (e) {
|
44095
44121
|
e.message = `[lightningcss minify] ${e.message}`;
|
44122
|
+
const friendlyMessage = getLightningCssErrorMessageForIeSyntaxes(css);
|
44123
|
+
if (friendlyMessage) {
|
44124
|
+
e.message += friendlyMessage;
|
44125
|
+
}
|
44096
44126
|
if (e.loc) {
|
44097
44127
|
e.loc = {
|
44098
44128
|
line: e.loc.line,
|
@@ -44113,7 +44143,7 @@ ${messages.join("\n")}`)
|
|
44113
44143
|
if (warnings.length) {
|
44114
44144
|
const msgs = await formatMessages(warnings, { kind: "warning" });
|
44115
44145
|
config.logger.warn(
|
44116
|
-
colors$1.yellow(`
|
44146
|
+
colors$1.yellow(`[esbuild css minify]
|
44117
44147
|
${msgs.join("\n")}`)
|
44118
44148
|
);
|
44119
44149
|
}
|
@@ -44999,11 +45029,9 @@ async function compileLightningCSS(environment, id, src, deps, workerController,
|
|
44999
45029
|
};
|
45000
45030
|
try {
|
45001
45031
|
const code = fs__default.readFileSync(e.fileName, "utf-8");
|
45002
|
-
const
|
45003
|
-
if (
|
45004
|
-
e.message +=
|
45005
|
-
} else if (/min-width:\s*0\\0/.test(code)) {
|
45006
|
-
e.message += ".\nThis file contains @media zero hack (e.g. `@media (min-width: 0\\0)`)" + commonIeMessage;
|
45032
|
+
const friendlyMessage = getLightningCssErrorMessageForIeSyntaxes(code);
|
45033
|
+
if (friendlyMessage) {
|
45034
|
+
e.message += friendlyMessage;
|
45007
45035
|
}
|
45008
45036
|
} catch {
|
45009
45037
|
}
|
@@ -45071,6 +45099,16 @@ ${generateCodeFrame(src, {
|
|
45071
45099
|
modules
|
45072
45100
|
};
|
45073
45101
|
}
|
45102
|
+
function getLightningCssErrorMessageForIeSyntaxes(code) {
|
45103
|
+
const commonIeMessage = ", which was used in the past to support old Internet Explorer versions. This is not a valid CSS syntax and will be ignored by modern browsers. \nWhile this is not supported by LightningCSS, you can set `css.lightningcss.errorRecovery: true` to strip these codes.";
|
45104
|
+
if (/[\s;{]\*[a-zA-Z-][\w-]+\s*:/.test(code)) {
|
45105
|
+
return ".\nThis file contains star property hack (e.g. `*zoom`)" + commonIeMessage;
|
45106
|
+
}
|
45107
|
+
if (/min-width:\s*0\\0/.test(code)) {
|
45108
|
+
return ".\nThis file contains @media zero hack (e.g. `@media (min-width: 0\\0)`)" + commonIeMessage;
|
45109
|
+
}
|
45110
|
+
return void 0;
|
45111
|
+
}
|
45074
45112
|
const map = {
|
45075
45113
|
chrome: "chrome",
|
45076
45114
|
edge: "edge",
|
@@ -45381,19 +45419,11 @@ function buildImportAnalysisPlugin(config) {
|
|
45381
45419
|
if (code.indexOf(isModernFlag) > -1) {
|
45382
45420
|
const re = new RegExp(isModernFlag, "g");
|
45383
45421
|
const isModern = String(format === "es");
|
45384
|
-
|
45385
|
-
|
45386
|
-
|
45387
|
-
|
45388
|
-
|
45389
|
-
}
|
45390
|
-
return {
|
45391
|
-
code: s.toString(),
|
45392
|
-
map: s.generateMap({ hires: "boundary" })
|
45393
|
-
};
|
45394
|
-
} else {
|
45395
|
-
return code.replace(re, isModern);
|
45396
|
-
}
|
45422
|
+
const isModernWithPadding = isModern + " ".repeat(isModernFlag.length - isModern.length);
|
45423
|
+
return {
|
45424
|
+
code: code.replace(re, isModernWithPadding),
|
45425
|
+
map: null
|
45426
|
+
};
|
45397
45427
|
}
|
45398
45428
|
return null;
|
45399
45429
|
},
|
@@ -48244,7 +48274,7 @@ async function preview(inlineConfig = {}) {
|
|
48244
48274
|
config
|
48245
48275
|
);
|
48246
48276
|
if (options.open) {
|
48247
|
-
const url = getServerUrlByHost(server, options.host);
|
48277
|
+
const url = getServerUrlByHost(server.resolvedUrls, options.host);
|
48248
48278
|
if (url) {
|
48249
48279
|
const path2 = typeof options.open === "string" ? new URL(options.open, url).href : url;
|
48250
48280
|
openBrowser(path2, true, logger);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Q as commonjsGlobal, P as getDefaultExportFromCjs } from './dep-
|
1
|
+
import { Q as commonjsGlobal, P as getDefaultExportFromCjs } from './dep-BMIURPaQ.js';
|
2
2
|
import require$$0$2 from 'fs';
|
3
3
|
import require$$0 from 'postcss';
|
4
4
|
import require$$0$1 from 'path';
|
package/dist/node/cli.js
CHANGED
@@ -2,7 +2,7 @@ import path from 'node:path';
|
|
2
2
|
import fs__default from 'node:fs';
|
3
3
|
import { performance } from 'node:perf_hooks';
|
4
4
|
import { EventEmitter } from 'events';
|
5
|
-
import { O as colors, I as createLogger, r as resolveConfig } from './chunks/dep-
|
5
|
+
import { O as colors, I as createLogger, r as resolveConfig } from './chunks/dep-BMIURPaQ.js';
|
6
6
|
import { VERSION } from './constants.js';
|
7
7
|
import 'node:fs/promises';
|
8
8
|
import 'node:url';
|
@@ -748,7 +748,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
|
|
748
748
|
`[boolean] force the optimizer to ignore the cache and re-bundle`
|
749
749
|
).action(async (root, options) => {
|
750
750
|
filterDuplicateOptions(options);
|
751
|
-
const { createServer } = await import('./chunks/dep-
|
751
|
+
const { createServer } = await import('./chunks/dep-BMIURPaQ.js').then(function (n) { return n.S; });
|
752
752
|
try {
|
753
753
|
const server = await createServer({
|
754
754
|
root,
|
@@ -843,7 +843,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
|
|
843
843
|
).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--app", `[boolean] same as \`builder: {}\``).action(
|
844
844
|
async (root, options) => {
|
845
845
|
filterDuplicateOptions(options);
|
846
|
-
const { createBuilder } = await import('./chunks/dep-
|
846
|
+
const { createBuilder } = await import('./chunks/dep-BMIURPaQ.js').then(function (n) { return n.T; });
|
847
847
|
const buildOptions = cleanGlobalCLIOptions(
|
848
848
|
cleanBuilderCLIOptions(options)
|
849
849
|
);
|
@@ -882,7 +882,7 @@ cli.command(
|
|
882
882
|
).action(
|
883
883
|
async (root, options) => {
|
884
884
|
filterDuplicateOptions(options);
|
885
|
-
const { optimizeDeps } = await import('./chunks/dep-
|
885
|
+
const { optimizeDeps } = await import('./chunks/dep-BMIURPaQ.js').then(function (n) { return n.R; });
|
886
886
|
try {
|
887
887
|
const config = await resolveConfig(
|
888
888
|
{
|
@@ -909,7 +909,7 @@ ${e.stack}`),
|
|
909
909
|
cli.command("preview [root]", "locally preview production build").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--strictPort", `[boolean] exit if specified port is already in use`).option("--open [path]", `[boolean | string] open browser on startup`).option("--outDir <dir>", `[string] output directory (default: dist)`).action(
|
910
910
|
async (root, options) => {
|
911
911
|
filterDuplicateOptions(options);
|
912
|
-
const { preview } = await import('./chunks/dep-
|
912
|
+
const { preview } = await import('./chunks/dep-BMIURPaQ.js').then(function (n) { return n.U; });
|
913
913
|
try {
|
914
914
|
const server = await preview({
|
915
915
|
root,
|
package/dist/node/constants.js
CHANGED
@@ -123,7 +123,8 @@ const KNOWN_ASSET_TYPES = [
|
|
123
123
|
"txt"
|
124
124
|
];
|
125
125
|
const DEFAULT_ASSETS_RE = new RegExp(
|
126
|
-
`\\.(` + KNOWN_ASSET_TYPES.join("|") + `)(\\?.*)
|
126
|
+
`\\.(` + KNOWN_ASSET_TYPES.join("|") + `)(\\?.*)?$`,
|
127
|
+
"i"
|
127
128
|
);
|
128
129
|
const DEP_VERSION_RE = /[?&](v=[\w.-]+)\b/;
|
129
130
|
const loopbackHosts = /* @__PURE__ */ new Set([
|
package/dist/node/index.d.ts
CHANGED
@@ -29,7 +29,7 @@ import * as PostCSS from 'postcss';
|
|
29
29
|
import { LightningCSSOptions } from '../../types/internal/lightningcssOptions.js';
|
30
30
|
export { LightningCSSOptions } from '../../types/internal/lightningcssOptions.js';
|
31
31
|
import { SassLegacyPreprocessBaseOptions, SassModernPreprocessBaseOptions, LessPreprocessorBaseOptions, StylusPreprocessorBaseOptions } from '../../types/internal/cssPreprocessorOptions.js';
|
32
|
-
import { M as ModuleRunnerTransport } from './moduleRunnerTransport.d-
|
32
|
+
import { M as ModuleRunnerTransport } from './moduleRunnerTransport.d-DJ_mE5sf.js';
|
33
33
|
export { GeneralImportGlobOptions, ImportGlobFunction, ImportGlobOptions, KnownAsTypeMap } from '../../types/importGlob.js';
|
34
34
|
export { ChunkMetadata, CustomPluginOptionsVite } from '../../types/metadata.js';
|
35
35
|
|
@@ -4226,4 +4226,5 @@ interface ManifestChunk {
|
|
4226
4226
|
dynamicImports?: string[];
|
4227
4227
|
}
|
4228
4228
|
|
4229
|
-
export {
|
4229
|
+
export { BuildEnvironment, Connect, DevEnvironment, EnvironmentModuleGraph, EnvironmentModuleNode, FSWatcher, FetchableDevEnvironment, HttpProxy, ModuleGraph, ModuleNode, PluginContainer, RunnableDevEnvironment, SplitVendorChunkCache, Terser, WebSocket, WebSocketAlias, WebSocketServer, build, buildErrorMessage, createBuilder, createFetchableDevEnvironment, createFilter, createIdResolver, createLogger, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defaultAllowedOrigins, DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, defineConfig, fetchModule, formatPostcssSourceMap, isCSSRequest, isFetchableDevEnvironment, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, ssrTransform as moduleRunnerTransform, normalizePath, optimizeDeps, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, splitVendorChunk, splitVendorChunkPlugin, transformWithEsbuild, VERSION as version };
|
4230
|
+
export type { Alias, AliasOptions, AnymatchFn, AnymatchPattern, AppType, BindCLIShortcutsOptions, BuildEnvironmentOptions, BuildOptions, BuilderOptions, CLIShortcut, CSSModulesOptions, CSSOptions, CommonServerOptions, ConfigEnv, CorsOptions, CorsOrigin, DepOptimizationConfig, DepOptimizationMetadata, DepOptimizationOptions, DevEnvironmentContext, DevEnvironmentOptions, ESBuildOptions, ESBuildTransformResult, Environment, EnvironmentOptions, ExperimentalOptions, ExportsData, FetchModuleOptions, FetchableDevEnvironmentContext, FileSystemServeOptions, FilterPattern, HMRBroadcaster, HMRBroadcasterClient, HMRChannel, HTMLOptions, HmrContext, HmrOptions, HookHandler, HotChannel, HotChannelClient, HotChannelListener, HotUpdateOptions, HtmlTagDescriptor, HttpServer, IndexHtmlTransform, IndexHtmlTransformContext, IndexHtmlTransformHook, IndexHtmlTransformResult, InlineConfig, InternalResolveOptions, JsonOptions, LegacyOptions, LessPreprocessorOptions, LibraryFormats, LibraryOptions, LogErrorOptions, LogLevel, LogOptions, LogType, Logger, LoggerOptions, Manifest, ManifestChunk, MapToFunction, AnymatchMatcher as Matcher, ModulePreloadOptions, ModuleRunnerTransformOptions, NormalizedHotChannel, NormalizedHotChannelClient, NormalizedServerHotChannel, OptimizedDepInfo, Plugin, PluginHookUtils, PluginOption, PreprocessCSSResult, PreviewOptions, PreviewServer, PreviewServerHook, ProxyOptions, RenderBuiltAssetUrl, ResolveFn, ResolveModulePreloadDependenciesFn, ResolveOptions, ResolvedBuildEnvironmentOptions, ResolvedBuildOptions, ResolvedCSSOptions, ResolvedConfig, ResolvedDevEnvironmentOptions, ResolvedModulePreloadOptions, ResolvedPreviewOptions, ResolvedSSROptions, ResolvedServerOptions, ResolvedServerUrls, ResolvedUrl, ResolvedWorkerOptions, ResolverFunction, ResolverObject, RollupCommonJSOptions, RollupDynamicImportVarsOptions, RunnableDevEnvironmentContext, SSROptions, SSRTarget, SassPreprocessorOptions, SendOptions, ServerHMRChannel, ServerHook, ServerHotChannel, ServerModuleRunnerOptions, ServerOptions, SkipInformation, SsrDepOptimizationConfig, StylusPreprocessorOptions, TerserOptions, TransformOptions, TransformResult, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnObject, UserConfigFnPromise, ViteBuilder, ViteDevServer, WatchOptions, WebSocketClient, WebSocketCustomListener };
|
package/dist/node/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { parseAst, parseAstAsync } from 'rollup/parseAst';
|
2
|
-
import { a as arraify, i as isInNodeModules, D as DevEnvironment } from './chunks/dep-
|
3
|
-
export { B as BuildEnvironment, f as build, m as buildErrorMessage, g as createBuilder, F as createFilter, h as createIdResolver, I as createLogger, n as createRunnableDevEnvironment, c as createServer, y as createServerHotChannel, w as createServerModuleRunner, x as createServerModuleRunnerTransport, d as defineConfig, v as fetchModule, j as formatPostcssSourceMap, L as isFileLoadingAllowed, K as isFileServingAllowed, q as isRunnableDevEnvironment, l as loadConfigFromFile, M as loadEnv, E as mergeAlias, C as mergeConfig, z as moduleRunnerTransform, A as normalizePath, o as optimizeDeps, p as perEnvironmentPlugin, b as perEnvironmentState, k as preprocessCSS, e as preview, r as resolveConfig, N as resolveEnvPrefix, G as rollupVersion, u as runnerImport, J as searchForWorkspaceRoot, H as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-
|
2
|
+
import { a as arraify, i as isInNodeModules, D as DevEnvironment } from './chunks/dep-BMIURPaQ.js';
|
3
|
+
export { B as BuildEnvironment, f as build, m as buildErrorMessage, g as createBuilder, F as createFilter, h as createIdResolver, I as createLogger, n as createRunnableDevEnvironment, c as createServer, y as createServerHotChannel, w as createServerModuleRunner, x as createServerModuleRunnerTransport, d as defineConfig, v as fetchModule, j as formatPostcssSourceMap, L as isFileLoadingAllowed, K as isFileServingAllowed, q as isRunnableDevEnvironment, l as loadConfigFromFile, M as loadEnv, E as mergeAlias, C as mergeConfig, z as moduleRunnerTransform, A as normalizePath, o as optimizeDeps, p as perEnvironmentPlugin, b as perEnvironmentState, k as preprocessCSS, e as preview, r as resolveConfig, N as resolveEnvPrefix, G as rollupVersion, u as runnerImport, J as searchForWorkspaceRoot, H as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-BMIURPaQ.js';
|
4
4
|
export { defaultAllowedOrigins, DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, VERSION as version } from './constants.js';
|
5
5
|
export { version as esbuildVersion } from 'esbuild';
|
6
6
|
import 'node:fs';
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ModuleNamespace, ViteHotContext } from '../../types/hot.js';
|
2
2
|
import { Update, HotPayload } from '../../types/hmrPayload.js';
|
3
3
|
import { InferCustomEventPayload } from '../../types/customEvent.js';
|
4
|
-
import { N as NormalizedModuleRunnerTransport, E as ExternalFetchResult, V as ViteFetchResult, M as ModuleRunnerTransport, F as FetchFunctionOptions, a as FetchResult } from './moduleRunnerTransport.d-
|
5
|
-
export { b as ModuleRunnerTransportHandlers, c as createWebSocketModuleRunnerTransport } from './moduleRunnerTransport.d-
|
4
|
+
import { N as NormalizedModuleRunnerTransport, E as ExternalFetchResult, V as ViteFetchResult, M as ModuleRunnerTransport, F as FetchFunctionOptions, a as FetchResult } from './moduleRunnerTransport.d-DJ_mE5sf.js';
|
5
|
+
export { b as ModuleRunnerTransportHandlers, c as createWebSocketModuleRunnerTransport } from './moduleRunnerTransport.d-DJ_mE5sf.js';
|
6
6
|
|
7
7
|
interface SourceMapLike {
|
8
8
|
version: number;
|
@@ -286,4 +286,5 @@ declare class ESModulesEvaluator implements ModuleEvaluator {
|
|
286
286
|
runExternalModule(filepath: string): Promise<any>;
|
287
287
|
}
|
288
288
|
|
289
|
-
export { ESModulesEvaluator, EvaluatedModuleNode, EvaluatedModules,
|
289
|
+
export { ESModulesEvaluator, EvaluatedModuleNode, EvaluatedModules, FetchFunctionOptions, FetchResult, ModuleRunner, ModuleRunnerTransport, ssrDynamicImportKey, ssrExportAllKey, ssrImportKey, ssrImportMetaKey, ssrModuleExportsKey };
|
290
|
+
export type { FetchFunction, HMRLogger, InterceptorOptions, ModuleEvaluator, ModuleRunnerContext, ModuleRunnerHmr, ModuleRunnerImportMeta, ModuleRunnerOptions, ResolvedResult, SSRImportMetadata };
|
package/dist/node/{moduleRunnerTransport.d-CXw_Ws6P.d.ts → moduleRunnerTransport.d-DJ_mE5sf.d.ts}
RENAMED
@@ -83,4 +83,5 @@ declare const createWebSocketModuleRunnerTransport: (options: {
|
|
83
83
|
pingInterval?: number;
|
84
84
|
}) => Required<Pick<ModuleRunnerTransport, "connect" | "disconnect" | "send">>;
|
85
85
|
|
86
|
-
export {
|
86
|
+
export { createWebSocketModuleRunnerTransport as c };
|
87
|
+
export type { ExternalFetchResult as E, FetchFunctionOptions as F, ModuleRunnerTransport as M, NormalizedModuleRunnerTransport as N, ViteFetchResult as V, FetchResult as a, ModuleRunnerTransportHandlers as b };
|
@@ -3425,7 +3425,7 @@ function isFileLoadingAllowed(config, filePath) {
|
|
3425
3425
|
|
3426
3426
|
var main = {exports: {}};
|
3427
3427
|
|
3428
|
-
var version$1 = "16.
|
3428
|
+
var version$1 = "16.5.0";
|
3429
3429
|
var require$$4 = {
|
3430
3430
|
version: version$1};
|
3431
3431
|
|
@@ -3520,10 +3520,6 @@ function _parseVault (options) {
|
|
3520
3520
|
return DotenvModule.parse(decrypted)
|
3521
3521
|
}
|
3522
3522
|
|
3523
|
-
function _log (message) {
|
3524
|
-
console.log(`[dotenv@${version}][INFO] ${message}`);
|
3525
|
-
}
|
3526
|
-
|
3527
3523
|
function _warn (message) {
|
3528
3524
|
console.log(`[dotenv@${version}][WARN] ${message}`);
|
3529
3525
|
}
|
@@ -3619,7 +3615,10 @@ function _resolveHome (envPath) {
|
|
3619
3615
|
}
|
3620
3616
|
|
3621
3617
|
function _configVault (options) {
|
3622
|
-
|
3618
|
+
const debug = Boolean(options && options.debug);
|
3619
|
+
if (debug) {
|
3620
|
+
_debug('Loading env from encrypted .env.vault');
|
3621
|
+
}
|
3623
3622
|
|
3624
3623
|
const parsed = DotenvModule._parseVault(options);
|
3625
3624
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vite",
|
3
|
-
"version": "6.3.
|
3
|
+
"version": "6.3.3",
|
4
4
|
"type": "module",
|
5
5
|
"license": "MIT",
|
6
6
|
"author": "Evan You",
|
@@ -73,18 +73,18 @@
|
|
73
73
|
"//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
|
74
74
|
"dependencies": {
|
75
75
|
"esbuild": "^0.25.0",
|
76
|
-
"fdir": "^6.4.
|
76
|
+
"fdir": "^6.4.4",
|
77
77
|
"picomatch": "^4.0.2",
|
78
78
|
"postcss": "^8.5.3",
|
79
79
|
"rollup": "^4.34.9",
|
80
|
-
"tinyglobby": "^0.2.
|
80
|
+
"tinyglobby": "^0.2.13"
|
81
81
|
},
|
82
82
|
"optionalDependencies": {
|
83
83
|
"fsevents": "~2.3.3"
|
84
84
|
},
|
85
85
|
"devDependencies": {
|
86
86
|
"@ampproject/remapping": "^2.3.0",
|
87
|
-
"@babel/parser": "^7.
|
87
|
+
"@babel/parser": "^7.27.0",
|
88
88
|
"@jridgewell/trace-mapping": "^0.3.25",
|
89
89
|
"@polka/compression": "^1.0.0-next.25",
|
90
90
|
"@rollup/plugin-alias": "^5.1.1",
|
@@ -104,8 +104,8 @@
|
|
104
104
|
"cross-spawn": "^7.0.6",
|
105
105
|
"debug": "^4.4.0",
|
106
106
|
"dep-types": "link:./src/types",
|
107
|
-
"dotenv": "^16.
|
108
|
-
"dotenv-expand": "^12.0.
|
107
|
+
"dotenv": "^16.5.0",
|
108
|
+
"dotenv-expand": "^12.0.2",
|
109
109
|
"es-module-lexer": "^1.6.0",
|
110
110
|
"escape-html": "^1.0.3",
|
111
111
|
"estree-walker": "^3.0.3",
|
@@ -116,8 +116,8 @@
|
|
116
116
|
"magic-string": "^0.30.17",
|
117
117
|
"mlly": "^1.7.4",
|
118
118
|
"mrmime": "^2.0.1",
|
119
|
-
"nanoid": "^5.1.
|
120
|
-
"open": "^10.1.
|
119
|
+
"nanoid": "^5.1.5",
|
120
|
+
"open": "^10.1.1",
|
121
121
|
"parse5": "^7.2.1",
|
122
122
|
"pathe": "^2.0.3",
|
123
123
|
"periscopic": "^4.0.2",
|
@@ -126,11 +126,11 @@
|
|
126
126
|
"postcss-load-config": "^6.0.1",
|
127
127
|
"postcss-modules": "^6.0.1",
|
128
128
|
"resolve.exports": "^2.0.3",
|
129
|
-
"rollup-plugin-dts": "^6.
|
129
|
+
"rollup-plugin-dts": "^6.2.1",
|
130
130
|
"rollup-plugin-esbuild": "^6.2.1",
|
131
131
|
"rollup-plugin-license": "^3.6.0",
|
132
|
-
"sass": "^1.
|
133
|
-
"sass-embedded": "^1.
|
132
|
+
"sass": "^1.86.3",
|
133
|
+
"sass-embedded": "^1.86.3",
|
134
134
|
"sirv": "^3.0.1",
|
135
135
|
"source-map-support": "^0.5.21",
|
136
136
|
"strip-literal": "^3.0.0",
|
@@ -138,7 +138,7 @@
|
|
138
138
|
"tsconfck": "^3.1.5",
|
139
139
|
"tslib": "^2.8.1",
|
140
140
|
"types": "link:./types",
|
141
|
-
"ufo": "^1.
|
141
|
+
"ufo": "^1.6.1",
|
142
142
|
"ws": "^8.18.1"
|
143
143
|
},
|
144
144
|
"peerDependencies": {
|