vite 7.1.9 → 7.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/client.mjs +20 -7
- package/dist/node/chunks/{dep-D6Kf1CgD.js → build.js} +2 -2
- package/dist/node/chunks/{dep-DrqJEUj9.js → build2.js} +14 -25
- package/dist/node/chunks/{dep-Chhhsdoe.js → config.js} +250 -374
- package/dist/node/chunks/{dep-iA2HHN2w.js → config2.js} +2 -2
- package/dist/node/chunks/{dep-CCSnTAeo.js → dist.js} +3 -6
- package/dist/node/chunks/{dep-BuoK8Wda.js → lib.js} +1 -1
- package/dist/node/chunks/{dep-SmwnYDP9.js → logger.js} +1 -1
- package/dist/node/{moduleRunnerTransport-BWUZBVLX.d.ts → chunks/moduleRunnerTransport.d.ts} +1 -1
- package/dist/node/chunks/{dep-ifi-OWiW.js → optimizer.js} +2 -2
- package/dist/node/chunks/{dep-CwrJo3zV.js → postcss-import.js} +2 -2
- package/dist/node/chunks/preview.js +4 -0
- package/dist/node/chunks/{dep-BcOQquCi.js → server.js} +2 -2
- package/dist/node/cli.js +12 -15
- package/dist/node/index.d.ts +11 -11
- package/dist/node/index.js +2 -2
- package/dist/node/module-runner.d.ts +4 -4
- package/dist/node/module-runner.js +3 -4
- package/package.json +10 -12
- package/dist/node/chunks/dep-DAJvlA4P.js +0 -4
- /package/dist/node/chunks/{dep-lCKrEJQm.js → chunk.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { configDefaults, defineConfig, getDefaultEnvironmentOptions, isResolvedConfig, loadConfigFromFile, resolveBaseUrl, resolveConfig, resolveDevEnvironmentOptions, sortUserPlugins } from "./
|
|
1
|
+
import "./logger.js";
|
|
2
|
+
import { configDefaults, defineConfig, getDefaultEnvironmentOptions, isResolvedConfig, loadConfigFromFile, resolveBaseUrl, resolveConfig, resolveDevEnvironmentOptions, sortUserPlugins } from "./config.js";
|
|
3
3
|
|
|
4
4
|
export { resolveConfig };
|
|
@@ -4503,8 +4503,7 @@ var Parser = class {
|
|
|
4503
4503
|
}
|
|
4504
4504
|
if (!token.location) return;
|
|
4505
4505
|
const siblings = this.treeAdapter.getChildNodes(parent);
|
|
4506
|
-
const
|
|
4507
|
-
const textNode = siblings[textNodeIdx - 1];
|
|
4506
|
+
const textNode = siblings[(beforeElement ? siblings.lastIndexOf(beforeElement) : siblings.length) - 1];
|
|
4508
4507
|
if (this.treeAdapter.getNodeSourceCodeLocation(textNode)) {
|
|
4509
4508
|
const { endLine, endCol, endOffset } = token.location;
|
|
4510
4509
|
this.treeAdapter.updateNodeSourceCodeLocation(textNode, {
|
|
@@ -4719,8 +4718,7 @@ var Parser = class {
|
|
|
4719
4718
|
}
|
|
4720
4719
|
/** @protected */
|
|
4721
4720
|
_isSpecialElement(element, id) {
|
|
4722
|
-
|
|
4723
|
-
return SPECIAL_ELEMENTS[ns].has(id);
|
|
4721
|
+
return SPECIAL_ELEMENTS[this.treeAdapter.getNamespaceURI(element)].has(id);
|
|
4724
4722
|
}
|
|
4725
4723
|
/** @internal */
|
|
4726
4724
|
onCharacter(token) {
|
|
@@ -5207,8 +5205,7 @@ function aaRecreateElementFromEntry(p, elementEntry) {
|
|
|
5207
5205
|
return newElement;
|
|
5208
5206
|
}
|
|
5209
5207
|
function aaInsertLastNodeInCommonAncestor(p, commonAncestor, lastElement) {
|
|
5210
|
-
const
|
|
5211
|
-
const tid = getTagID(tn);
|
|
5208
|
+
const tid = getTagID(p.treeAdapter.getTagName(commonAncestor));
|
|
5212
5209
|
if (p._isElementCausesFosterParenting(tid)) p._fosterParentElement(lastElement);
|
|
5213
5210
|
else {
|
|
5214
5211
|
const ns = p.treeAdapter.getNamespaceURI(commonAncestor);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __commonJS } from "./
|
|
1
|
+
import { __commonJS } from "./chunk.js";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/parse.js
|
|
4
4
|
var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/parse.js": ((exports, module) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies } from "./
|
|
1
|
+
import "./logger.js";
|
|
2
|
+
import { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies } from "./config.js";
|
|
3
3
|
|
|
4
4
|
export { optimizeDeps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __commonJS, __require } from "./
|
|
2
|
-
import { require_lib } from "./
|
|
1
|
+
import { __commonJS, __require } from "./chunk.js";
|
|
2
|
+
import { require_lib } from "./lib.js";
|
|
3
3
|
|
|
4
4
|
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/format-import-prelude.js
|
|
5
5
|
var require_format_import_prelude = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/format-import-prelude.js": ((exports, module) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./
|
|
1
|
+
import "./logger.js";
|
|
2
|
+
import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./config.js";
|
|
3
3
|
|
|
4
4
|
export { createServer };
|
package/dist/node/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __toESM } from "./chunks/
|
|
2
|
-
import { VERSION, createLogger, require_picocolors } from "./chunks/
|
|
1
|
+
import { __toESM } from "./chunks/chunk.js";
|
|
2
|
+
import { VERSION, createLogger, require_picocolors } from "./chunks/logger.js";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { performance } from "node:perf_hooks";
|
|
@@ -459,8 +459,7 @@ var CAC = class extends EventEmitter {
|
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
for (const key of Object.keys(parsed)) if (key !== "_") {
|
|
462
|
-
|
|
463
|
-
setDotProp(options, keys, parsed[key]);
|
|
462
|
+
setDotProp(options, key.split("."), parsed[key]);
|
|
464
463
|
setByType(options, transforms);
|
|
465
464
|
}
|
|
466
465
|
return {
|
|
@@ -568,7 +567,7 @@ const convertBase = (v) => {
|
|
|
568
567
|
cli.option("-c, --config <file>", `[string] use specified config file`).option("--base <path>", `[string] public base path (default: /)`, { type: [convertBase] }).option("-l, --logLevel <level>", `[string] info | warn | error | silent`).option("--clearScreen", `[boolean] allow/disable clear screen when logging`).option("--configLoader <loader>", `[string] use 'bundle' to bundle the config with esbuild, or 'runner' (experimental) to process it on the fly, or 'native' (experimental) to load using the native runtime (default: bundle)`).option("-d, --debug [feat]", `[string | boolean] show debug logs`).option("-f, --filter <filter>", `[string] filter debug logs`).option("-m, --mode <mode>", `[string] set env mode`);
|
|
569
568
|
cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--open [path]", `[boolean | string] open browser on startup`).option("--cors", `[boolean] enable CORS`).option("--strictPort", `[boolean] exit if specified port is already in use`).option("--force", `[boolean] force the optimizer to ignore the cache and re-bundle`).action(async (root, options) => {
|
|
570
569
|
filterDuplicateOptions(options);
|
|
571
|
-
const { createServer } = await import("./chunks/
|
|
570
|
+
const { createServer } = await import("./chunks/server.js");
|
|
572
571
|
try {
|
|
573
572
|
const server = await createServer({
|
|
574
573
|
root,
|
|
@@ -624,10 +623,10 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
|
|
|
624
623
|
});
|
|
625
624
|
cli.command("build [root]", "build for production").option("--target <target>", `[string] transpile target (default: 'baseline-widely-available')`).option("--outDir <dir>", `[string] output directory (default: dist)`).option("--assetsDir <dir>", `[string] directory under outDir to place assets in (default: assets)`).option("--assetsInlineLimit <number>", `[number] static asset base64 inline threshold in bytes (default: 4096)`).option("--ssr [entry]", `[string] build specified entry for server-side rendering`).option("--sourcemap [output]", `[boolean | "inline" | "hidden"] output source maps for build (default: false)`).option("--minify [minifier]", "[boolean | \"terser\" | \"esbuild\"] enable/disable minification, or specify minifier to use (default: esbuild)").option("--manifest [name]", `[boolean | string] emit build manifest json`).option("--ssrManifest [name]", `[boolean | string] emit ssr manifest json`).option("--emptyOutDir", `[boolean] force empty outDir when it's outside of root`).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--app", `[boolean] same as \`builder: {}\``).action(async (root, options) => {
|
|
626
625
|
filterDuplicateOptions(options);
|
|
627
|
-
const { createBuilder } = await import("./chunks/
|
|
626
|
+
const { createBuilder } = await import("./chunks/build.js");
|
|
628
627
|
const buildOptions = cleanGlobalCLIOptions(cleanBuilderCLIOptions(options));
|
|
629
628
|
try {
|
|
630
|
-
|
|
629
|
+
await (await createBuilder({
|
|
631
630
|
root,
|
|
632
631
|
base: options.base,
|
|
633
632
|
mode: options.mode,
|
|
@@ -637,8 +636,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
|
|
|
637
636
|
clearScreen: options.clearScreen,
|
|
638
637
|
build: buildOptions,
|
|
639
638
|
...options.app ? { builder: {} } : {}
|
|
640
|
-
};
|
|
641
|
-
await (await createBuilder(inlineConfig, null)).buildApp();
|
|
639
|
+
}, null)).buildApp();
|
|
642
640
|
} catch (e) {
|
|
643
641
|
createLogger(options.logLevel).error(import_picocolors.default.red(`error during build:\n${e.stack}`), { error: e });
|
|
644
642
|
process.exit(1);
|
|
@@ -648,18 +646,17 @@ cli.command("build [root]", "build for production").option("--target <target>",
|
|
|
648
646
|
});
|
|
649
647
|
cli.command("optimize [root]", "pre-bundle dependencies (deprecated, the pre-bundle process runs automatically and does not need to be called)").option("--force", `[boolean] force the optimizer to ignore the cache and re-bundle`).action(async (root, options) => {
|
|
650
648
|
filterDuplicateOptions(options);
|
|
651
|
-
const { resolveConfig } = await import("./chunks/
|
|
652
|
-
const { optimizeDeps } = await import("./chunks/
|
|
649
|
+
const { resolveConfig } = await import("./chunks/config2.js");
|
|
650
|
+
const { optimizeDeps } = await import("./chunks/optimizer.js");
|
|
653
651
|
try {
|
|
654
|
-
|
|
652
|
+
await optimizeDeps(await resolveConfig({
|
|
655
653
|
root,
|
|
656
654
|
base: options.base,
|
|
657
655
|
configFile: options.config,
|
|
658
656
|
configLoader: options.configLoader,
|
|
659
657
|
logLevel: options.logLevel,
|
|
660
658
|
mode: options.mode
|
|
661
|
-
}, "serve");
|
|
662
|
-
await optimizeDeps(config, options.force, true);
|
|
659
|
+
}, "serve"), options.force, true);
|
|
663
660
|
} catch (e) {
|
|
664
661
|
createLogger(options.logLevel).error(import_picocolors.default.red(`error when optimizing deps:\n${e.stack}`), { error: e });
|
|
665
662
|
process.exit(1);
|
|
@@ -667,7 +664,7 @@ cli.command("optimize [root]", "pre-bundle dependencies (deprecated, the pre-bun
|
|
|
667
664
|
});
|
|
668
665
|
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(async (root, options) => {
|
|
669
666
|
filterDuplicateOptions(options);
|
|
670
|
-
const { preview } = await import("./chunks/
|
|
667
|
+
const { preview } = await import("./chunks/preview.js");
|
|
671
668
|
try {
|
|
672
669
|
const server = await preview({
|
|
673
670
|
root,
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { ModuleRunnerTransport } from "./moduleRunnerTransport
|
|
3
|
-
import { ConnectedPayload, CustomPayload, CustomPayload as hmrPayload_CustomPayload, ErrorPayload, FullReloadPayload, HMRPayload, HotPayload, HotPayload as hmrPayload_HotPayload, PrunePayload, Update, UpdatePayload } from "
|
|
4
|
-
import { CustomEventMap, InferCustomEventPayload, InferCustomEventPayload as hmrPayload_InferCustomEventPayload, InvalidatePayload } from "
|
|
2
|
+
import { ModuleRunnerTransport } from "./chunks/moduleRunnerTransport.js";
|
|
3
|
+
import { ConnectedPayload, CustomPayload, CustomPayload as hmrPayload_CustomPayload, ErrorPayload, FullReloadPayload, HMRPayload, HotPayload, HotPayload as hmrPayload_HotPayload, PrunePayload, Update, UpdatePayload } from "#types/hmrPayload";
|
|
4
|
+
import { CustomEventMap, InferCustomEventPayload, InferCustomEventPayload as hmrPayload_InferCustomEventPayload, InvalidatePayload } from "#types/customEvent";
|
|
5
5
|
import * as Rollup from "rollup";
|
|
6
6
|
import { CustomPluginOptions, ExistingRawSourceMap, InputOption, InputOptions, LoadResult, MinimalPluginContext, ModuleFormat, ModuleInfo, ObjectHook, OutputBundle, OutputChunk, PartialResolvedId, PluginContext, PluginContextMeta, PluginHooks, ResolveIdResult, RollupError, RollupLog, RollupOptions, RollupOutput, RollupWatcher, SourceDescription, SourceMap, SourceMapInput, TransformPluginContext, WatcherOptions } from "rollup";
|
|
7
7
|
import { parseAst, parseAstAsync } from "rollup/parseAst";
|
|
@@ -18,12 +18,12 @@ import { BuildOptions as esbuild_BuildOptions, TransformOptions as EsbuildTransf
|
|
|
18
18
|
import { SecureContextOptions } from "node:tls";
|
|
19
19
|
import { URL as url_URL } from "node:url";
|
|
20
20
|
import { ZlibOptions } from "node:zlib";
|
|
21
|
-
import { Terser, TerserMinifyOptions } from "
|
|
21
|
+
import { Terser, TerserMinifyOptions } from "#types/internal/terserOptions";
|
|
22
22
|
import * as PostCSS from "postcss";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { GeneralImportGlobOptions, ImportGlobFunction, ImportGlobOptions, KnownAsTypeMap } from "
|
|
26
|
-
import { ChunkMetadata, CustomPluginOptionsVite } from "
|
|
23
|
+
import { LessPreprocessorBaseOptions, SassModernPreprocessBaseOptions, StylusPreprocessorBaseOptions } from "#types/internal/cssPreprocessorOptions";
|
|
24
|
+
import { LightningCSSOptions, LightningCSSOptions as lightningcssOptions_LightningCSSOptions } from "#types/internal/lightningcssOptions";
|
|
25
|
+
import { GeneralImportGlobOptions, ImportGlobFunction, ImportGlobOptions, KnownAsTypeMap } from "#types/importGlob";
|
|
26
|
+
import { ChunkMetadata, CustomPluginOptionsVite } from "#types/metadata";
|
|
27
27
|
|
|
28
28
|
//#region rolldown:runtime
|
|
29
29
|
|
|
@@ -317,7 +317,7 @@ declare namespace Connect {
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
//#endregion
|
|
320
|
-
//#region ../../node_modules/.pnpm/http-proxy-3@1.
|
|
320
|
+
//#region ../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/http-proxy/index.d.ts
|
|
321
321
|
interface ProxyTargetDetailed {
|
|
322
322
|
host: string;
|
|
323
323
|
port: number;
|
|
@@ -489,7 +489,7 @@ declare class ProxyServer<TIncomingMessage extends typeof http.IncomingMessage =
|
|
|
489
489
|
after: <PT extends ProxyType>(type: PT, passName: string, cb: PassFunctions<TIncomingMessage, TServerResponse, TError>[PT]) => void;
|
|
490
490
|
}
|
|
491
491
|
//#endregion
|
|
492
|
-
//#region ../../node_modules/.pnpm/http-proxy-3@1.
|
|
492
|
+
//#region ../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/http-proxy/passes/ws-incoming.d.ts
|
|
493
493
|
declare function numOpenSockets(): number;
|
|
494
494
|
declare namespace index_d_exports {
|
|
495
495
|
export { ErrorCallback, ProxyServer, ProxyTarget, ProxyTargetUrl, ServerOptions$3 as ServerOptions, createProxyServer as createProxy, createProxyServer, createProxyServer as createServer, ProxyServer as default, numOpenSockets };
|
|
@@ -2463,7 +2463,7 @@ interface ViteDevServer {
|
|
|
2463
2463
|
*/
|
|
2464
2464
|
watcher: FSWatcher;
|
|
2465
2465
|
/**
|
|
2466
|
-
*
|
|
2466
|
+
* WebSocket server with `send(payload)` method
|
|
2467
2467
|
*/
|
|
2468
2468
|
ws: WebSocketServer;
|
|
2469
2469
|
/**
|
package/dist/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_EXTERNAL_CONDITIONS, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, VERSION, createLogger, defaultAllowedOrigins } from "./chunks/
|
|
2
|
-
import { BuildEnvironment, DevEnvironment, build, buildErrorMessage, createBuilder, createFilter, createIdResolver, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defineConfig, fetchModule, formatPostcssSourceMap, isCSSRequest, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, normalizePath, optimizeDeps, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, ssrTransform, transformWithEsbuild } from "./chunks/
|
|
1
|
+
import { DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_EXTERNAL_CONDITIONS, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, VERSION, createLogger, defaultAllowedOrigins } from "./chunks/logger.js";
|
|
2
|
+
import { BuildEnvironment, DevEnvironment, build, buildErrorMessage, createBuilder, createFilter, createIdResolver, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defineConfig, fetchModule, formatPostcssSourceMap, isCSSRequest, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, normalizePath, optimizeDeps, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, ssrTransform, transformWithEsbuild } from "./chunks/config.js";
|
|
3
3
|
import { parseAst, parseAstAsync } from "rollup/parseAst";
|
|
4
4
|
import { version as esbuildVersion } from "esbuild";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExternalFetchResult, FetchFunctionOptions, FetchResult, ModuleRunnerTransport, ModuleRunnerTransportHandlers, NormalizedModuleRunnerTransport, ViteFetchResult, createWebSocketModuleRunnerTransport } from "./moduleRunnerTransport
|
|
2
|
-
import { ModuleNamespace, ViteHotContext } from "
|
|
3
|
-
import { HotPayload, Update } from "
|
|
4
|
-
import { InferCustomEventPayload } from "
|
|
1
|
+
import { ExternalFetchResult, FetchFunctionOptions, FetchResult, ModuleRunnerTransport, ModuleRunnerTransportHandlers, NormalizedModuleRunnerTransport, ViteFetchResult, createWebSocketModuleRunnerTransport } from "./chunks/moduleRunnerTransport.js";
|
|
2
|
+
import { ModuleNamespace, ViteHotContext } from "#types/hot";
|
|
3
|
+
import { HotPayload, Update } from "#types/hmrPayload";
|
|
4
|
+
import { InferCustomEventPayload } from "#types/customEvent";
|
|
5
5
|
|
|
6
6
|
//#region src/module-runner/sourcemap/decoder.d.ts
|
|
7
7
|
interface SourceMapLike {
|
|
@@ -100,10 +100,9 @@ for (let i = 0; i < chars.length; i++) {
|
|
|
100
100
|
}
|
|
101
101
|
function decodeInteger(reader, relative) {
|
|
102
102
|
let value = 0, shift = 0, integer = 0;
|
|
103
|
-
do
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
} while (integer & 32);
|
|
103
|
+
do
|
|
104
|
+
integer = charToInt[reader.next()], value |= (integer & 31) << shift, shift += 5;
|
|
105
|
+
while (integer & 32);
|
|
107
106
|
let shouldNegate = value & 1;
|
|
108
107
|
return value >>>= 1, shouldNegate && (value = -2147483648 | -value), relative + value;
|
|
109
108
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Evan You",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"#module-sync-enabled": {
|
|
43
43
|
"module-sync": "./misc/true.js",
|
|
44
44
|
"default": "./misc/false.js"
|
|
45
|
-
}
|
|
45
|
+
},
|
|
46
|
+
"#types/*": "./types/*.d.ts",
|
|
47
|
+
"#dep-types/*": "./src/types/*.d.ts"
|
|
46
48
|
},
|
|
47
49
|
"files": [
|
|
48
50
|
"bin",
|
|
49
51
|
"dist",
|
|
50
52
|
"misc/**/*.js",
|
|
51
53
|
"client.d.ts",
|
|
52
|
-
"index.cjs",
|
|
53
|
-
"index.d.cts",
|
|
54
54
|
"types"
|
|
55
55
|
],
|
|
56
56
|
"engines": {
|
|
@@ -84,15 +84,15 @@
|
|
|
84
84
|
"@jridgewell/trace-mapping": "^0.3.31",
|
|
85
85
|
"@oxc-project/types": "0.90.0",
|
|
86
86
|
"@polka/compression": "^1.0.0-next.25",
|
|
87
|
-
"@rolldown/pluginutils": "^1.0.0-beta.
|
|
87
|
+
"@rolldown/pluginutils": "^1.0.0-beta.43",
|
|
88
88
|
"@rollup/plugin-alias": "^5.1.1",
|
|
89
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
89
|
+
"@rollup/plugin-commonjs": "^28.0.8",
|
|
90
90
|
"@rollup/plugin-dynamic-import-vars": "2.1.4",
|
|
91
91
|
"@rollup/pluginutils": "^5.3.0",
|
|
92
92
|
"@types/escape-html": "^1.0.4",
|
|
93
93
|
"@types/pnpapi": "^0.0.5",
|
|
94
94
|
"artichokie": "^0.4.2",
|
|
95
|
-
"baseline-browser-mapping": "^2.8.
|
|
95
|
+
"baseline-browser-mapping": "^2.8.18",
|
|
96
96
|
"cac": "^6.7.14",
|
|
97
97
|
"chokidar": "^3.6.0",
|
|
98
98
|
"connect": "^3.7.0",
|
|
@@ -100,15 +100,14 @@
|
|
|
100
100
|
"cors": "^2.8.5",
|
|
101
101
|
"cross-spawn": "^7.0.6",
|
|
102
102
|
"debug": "^4.4.3",
|
|
103
|
-
"dep-types": "link:./src/types",
|
|
104
103
|
"dotenv": "^17.2.3",
|
|
105
104
|
"dotenv-expand": "^12.0.3",
|
|
106
105
|
"es-module-lexer": "^1.7.0",
|
|
107
106
|
"escape-html": "^1.0.3",
|
|
108
107
|
"estree-walker": "^3.0.3",
|
|
109
108
|
"etag": "^1.8.1",
|
|
110
|
-
"host-validation-middleware": "^0.1.
|
|
111
|
-
"http-proxy-3": "^1.
|
|
109
|
+
"host-validation-middleware": "^0.1.2",
|
|
110
|
+
"http-proxy-3": "^1.22.0",
|
|
112
111
|
"launch-editor-middleware": "^2.11.1",
|
|
113
112
|
"lightningcss": "^1.30.2",
|
|
114
113
|
"magic-string": "^0.30.19",
|
|
@@ -125,7 +124,7 @@
|
|
|
125
124
|
"postcss-modules": "^6.0.1",
|
|
126
125
|
"premove": "^4.0.0",
|
|
127
126
|
"resolve.exports": "^2.0.3",
|
|
128
|
-
"rolldown": "^1.0.0-beta.
|
|
127
|
+
"rolldown": "^1.0.0-beta.43",
|
|
129
128
|
"rolldown-plugin-dts": "^0.16.11",
|
|
130
129
|
"rollup-plugin-license": "^3.6.0",
|
|
131
130
|
"sass": "^1.93.2",
|
|
@@ -134,7 +133,6 @@
|
|
|
134
133
|
"strip-literal": "^3.1.0",
|
|
135
134
|
"terser": "^5.44.0",
|
|
136
135
|
"tsconfck": "^3.1.6",
|
|
137
|
-
"types": "link:./types",
|
|
138
136
|
"ufo": "^1.6.1",
|
|
139
137
|
"ws": "^8.18.3"
|
|
140
138
|
},
|
|
File without changes
|