vite 7.1.10 → 7.1.12
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/node/chunks/{dep-B6cO9KC8.js → build.js} +2 -2
- package/dist/node/chunks/{dep-B0biTXWL.js → build2.js} +2 -2
- package/dist/node/chunks/{dep-B0GuR2De.js → config.js} +8 -7
- package/dist/node/chunks/{dep-Cl2Q94Oy.js → config2.js} +2 -2
- 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-BhuufcWm.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-F8pfeHm9.js → server.js} +2 -2
- package/dist/node/cli.js +7 -7
- package/dist/node/index.d.ts +8 -8
- package/dist/node/index.js +2 -2
- package/dist/node/module-runner.d.ts +4 -4
- package/package.json +6 -8
- package/dist/node/chunks/dep-D5ktuZSi.js +0 -4
- /package/dist/node/chunks/{dep-lCKrEJQm.js → chunk.js} +0 -0
- /package/dist/node/chunks/{dep-BRReGxEs.js → dist.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./
|
|
1
|
+
import "./logger.js";
|
|
2
|
+
import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./config.js";
|
|
3
3
|
|
|
4
4
|
export { createBuilder, resolveBuildPlugins };
|
|
@@ -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-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js
|
|
5
5
|
var require_fs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js": ((exports) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __commonJS, __require, __toDynamicImportESM, __toESM } from "./
|
|
2
|
-
import { CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_INLINE_LIMIT, DEFAULT_ASSETS_RE, DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_EXTERNAL_CONDITIONS, DEFAULT_PREVIEW_PORT, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, DEP_VERSION_RE, DEV_PROD_CONDITION, ENV_ENTRY, ENV_PUBLIC_PATH, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, LogLevels, METADATA_FILENAME, OPTIMIZABLE_ENTRY_RE, ROLLUP_HOOKS, SPECIAL_QUERY_RE, VERSION, VITE_PACKAGE_DIR, createLogger, defaultAllowedOrigins, loopbackHosts, printServerUrls, require_picocolors, wildcardHosts } from "./
|
|
1
|
+
import { __commonJS, __require, __toDynamicImportESM, __toESM } from "./chunk.js";
|
|
2
|
+
import { CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_INLINE_LIMIT, DEFAULT_ASSETS_RE, DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_EXTERNAL_CONDITIONS, DEFAULT_PREVIEW_PORT, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, DEP_VERSION_RE, DEV_PROD_CONDITION, ENV_ENTRY, ENV_PUBLIC_PATH, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, LogLevels, METADATA_FILENAME, OPTIMIZABLE_ENTRY_RE, ROLLUP_HOOKS, SPECIAL_QUERY_RE, VERSION, VITE_PACKAGE_DIR, createLogger, defaultAllowedOrigins, loopbackHosts, printServerUrls, require_picocolors, wildcardHosts } from "./logger.js";
|
|
3
3
|
import { builtinModules, createRequire } from "node:module";
|
|
4
4
|
import { parseAst, parseAstAsync } from "rollup/parseAst";
|
|
5
5
|
import * as fs$1 from "node:fs";
|
|
@@ -25878,7 +25878,8 @@ function isFileInTargetPath(targetPath, filePath) {
|
|
|
25878
25878
|
function isFileLoadingAllowed(config$2, filePath) {
|
|
25879
25879
|
const { fs: fs$12 } = config$2.server;
|
|
25880
25880
|
if (!fs$12.strict) return true;
|
|
25881
|
-
|
|
25881
|
+
const filePathWithoutTrailingSlash = filePath.endsWith("/") ? filePath.slice(0, -1) : filePath;
|
|
25882
|
+
if (config$2.fsDenyGlob(filePathWithoutTrailingSlash)) return false;
|
|
25882
25883
|
if (config$2.safeModulePaths.has(filePath)) return true;
|
|
25883
25884
|
if (fs$12.allow.some((uri) => isFileInTargetPath(uri, filePath))) return true;
|
|
25884
25885
|
return false;
|
|
@@ -26343,7 +26344,7 @@ function traverseNodes(node, visitor) {
|
|
|
26343
26344
|
if (nodeIsElement(node) || node.nodeName === "#document" || node.nodeName === "#document-fragment") node.childNodes.forEach((childNode) => traverseNodes(childNode, visitor));
|
|
26344
26345
|
}
|
|
26345
26346
|
async function traverseHtml(html, filePath, warn, visitor) {
|
|
26346
|
-
const { parse: parse$17 } = await import("./
|
|
26347
|
+
const { parse: parse$17 } = await import("./dist.js");
|
|
26347
26348
|
const warnings = {};
|
|
26348
26349
|
traverseNodes(parse$17(html, {
|
|
26349
26350
|
scriptingEnabled: false,
|
|
@@ -30519,7 +30520,7 @@ function createFilterForTransform(idFilter, codeFilter, cwd) {
|
|
|
30519
30520
|
async function resolvePlugins(config$2, prePlugins, normalPlugins, postPlugins) {
|
|
30520
30521
|
const isBuild = config$2.command === "build";
|
|
30521
30522
|
const isWorker = config$2.isWorker;
|
|
30522
|
-
const buildPlugins = isBuild ? await (await import("./
|
|
30523
|
+
const buildPlugins = isBuild ? await (await import("./build.js")).resolveBuildPlugins(config$2) : {
|
|
30523
30524
|
pre: [],
|
|
30524
30525
|
post: []
|
|
30525
30526
|
};
|
|
@@ -32110,8 +32111,8 @@ function createCachedImport(imp) {
|
|
|
32110
32111
|
return cached;
|
|
32111
32112
|
};
|
|
32112
32113
|
}
|
|
32113
|
-
const importPostcssImport = createCachedImport(() => import("./
|
|
32114
|
-
const importPostcssModules = createCachedImport(() => import("./
|
|
32114
|
+
const importPostcssImport = createCachedImport(() => import("./postcss-import.js").then(__toDynamicImportESM(1)));
|
|
32115
|
+
const importPostcssModules = createCachedImport(() => import("./build2.js").then(__toDynamicImportESM(1)));
|
|
32115
32116
|
const importPostcss = createCachedImport(() => import("postcss"));
|
|
32116
32117
|
const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
|
|
32117
32118
|
let alwaysFakeWorkerWorkerControllerCache;
|
|
@@ -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 };
|
|
@@ -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";
|
|
@@ -567,7 +567,7 @@ const convertBase = (v) => {
|
|
|
567
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`);
|
|
568
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) => {
|
|
569
569
|
filterDuplicateOptions(options);
|
|
570
|
-
const { createServer } = await import("./chunks/
|
|
570
|
+
const { createServer } = await import("./chunks/server.js");
|
|
571
571
|
try {
|
|
572
572
|
const server = await createServer({
|
|
573
573
|
root,
|
|
@@ -623,7 +623,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
|
|
|
623
623
|
});
|
|
624
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) => {
|
|
625
625
|
filterDuplicateOptions(options);
|
|
626
|
-
const { createBuilder } = await import("./chunks/
|
|
626
|
+
const { createBuilder } = await import("./chunks/build.js");
|
|
627
627
|
const buildOptions = cleanGlobalCLIOptions(cleanBuilderCLIOptions(options));
|
|
628
628
|
try {
|
|
629
629
|
await (await createBuilder({
|
|
@@ -646,8 +646,8 @@ cli.command("build [root]", "build for production").option("--target <target>",
|
|
|
646
646
|
});
|
|
647
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) => {
|
|
648
648
|
filterDuplicateOptions(options);
|
|
649
|
-
const { resolveConfig } = await import("./chunks/
|
|
650
|
-
const { optimizeDeps } = await import("./chunks/
|
|
649
|
+
const { resolveConfig } = await import("./chunks/config2.js");
|
|
650
|
+
const { optimizeDeps } = await import("./chunks/optimizer.js");
|
|
651
651
|
try {
|
|
652
652
|
await optimizeDeps(await resolveConfig({
|
|
653
653
|
root,
|
|
@@ -664,7 +664,7 @@ cli.command("optimize [root]", "pre-bundle dependencies (deprecated, the pre-bun
|
|
|
664
664
|
});
|
|
665
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) => {
|
|
666
666
|
filterDuplicateOptions(options);
|
|
667
|
-
const { preview } = await import("./chunks/
|
|
667
|
+
const { preview } = await import("./chunks/preview.js");
|
|
668
668
|
try {
|
|
669
669
|
const server = await preview({
|
|
670
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
|
|
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 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.12",
|
|
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": {
|
|
@@ -86,13 +86,13 @@
|
|
|
86
86
|
"@polka/compression": "^1.0.0-next.25",
|
|
87
87
|
"@rolldown/pluginutils": "^1.0.0-beta.43",
|
|
88
88
|
"@rollup/plugin-alias": "^5.1.1",
|
|
89
|
-
"@rollup/plugin-commonjs": "
|
|
89
|
+
"@rollup/plugin-commonjs": "28.0.6",
|
|
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,7 +100,6 @@
|
|
|
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",
|
|
@@ -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
|
|
File without changes
|