vite 6.3.1 → 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-yVbOhD1o.js → dep-C8joxBaX.js} +1 -1
- package/dist/node/chunks/{dep-DYEId0Fh.js → dep-Cjqet4Sp.js} +1 -1
- package/dist/node/chunks/{dep-Bxmd1Uxj.js → dep-DG3BLbPj.js} +50 -39
- 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 = {
|
@@ -12219,7 +12222,9 @@ function encodeQueryItem(key, value) {
|
|
12219
12222
|
return encodeQueryKey(key);
|
12220
12223
|
}
|
12221
12224
|
if (Array.isArray(value)) {
|
12222
|
-
return value.map(
|
12225
|
+
return value.map(
|
12226
|
+
(_value) => `${encodeQueryKey(key)}=${encodeQueryValue(_value)}`
|
12227
|
+
).join("&");
|
12223
12228
|
}
|
12224
12229
|
return `${encodeQueryKey(key)}=${encodeQueryValue(value)}`;
|
12225
12230
|
}
|
@@ -16441,7 +16446,7 @@ function throwFileNotFoundInOptimizedDep(id) {
|
|
16441
16446
|
|
16442
16447
|
var main = {exports: {}};
|
16443
16448
|
|
16444
|
-
var version$1 = "16.
|
16449
|
+
var version$1 = "16.5.0";
|
16445
16450
|
var require$$4 = {
|
16446
16451
|
version: version$1};
|
16447
16452
|
|
@@ -16536,10 +16541,6 @@ function _parseVault (options) {
|
|
16536
16541
|
return DotenvModule.parse(decrypted)
|
16537
16542
|
}
|
16538
16543
|
|
16539
|
-
function _log (message) {
|
16540
|
-
console.log(`[dotenv@${version}][INFO] ${message}`);
|
16541
|
-
}
|
16542
|
-
|
16543
16544
|
function _warn (message) {
|
16544
16545
|
console.log(`[dotenv@${version}][WARN] ${message}`);
|
16545
16546
|
}
|
@@ -16635,7 +16636,10 @@ function _resolveHome (envPath) {
|
|
16635
16636
|
}
|
16636
16637
|
|
16637
16638
|
function _configVault (options) {
|
16638
|
-
|
16639
|
+
const debug = Boolean(options && options.debug);
|
16640
|
+
if (debug) {
|
16641
|
+
_debug('Loading env from encrypted .env.vault');
|
16642
|
+
}
|
16639
16643
|
|
16640
16644
|
const parsed = DotenvModule._parseVault(options);
|
16641
16645
|
|
@@ -26324,6 +26328,7 @@ const baseOpen = async options => {
|
|
26324
26328
|
'firefox.desktop': 'firefox',
|
26325
26329
|
'com.microsoft.msedge': 'edge',
|
26326
26330
|
'com.microsoft.edge': 'edge',
|
26331
|
+
'com.microsoft.edgemac': 'edge',
|
26327
26332
|
'microsoft-edge.desktop': 'edge',
|
26328
26333
|
};
|
26329
26334
|
|
@@ -38429,7 +38434,7 @@ async function _createServer(inlineConfig = {}, options) {
|
|
38429
38434
|
},
|
38430
38435
|
openBrowser() {
|
38431
38436
|
const options2 = server.config.server;
|
38432
|
-
const url = getServerUrlByHost(server, options2.host);
|
38437
|
+
const url = getServerUrlByHost(server.resolvedUrls, options2.host);
|
38433
38438
|
if (url) {
|
38434
38439
|
const path2 = typeof options2.open === "string" ? new URL(options2.open, url).href : url;
|
38435
38440
|
if (server.config.server.preTransformRequests) {
|
@@ -42761,8 +42766,6 @@ function resolveCSSOptions(options) {
|
|
42761
42766
|
if (resolved.transformer === "lightningcss") {
|
42762
42767
|
resolved.lightningcss ??= {};
|
42763
42768
|
resolved.lightningcss.targets ??= convertTargets(ESBUILD_MODULES_TARGET);
|
42764
|
-
} else {
|
42765
|
-
resolved.lightningcss = void 0;
|
42766
42769
|
}
|
42767
42770
|
return resolved;
|
42768
42771
|
}
|
@@ -43834,8 +43837,8 @@ function createCachedImport(imp) {
|
|
43834
43837
|
return cached;
|
43835
43838
|
};
|
43836
43839
|
}
|
43837
|
-
const importPostcssImport = createCachedImport(() => import('./dep-
|
43838
|
-
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; }));
|
43839
43842
|
const importPostcss = createCachedImport(() => import('postcss'));
|
43840
43843
|
const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
|
43841
43844
|
let alwaysFakeWorkerWorkerControllerCache;
|
@@ -44076,23 +44079,23 @@ async function minifyCSS(css, config, inlined) {
|
|
44076
44079
|
code: Buffer.from(css),
|
44077
44080
|
minify: true
|
44078
44081
|
});
|
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
|
-
);
|
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));
|
44092
44091
|
}
|
44093
44092
|
return decoder.decode(code) + (inlined ? "" : "\n");
|
44094
44093
|
} catch (e) {
|
44095
44094
|
e.message = `[lightningcss minify] ${e.message}`;
|
44095
|
+
const friendlyMessage = getLightningCssErrorMessageForIeSyntaxes(css);
|
44096
|
+
if (friendlyMessage) {
|
44097
|
+
e.message += friendlyMessage;
|
44098
|
+
}
|
44096
44099
|
if (e.loc) {
|
44097
44100
|
e.loc = {
|
44098
44101
|
line: e.loc.line,
|
@@ -44113,7 +44116,7 @@ ${messages.join("\n")}`)
|
|
44113
44116
|
if (warnings.length) {
|
44114
44117
|
const msgs = await formatMessages(warnings, { kind: "warning" });
|
44115
44118
|
config.logger.warn(
|
44116
|
-
colors$1.yellow(`
|
44119
|
+
colors$1.yellow(`[esbuild css minify]
|
44117
44120
|
${msgs.join("\n")}`)
|
44118
44121
|
);
|
44119
44122
|
}
|
@@ -44999,11 +45002,9 @@ async function compileLightningCSS(environment, id, src, deps, workerController,
|
|
44999
45002
|
};
|
45000
45003
|
try {
|
45001
45004
|
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;
|
45005
|
+
const friendlyMessage = getLightningCssErrorMessageForIeSyntaxes(code);
|
45006
|
+
if (friendlyMessage) {
|
45007
|
+
e.message += friendlyMessage;
|
45007
45008
|
}
|
45008
45009
|
} catch {
|
45009
45010
|
}
|
@@ -45071,6 +45072,16 @@ ${generateCodeFrame(src, {
|
|
45071
45072
|
modules
|
45072
45073
|
};
|
45073
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
|
+
}
|
45074
45085
|
const map = {
|
45075
45086
|
chrome: "chrome",
|
45076
45087
|
edge: "edge",
|
@@ -48244,7 +48255,7 @@ async function preview(inlineConfig = {}) {
|
|
48244
48255
|
config
|
48245
48256
|
);
|
48246
48257
|
if (options.open) {
|
48247
|
-
const url = getServerUrlByHost(server, options.host);
|
48258
|
+
const url = getServerUrlByHost(server.resolvedUrls, options.host);
|
48248
48259
|
if (url) {
|
48249
48260
|
const path2 = typeof options.open === "string" ? new URL(options.open, url).href : url;
|
48250
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": {
|