vite 7.1.0 → 7.1.1
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-Bq0QZiuR.js → dep-1xsIeazw.js} +1 -1
- package/dist/node/chunks/{dep-By9Vn5UD.js → dep-B6kJvLFS.js} +1 -1
- package/dist/node/chunks/{dep-Bh-1mzXX.js → dep-Cw8UoqDf.js} +1 -1
- package/dist/node/chunks/{dep-CxRDE86e.js → dep-DzJShgQJ.js} +1 -1
- package/dist/node/chunks/{dep-CZAfWeT9.js → dep-eRCq8YxU.js} +17 -16
- package/dist/node/cli.js +5 -5
- package/dist/node/index.js +1 -1
- package/package.json +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { preview, resolvePreviewOptions } from "./dep-
|
2
|
+
import { preview, resolvePreviewOptions } from "./dep-eRCq8YxU.js";
|
3
3
|
import "./dep-BDCsDwBr.js";
|
4
4
|
|
5
5
|
export { preview };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-
|
2
|
+
import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-eRCq8YxU.js";
|
3
3
|
import "./dep-BDCsDwBr.js";
|
4
4
|
|
5
5
|
export { createBuilder, resolveBuildPlugins };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies } from "./dep-
|
2
|
+
import { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies } from "./dep-eRCq8YxU.js";
|
3
3
|
import "./dep-BDCsDwBr.js";
|
4
4
|
|
5
5
|
export { optimizeDeps };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./dep-
|
2
|
+
import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./dep-eRCq8YxU.js";
|
3
3
|
import "./dep-BDCsDwBr.js";
|
4
4
|
|
5
5
|
export { createServer };
|
@@ -18384,8 +18384,8 @@ var require_shell_quote = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
18384
18384
|
}) });
|
18385
18385
|
|
18386
18386
|
//#endregion
|
18387
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.11.
|
18388
|
-
var require_macos = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.
|
18387
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/macos.js
|
18388
|
+
var require_macos = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/macos.js": ((exports, module) => {
|
18389
18389
|
module.exports = {
|
18390
18390
|
"/Applications/Atom.app/Contents/MacOS/Atom": "atom",
|
18391
18391
|
"/Applications/Atom Beta.app/Contents/MacOS/Atom Beta": "/Applications/Atom Beta.app/Contents/MacOS/Atom Beta",
|
@@ -18417,8 +18417,8 @@ var require_macos = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launc
|
|
18417
18417
|
}) });
|
18418
18418
|
|
18419
18419
|
//#endregion
|
18420
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.11.
|
18421
|
-
var require_linux = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.
|
18420
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/linux.js
|
18421
|
+
var require_linux = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/linux.js": ((exports, module) => {
|
18422
18422
|
module.exports = {
|
18423
18423
|
atom: "atom",
|
18424
18424
|
Brackets: "brackets",
|
@@ -18450,8 +18450,8 @@ var require_linux = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launc
|
|
18450
18450
|
}) });
|
18451
18451
|
|
18452
18452
|
//#endregion
|
18453
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.11.
|
18454
|
-
var require_windows$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.
|
18453
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/windows.js
|
18454
|
+
var require_windows$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/windows.js": ((exports, module) => {
|
18455
18455
|
module.exports = [
|
18456
18456
|
"Brackets.exe",
|
18457
18457
|
"Code.exe",
|
@@ -18482,8 +18482,8 @@ var require_windows$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/l
|
|
18482
18482
|
}) });
|
18483
18483
|
|
18484
18484
|
//#endregion
|
18485
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.11.
|
18486
|
-
var require_guess = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.
|
18485
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/guess.js
|
18486
|
+
var require_guess = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/guess.js": ((exports, module) => {
|
18487
18487
|
const path$8 = require("path");
|
18488
18488
|
const shellQuote = require_shell_quote();
|
18489
18489
|
const childProcess$2 = require("child_process");
|
@@ -18545,8 +18545,8 @@ var require_guess = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launc
|
|
18545
18545
|
}) });
|
18546
18546
|
|
18547
18547
|
//#endregion
|
18548
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.11.
|
18549
|
-
var require_get_args = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.
|
18548
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/get-args.js
|
18549
|
+
var require_get_args = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/get-args.js": ((exports, module) => {
|
18550
18550
|
const path$7 = require("path");
|
18551
18551
|
module.exports = function getArgumentsForPosition$1(editor, fileName, lineNumber, columnNumber = 1) {
|
18552
18552
|
const editorBasename = path$7.basename(editor).replace(/\.(exe|cmd|bat)$/i, "");
|
@@ -18625,8 +18625,8 @@ var require_get_args = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/la
|
|
18625
18625
|
}) });
|
18626
18626
|
|
18627
18627
|
//#endregion
|
18628
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.11.
|
18629
|
-
var require_launch_editor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.
|
18628
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/index.js
|
18629
|
+
var require_launch_editor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/index.js": ((exports, module) => {
|
18630
18630
|
/**
|
18631
18631
|
* Copyright (c) 2015-present, Facebook, Inc.
|
18632
18632
|
*
|
@@ -18727,8 +18727,8 @@ var require_launch_editor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
|
|
18727
18727
|
}) });
|
18728
18728
|
|
18729
18729
|
//#endregion
|
18730
|
-
//#region ../../node_modules/.pnpm/launch-editor-middleware@2.11.
|
18731
|
-
var require_launch_editor_middleware = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor-middleware@2.11.
|
18730
|
+
//#region ../../node_modules/.pnpm/launch-editor-middleware@2.11.1/node_modules/launch-editor-middleware/index.js
|
18731
|
+
var require_launch_editor_middleware = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor-middleware@2.11.1/node_modules/launch-editor-middleware/index.js": ((exports, module) => {
|
18732
18732
|
const path$5 = require("path");
|
18733
18733
|
const launch = require_launch_editor();
|
18734
18734
|
module.exports = (specifiedEditor, srcRoot, onErrorCallback) => {
|
@@ -18744,7 +18744,8 @@ var require_launch_editor_middleware = /* @__PURE__ */ __commonJS({ "../../node_
|
|
18744
18744
|
return function launchEditorMiddleware$1(req$4, res) {
|
18745
18745
|
let url$3;
|
18746
18746
|
try {
|
18747
|
-
|
18747
|
+
const fullUrl = req$4.url.startsWith("http") ? req$4.url : `http://localhost${req$4.url}`;
|
18748
|
+
url$3 = new URL(fullUrl);
|
18748
18749
|
} catch (_err) {
|
18749
18750
|
res.statusCode = 500;
|
18750
18751
|
res.end(`launch-editor-middleware: invalid URL.`);
|
@@ -31055,7 +31056,7 @@ function createFilterForTransform(idFilter, codeFilter, cwd) {
|
|
31055
31056
|
async function resolvePlugins(config$2, prePlugins, normalPlugins, postPlugins) {
|
31056
31057
|
const isBuild = config$2.command === "build";
|
31057
31058
|
const isWorker = config$2.isWorker;
|
31058
|
-
const buildPlugins = isBuild ? await (await import("./dep-
|
31059
|
+
const buildPlugins = isBuild ? await (await import("./dep-B6kJvLFS.js")).resolveBuildPlugins(config$2) : {
|
31059
31060
|
pre: [],
|
31060
31061
|
post: []
|
31061
31062
|
};
|
package/dist/node/cli.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
2
|
import { __toESM } from "./chunks/dep-Drtntmtt.js";
|
3
|
-
import { createLogger, require_picocolors, resolveConfig } from "./chunks/dep-
|
3
|
+
import { createLogger, require_picocolors, resolveConfig } from "./chunks/dep-eRCq8YxU.js";
|
4
4
|
import { VERSION } from "./chunks/dep-BDCsDwBr.js";
|
5
5
|
import fs from "node:fs";
|
6
6
|
import path from "node:path";
|
@@ -568,7 +568,7 @@ const convertBase = (v) => {
|
|
568
568
|
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
569
|
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
570
|
filterDuplicateOptions(options);
|
571
|
-
const { createServer } = await import("./chunks/dep-
|
571
|
+
const { createServer } = await import("./chunks/dep-DzJShgQJ.js");
|
572
572
|
try {
|
573
573
|
const server = await createServer({
|
574
574
|
root,
|
@@ -624,7 +624,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
|
|
624
624
|
});
|
625
625
|
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
626
|
filterDuplicateOptions(options);
|
627
|
-
const { createBuilder } = await import("./chunks/dep-
|
627
|
+
const { createBuilder } = await import("./chunks/dep-B6kJvLFS.js");
|
628
628
|
const buildOptions = cleanGlobalCLIOptions(cleanBuilderCLIOptions(options));
|
629
629
|
try {
|
630
630
|
const inlineConfig = {
|
@@ -649,7 +649,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
|
|
649
649
|
});
|
650
650
|
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) => {
|
651
651
|
filterDuplicateOptions(options);
|
652
|
-
const { optimizeDeps } = await import("./chunks/dep-
|
652
|
+
const { optimizeDeps } = await import("./chunks/dep-Cw8UoqDf.js");
|
653
653
|
try {
|
654
654
|
const config = await resolveConfig({
|
655
655
|
root,
|
@@ -667,7 +667,7 @@ cli.command("optimize [root]", "pre-bundle dependencies (deprecated, the pre-bun
|
|
667
667
|
});
|
668
668
|
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
669
|
filterDuplicateOptions(options);
|
670
|
-
const { preview } = await import("./chunks/dep-
|
670
|
+
const { preview } = await import("./chunks/dep-1xsIeazw.js");
|
671
671
|
try {
|
672
672
|
const server = await preview({
|
673
673
|
root,
|
package/dist/node/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { BuildEnvironment, DevEnvironment, build, buildErrorMessage, createBuilder, createFilter, createIdResolver, createLogger, 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/dep-
|
2
|
+
import { BuildEnvironment, DevEnvironment, build, buildErrorMessage, createBuilder, createFilter, createIdResolver, createLogger, 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/dep-eRCq8YxU.js";
|
3
3
|
import { DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_EXTERNAL_CONDITIONS, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, VERSION, defaultAllowedOrigins } from "./chunks/dep-BDCsDwBr.js";
|
4
4
|
import { parseAst, parseAstAsync } from "rollup/parseAst";
|
5
5
|
import { version as esbuildVersion } from "esbuild";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vite",
|
3
|
-
"version": "7.1.
|
3
|
+
"version": "7.1.1",
|
4
4
|
"type": "module",
|
5
5
|
"license": "MIT",
|
6
6
|
"author": "Evan You",
|
@@ -109,7 +109,7 @@
|
|
109
109
|
"etag": "^1.8.1",
|
110
110
|
"host-validation-middleware": "^0.1.1",
|
111
111
|
"http-proxy-3": "^1.20.10",
|
112
|
-
"launch-editor-middleware": "^2.11.
|
112
|
+
"launch-editor-middleware": "^2.11.1",
|
113
113
|
"lightningcss": "^1.30.1",
|
114
114
|
"magic-string": "^0.30.17",
|
115
115
|
"mlly": "^1.7.4",
|