vite 6.3.0 → 6.3.2
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-CQ6IcQaf.js → dep-C8joxBaX.js} +1 -1
- package/dist/node/chunks/{dep-KUFMcaC7.js → dep-Cjqet4Sp.js} +1 -1
- package/dist/node/chunks/{dep-BuM4AdeL.js → dep-DG3BLbPj.js} +71 -42
- 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 +10 -10
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Q as commonjsGlobal, P as getDefaultExportFromCjs } from './dep-
|
1
|
+
import { Q as commonjsGlobal, P as getDefaultExportFromCjs } from './dep-DG3BLbPj.js';
|
2
2
|
import require$$0$2 from 'fs';
|
3
3
|
import require$$0 from 'postcss';
|
4
4
|
import require$$0$1 from 'path';
|
@@ -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 = {
|
@@ -12103,7 +12106,7 @@ const jsonLangs = `\\.(?:json|json5)(?:$|\\?)`;
|
|
12103
12106
|
const jsonLangRE = new RegExp(jsonLangs);
|
12104
12107
|
const isJSONRequest = (request) => jsonLangRE.test(request);
|
12105
12108
|
function jsonPlugin(options, isBuild) {
|
12106
|
-
|
12109
|
+
const plugin = {
|
12107
12110
|
name: "vite:json",
|
12108
12111
|
transform: {
|
12109
12112
|
handler(json, id) {
|
@@ -12171,6 +12174,10 @@ Please use ?url&inline or ?url&no-inline to control JSON file inlining behavior.
|
|
12171
12174
|
}
|
12172
12175
|
}
|
12173
12176
|
};
|
12177
|
+
const handler = plugin.transform.handler;
|
12178
|
+
plugin.transform = handler;
|
12179
|
+
plugin.transform.handler = handler;
|
12180
|
+
return plugin;
|
12174
12181
|
}
|
12175
12182
|
function serializeValue(value) {
|
12176
12183
|
const valueAsString = JSON.stringify(value);
|
@@ -12215,7 +12222,9 @@ function encodeQueryItem(key, value) {
|
|
12215
12222
|
return encodeQueryKey(key);
|
12216
12223
|
}
|
12217
12224
|
if (Array.isArray(value)) {
|
12218
|
-
return value.map(
|
12225
|
+
return value.map(
|
12226
|
+
(_value) => `${encodeQueryKey(key)}=${encodeQueryValue(_value)}`
|
12227
|
+
).join("&");
|
12219
12228
|
}
|
12220
12229
|
return `${encodeQueryKey(key)}=${encodeQueryValue(value)}`;
|
12221
12230
|
}
|
@@ -16437,7 +16446,7 @@ function throwFileNotFoundInOptimizedDep(id) {
|
|
16437
16446
|
|
16438
16447
|
var main = {exports: {}};
|
16439
16448
|
|
16440
|
-
var version$1 = "16.
|
16449
|
+
var version$1 = "16.5.0";
|
16441
16450
|
var require$$4 = {
|
16442
16451
|
version: version$1};
|
16443
16452
|
|
@@ -16532,10 +16541,6 @@ function _parseVault (options) {
|
|
16532
16541
|
return DotenvModule.parse(decrypted)
|
16533
16542
|
}
|
16534
16543
|
|
16535
|
-
function _log (message) {
|
16536
|
-
console.log(`[dotenv@${version}][INFO] ${message}`);
|
16537
|
-
}
|
16538
|
-
|
16539
16544
|
function _warn (message) {
|
16540
16545
|
console.log(`[dotenv@${version}][WARN] ${message}`);
|
16541
16546
|
}
|
@@ -16631,7 +16636,10 @@ function _resolveHome (envPath) {
|
|
16631
16636
|
}
|
16632
16637
|
|
16633
16638
|
function _configVault (options) {
|
16634
|
-
|
16639
|
+
const debug = Boolean(options && options.debug);
|
16640
|
+
if (debug) {
|
16641
|
+
_debug('Loading env from encrypted .env.vault');
|
16642
|
+
}
|
16635
16643
|
|
16636
16644
|
const parsed = DotenvModule._parseVault(options);
|
16637
16645
|
|
@@ -26320,6 +26328,7 @@ const baseOpen = async options => {
|
|
26320
26328
|
'firefox.desktop': 'firefox',
|
26321
26329
|
'com.microsoft.msedge': 'edge',
|
26322
26330
|
'com.microsoft.edge': 'edge',
|
26331
|
+
'com.microsoft.edgemac': 'edge',
|
26323
26332
|
'microsoft-edge.desktop': 'edge',
|
26324
26333
|
};
|
26325
26334
|
|
@@ -38425,7 +38434,7 @@ async function _createServer(inlineConfig = {}, options) {
|
|
38425
38434
|
},
|
38426
38435
|
openBrowser() {
|
38427
38436
|
const options2 = server.config.server;
|
38428
|
-
const url = getServerUrlByHost(server, options2.host);
|
38437
|
+
const url = getServerUrlByHost(server.resolvedUrls, options2.host);
|
38429
38438
|
if (url) {
|
38430
38439
|
const path2 = typeof options2.open === "string" ? new URL(options2.open, url).href : url;
|
38431
38440
|
if (server.config.server.preTransformRequests) {
|
@@ -42757,8 +42766,6 @@ function resolveCSSOptions(options) {
|
|
42757
42766
|
if (resolved.transformer === "lightningcss") {
|
42758
42767
|
resolved.lightningcss ??= {};
|
42759
42768
|
resolved.lightningcss.targets ??= convertTargets(ESBUILD_MODULES_TARGET);
|
42760
|
-
} else {
|
42761
|
-
resolved.lightningcss = void 0;
|
42762
42769
|
}
|
42763
42770
|
return resolved;
|
42764
42771
|
}
|
@@ -42945,7 +42952,7 @@ function cssPostPlugin(config) {
|
|
42945
42952
|
cssBundleNameCache.set(config, cssBundleName);
|
42946
42953
|
return cssBundleName;
|
42947
42954
|
}
|
42948
|
-
|
42955
|
+
const plugin = {
|
42949
42956
|
name: "vite:css-post",
|
42950
42957
|
renderStart() {
|
42951
42958
|
pureCssChunks = /* @__PURE__ */ new Set();
|
@@ -43359,6 +43366,10 @@ function cssPostPlugin(config) {
|
|
43359
43366
|
}
|
43360
43367
|
}
|
43361
43368
|
};
|
43369
|
+
const handler = plugin.transform.handler;
|
43370
|
+
plugin.transform = handler;
|
43371
|
+
plugin.transform.handler = handler;
|
43372
|
+
return plugin;
|
43362
43373
|
}
|
43363
43374
|
function cssAnalysisPlugin(config) {
|
43364
43375
|
return {
|
@@ -43826,8 +43837,8 @@ function createCachedImport(imp) {
|
|
43826
43837
|
return cached;
|
43827
43838
|
};
|
43828
43839
|
}
|
43829
|
-
const importPostcssImport = createCachedImport(() => import('./dep-
|
43830
|
-
const importPostcssModules = createCachedImport(() => import('./dep-
|
43840
|
+
const importPostcssImport = createCachedImport(() => import('./dep-Cjqet4Sp.js').then(function (n) { return n.i; }));
|
43841
|
+
const importPostcssModules = createCachedImport(() => import('./dep-C8joxBaX.js').then(function (n) { return n.i; }));
|
43831
43842
|
const importPostcss = createCachedImport(() => import('postcss'));
|
43832
43843
|
const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
|
43833
43844
|
let alwaysFakeWorkerWorkerControllerCache;
|
@@ -44068,23 +44079,23 @@ async function minifyCSS(css, config, inlined) {
|
|
44068
44079
|
code: Buffer.from(css),
|
44069
44080
|
minify: true
|
44070
44081
|
});
|
44071
|
-
|
44072
|
-
|
44073
|
-
|
44074
|
-
|
44075
|
-
|
44076
|
-
|
44077
|
-
|
44078
|
-
|
44079
|
-
);
|
44080
|
-
config.logger.warn(
|
44081
|
-
colors$1.yellow(`warnings when minifying css:
|
44082
|
-
${messages.join("\n")}`)
|
44083
|
-
);
|
44082
|
+
for (const warning of warnings) {
|
44083
|
+
let msg = `[lightningcss minify] ${warning.message}`;
|
44084
|
+
msg += `
|
44085
|
+
${generateCodeFrame(css, {
|
44086
|
+
line: warning.loc.line,
|
44087
|
+
column: warning.loc.column - 1
|
44088
|
+
// 1-based
|
44089
|
+
})}`;
|
44090
|
+
config.logger.warn(colors$1.yellow(msg));
|
44084
44091
|
}
|
44085
44092
|
return decoder.decode(code) + (inlined ? "" : "\n");
|
44086
44093
|
} catch (e) {
|
44087
44094
|
e.message = `[lightningcss minify] ${e.message}`;
|
44095
|
+
const friendlyMessage = getLightningCssErrorMessageForIeSyntaxes(css);
|
44096
|
+
if (friendlyMessage) {
|
44097
|
+
e.message += friendlyMessage;
|
44098
|
+
}
|
44088
44099
|
if (e.loc) {
|
44089
44100
|
e.loc = {
|
44090
44101
|
line: e.loc.line,
|
@@ -44105,7 +44116,7 @@ ${messages.join("\n")}`)
|
|
44105
44116
|
if (warnings.length) {
|
44106
44117
|
const msgs = await formatMessages(warnings, { kind: "warning" });
|
44107
44118
|
config.logger.warn(
|
44108
|
-
colors$1.yellow(`
|
44119
|
+
colors$1.yellow(`[esbuild css minify]
|
44109
44120
|
${msgs.join("\n")}`)
|
44110
44121
|
);
|
44111
44122
|
}
|
@@ -44991,11 +45002,9 @@ async function compileLightningCSS(environment, id, src, deps, workerController,
|
|
44991
45002
|
};
|
44992
45003
|
try {
|
44993
45004
|
const code = fs__default.readFileSync(e.fileName, "utf-8");
|
44994
|
-
const
|
44995
|
-
if (
|
44996
|
-
e.message +=
|
44997
|
-
} else if (/min-width:\s*0\\0/.test(code)) {
|
44998
|
-
e.message += ".\nThis file contains @media zero hack (e.g. `@media (min-width: 0\\0)`)" + commonIeMessage;
|
45005
|
+
const friendlyMessage = getLightningCssErrorMessageForIeSyntaxes(code);
|
45006
|
+
if (friendlyMessage) {
|
45007
|
+
e.message += friendlyMessage;
|
44999
45008
|
}
|
45000
45009
|
} catch {
|
45001
45010
|
}
|
@@ -45063,6 +45072,16 @@ ${generateCodeFrame(src, {
|
|
45063
45072
|
modules
|
45064
45073
|
};
|
45065
45074
|
}
|
45075
|
+
function getLightningCssErrorMessageForIeSyntaxes(code) {
|
45076
|
+
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.";
|
45077
|
+
if (/[\s;{]\*[a-zA-Z-][\w-]+\s*:/.test(code)) {
|
45078
|
+
return ".\nThis file contains star property hack (e.g. `*zoom`)" + commonIeMessage;
|
45079
|
+
}
|
45080
|
+
if (/min-width:\s*0\\0/.test(code)) {
|
45081
|
+
return ".\nThis file contains @media zero hack (e.g. `@media (min-width: 0\\0)`)" + commonIeMessage;
|
45082
|
+
}
|
45083
|
+
return void 0;
|
45084
|
+
}
|
45066
45085
|
const map = {
|
45067
45086
|
chrome: "chrome",
|
45068
45087
|
edge: "edge",
|
@@ -45170,12 +45189,22 @@ function detectScriptRel() {
|
|
45170
45189
|
function preload(baseModule, deps, importerUrl) {
|
45171
45190
|
let promise = Promise.resolve();
|
45172
45191
|
if (__VITE_IS_MODERN__ && deps && deps.length > 0) {
|
45192
|
+
let allSettled2 = function(promises) {
|
45193
|
+
return Promise.all(
|
45194
|
+
promises.map(
|
45195
|
+
(p) => Promise.resolve(p).then(
|
45196
|
+
(value) => ({ status: "fulfilled", value }),
|
45197
|
+
(reason) => ({ status: "rejected", reason })
|
45198
|
+
)
|
45199
|
+
)
|
45200
|
+
);
|
45201
|
+
};
|
45173
45202
|
const links = document.getElementsByTagName("link");
|
45174
45203
|
const cspNonceMeta = document.querySelector(
|
45175
45204
|
"meta[property=csp-nonce]"
|
45176
45205
|
);
|
45177
45206
|
const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
|
45178
|
-
promise =
|
45207
|
+
promise = allSettled2(
|
45179
45208
|
deps.map((dep) => {
|
45180
45209
|
dep = assetsURL(dep, importerUrl);
|
45181
45210
|
if (dep in seen) return;
|
@@ -48226,7 +48255,7 @@ async function preview(inlineConfig = {}) {
|
|
48226
48255
|
config
|
48227
48256
|
);
|
48228
48257
|
if (options.open) {
|
48229
|
-
const url = getServerUrlByHost(server, options.host);
|
48258
|
+
const url = getServerUrlByHost(server.resolvedUrls, options.host);
|
48230
48259
|
if (url) {
|
48231
48260
|
const path2 = typeof options.open === "string" ? new URL(options.open, url).href : url;
|
48232
48261
|
openBrowser(path2, true, logger);
|
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-DG3BLbPj.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-DG3BLbPj.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-DG3BLbPj.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-DG3BLbPj.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-DG3BLbPj.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-DG3BLbPj.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-DG3BLbPj.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.2",
|
4
4
|
"type": "module",
|
5
5
|
"license": "MIT",
|
6
6
|
"author": "Evan You",
|
@@ -84,7 +84,7 @@
|
|
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": {
|