vite 7.1.10 → 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/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} +26 -11
- 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";
|
|
@@ -3937,10 +3937,10 @@ var require_is_reference = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
3937
3937
|
}) });
|
|
3938
3938
|
|
|
3939
3939
|
//#endregion
|
|
3940
|
-
//#region ../../node_modules/.pnpm/@rollup+plugin-commonjs@28.0.
|
|
3940
|
+
//#region ../../node_modules/.pnpm/@rollup+plugin-commonjs@28.0.8_rollup@4.43.0/node_modules/@rollup/plugin-commonjs/dist/es/index.js
|
|
3941
3941
|
var import_commondir = /* @__PURE__ */ __toESM(require_commondir(), 1);
|
|
3942
3942
|
var import_is_reference = /* @__PURE__ */ __toESM(require_is_reference(), 1);
|
|
3943
|
-
var version$1 = "28.0.
|
|
3943
|
+
var version$1 = "28.0.8";
|
|
3944
3944
|
var peerDependencies = { rollup: "^2.68.0||^3.0.0||^4.0.0" };
|
|
3945
3945
|
function tryParse(parse$17, code, id) {
|
|
3946
3946
|
try {
|
|
@@ -4276,6 +4276,11 @@ function getEsImportProxy(id, defaultIsModuleExports, moduleSideEffects) {
|
|
|
4276
4276
|
syntheticNamedExports: "__moduleExports"
|
|
4277
4277
|
};
|
|
4278
4278
|
}
|
|
4279
|
+
function getExternalBuiltinRequireProxy(id) {
|
|
4280
|
+
return `import { createRequire } from 'node:module';
|
|
4281
|
+
const require = createRequire(import.meta.url);
|
|
4282
|
+
export function __require() { return require(${JSON.stringify(id)}); }`;
|
|
4283
|
+
}
|
|
4279
4284
|
function getCandidatesForExtension(resolved, extension$1) {
|
|
4280
4285
|
return [resolved + extension$1, `${resolved}${sep$1}index${extension$1}`];
|
|
4281
4286
|
}
|
|
@@ -4437,11 +4442,19 @@ function getRequireResolver(extensions$1, detectCyclesAndConditional, currentlyR
|
|
|
4437
4442
|
parentMeta.isCommonJS = getTypeForFullyAnalyzedModule(parentId);
|
|
4438
4443
|
fullyAnalyzedModules[parentId] = true;
|
|
4439
4444
|
return requireTargets.map(({ id: dependencyId, allowProxy }, index) => {
|
|
4440
|
-
|
|
4445
|
+
let isCommonJS = parentMeta.isRequiredCommonJS[dependencyId] = getTypeForFullyAnalyzedModule(dependencyId);
|
|
4446
|
+
const isExternalWrapped = isWrappedId(dependencyId, EXTERNAL_SUFFIX);
|
|
4447
|
+
if (parentMeta.initialCommonJSType === IS_WRAPPED_COMMONJS && !allowProxy && isExternalWrapped) {
|
|
4448
|
+
if (unwrapId$1(dependencyId, EXTERNAL_SUFFIX).startsWith("node:")) {
|
|
4449
|
+
isCommonJS = IS_WRAPPED_COMMONJS;
|
|
4450
|
+
parentMeta.isRequiredCommonJS[dependencyId] = isCommonJS;
|
|
4451
|
+
}
|
|
4452
|
+
}
|
|
4441
4453
|
const isWrappedCommonJS = isCommonJS === IS_WRAPPED_COMMONJS;
|
|
4442
4454
|
fullyAnalyzedModules[dependencyId] = true;
|
|
4455
|
+
const moduleInfo = isWrappedCommonJS && !isExternalWrapped ? rollupContext.getModuleInfo(dependencyId) : null;
|
|
4443
4456
|
return {
|
|
4444
|
-
wrappedModuleSideEffects: isWrappedCommonJS
|
|
4457
|
+
wrappedModuleSideEffects: !isWrappedCommonJS ? false : moduleInfo?.moduleSideEffects ?? true,
|
|
4445
4458
|
source: sources[index].source,
|
|
4446
4459
|
id: allowProxy ? wrapId$1(dependencyId, isWrappedCommonJS ? WRAPPED_SUFFIX : PROXY_SUFFIX) : dependencyId,
|
|
4447
4460
|
isCommonJS
|
|
@@ -5125,6 +5138,7 @@ function commonjs(options$1 = {}) {
|
|
|
5125
5138
|
}
|
|
5126
5139
|
if (isWrappedId(id, EXTERNAL_SUFFIX)) {
|
|
5127
5140
|
const actualId = unwrapId$1(id, EXTERNAL_SUFFIX);
|
|
5141
|
+
if (actualId.startsWith("node:")) return getExternalBuiltinRequireProxy(actualId);
|
|
5128
5142
|
return getUnknownRequireProxy(actualId, isEsmExternal(actualId) ? getRequireReturnsDefault(actualId) : true);
|
|
5129
5143
|
}
|
|
5130
5144
|
if (id.endsWith(ENTRY_SUFFIX)) {
|
|
@@ -25878,7 +25892,8 @@ function isFileInTargetPath(targetPath, filePath) {
|
|
|
25878
25892
|
function isFileLoadingAllowed(config$2, filePath) {
|
|
25879
25893
|
const { fs: fs$12 } = config$2.server;
|
|
25880
25894
|
if (!fs$12.strict) return true;
|
|
25881
|
-
|
|
25895
|
+
const filePathWithoutTrailingSlash = filePath.endsWith("/") ? filePath.slice(0, -1) : filePath;
|
|
25896
|
+
if (config$2.fsDenyGlob(filePathWithoutTrailingSlash)) return false;
|
|
25882
25897
|
if (config$2.safeModulePaths.has(filePath)) return true;
|
|
25883
25898
|
if (fs$12.allow.some((uri) => isFileInTargetPath(uri, filePath))) return true;
|
|
25884
25899
|
return false;
|
|
@@ -26343,7 +26358,7 @@ function traverseNodes(node, visitor) {
|
|
|
26343
26358
|
if (nodeIsElement(node) || node.nodeName === "#document" || node.nodeName === "#document-fragment") node.childNodes.forEach((childNode) => traverseNodes(childNode, visitor));
|
|
26344
26359
|
}
|
|
26345
26360
|
async function traverseHtml(html, filePath, warn, visitor) {
|
|
26346
|
-
const { parse: parse$17 } = await import("./
|
|
26361
|
+
const { parse: parse$17 } = await import("./dist.js");
|
|
26347
26362
|
const warnings = {};
|
|
26348
26363
|
traverseNodes(parse$17(html, {
|
|
26349
26364
|
scriptingEnabled: false,
|
|
@@ -30519,7 +30534,7 @@ function createFilterForTransform(idFilter, codeFilter, cwd) {
|
|
|
30519
30534
|
async function resolvePlugins(config$2, prePlugins, normalPlugins, postPlugins) {
|
|
30520
30535
|
const isBuild = config$2.command === "build";
|
|
30521
30536
|
const isWorker = config$2.isWorker;
|
|
30522
|
-
const buildPlugins = isBuild ? await (await import("./
|
|
30537
|
+
const buildPlugins = isBuild ? await (await import("./build.js")).resolveBuildPlugins(config$2) : {
|
|
30523
30538
|
pre: [],
|
|
30524
30539
|
post: []
|
|
30525
30540
|
};
|
|
@@ -32110,8 +32125,8 @@ function createCachedImport(imp) {
|
|
|
32110
32125
|
return cached;
|
|
32111
32126
|
};
|
|
32112
32127
|
}
|
|
32113
|
-
const importPostcssImport = createCachedImport(() => import("./
|
|
32114
|
-
const importPostcssModules = createCachedImport(() => import("./
|
|
32128
|
+
const importPostcssImport = createCachedImport(() => import("./postcss-import.js").then(__toDynamicImportESM(1)));
|
|
32129
|
+
const importPostcssModules = createCachedImport(() => import("./build2.js").then(__toDynamicImportESM(1)));
|
|
32115
32130
|
const importPostcss = createCachedImport(() => import("postcss"));
|
|
32116
32131
|
const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
|
|
32117
32132
|
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.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": {
|
|
@@ -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": "^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,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
|