vite 7.1.4 → 7.1.5

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.
@@ -1,4 +1,4 @@
1
1
  import "./dep-SmwnYDP9.js";
2
- import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-C6pp_iVS.js";
2
+ import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-M_KD0XSK.js";
3
3
 
4
4
  export { createBuilder, resolveBuildPlugins };
@@ -1,4 +1,4 @@
1
1
  import "./dep-SmwnYDP9.js";
2
- import { configDefaults, defineConfig, getDefaultEnvironmentOptions, isResolvedConfig, loadConfigFromFile, resolveBaseUrl, resolveConfig, resolveDevEnvironmentOptions, sortUserPlugins } from "./dep-C6pp_iVS.js";
2
+ import { configDefaults, defineConfig, getDefaultEnvironmentOptions, isResolvedConfig, loadConfigFromFile, resolveBaseUrl, resolveConfig, resolveDevEnvironmentOptions, sortUserPlugins } from "./dep-M_KD0XSK.js";
3
3
 
4
4
  export { resolveConfig };
@@ -1,4 +1,4 @@
1
1
  import "./dep-SmwnYDP9.js";
2
- import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./dep-C6pp_iVS.js";
2
+ import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./dep-M_KD0XSK.js";
3
3
 
4
4
  export { createServer };
@@ -4,7 +4,7 @@ import { builtinModules, createRequire } from "node:module";
4
4
  import { parseAst, parseAstAsync } from "rollup/parseAst";
5
5
  import * as fs$1 from "node:fs";
6
6
  import fs, { existsSync, promises, readFileSync } from "node:fs";
7
- import path, { basename, dirname, extname, isAbsolute, join, normalize, posix, relative, resolve } from "node:path";
7
+ import path, { basename, dirname, extname, isAbsolute, join, normalize, posix, relative, resolve, sep } from "node:path";
8
8
  import fsp, { constants } from "node:fs/promises";
9
9
  import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url";
10
10
  import { format, inspect, promisify, stripVTControlCharacters } from "node:util";
@@ -16,7 +16,7 @@ import os from "node:os";
16
16
  import net from "node:net";
17
17
  import childProcess, { exec, execFile, execSync } from "node:child_process";
18
18
  import { promises as promises$1 } from "node:dns";
19
- import path$1, { basename as basename$1, dirname as dirname$1, extname as extname$1, isAbsolute as isAbsolute$1, join as join$1, posix as posix$1, relative as relative$1, resolve as resolve$1, sep, win32 } from "path";
19
+ import path$1, { basename as basename$1, dirname as dirname$1, extname as extname$1, isAbsolute as isAbsolute$1, join as join$1, posix as posix$1, relative as relative$1, resolve as resolve$1, sep as sep$1, win32 } from "path";
20
20
  import { existsSync as existsSync$1, readFileSync as readFileSync$1, readdirSync, statSync } from "fs";
21
21
  import { fdir } from "fdir";
22
22
  import { gzip } from "node:zlib";
@@ -1573,7 +1573,7 @@ function walk$2(ast, { enter, leave }) {
1573
1573
  }
1574
1574
 
1575
1575
  //#endregion
1576
- //#region ../../node_modules/.pnpm/@rollup+pluginutils@5.2.0_rollup@4.43.0/node_modules/@rollup/pluginutils/dist/es/index.js
1576
+ //#region ../../node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.43.0/node_modules/@rollup/pluginutils/dist/es/index.js
1577
1577
  const extractors = {
1578
1578
  ArrayPattern(names, param) {
1579
1579
  for (const element of param.elements) if (element) extractors[element.type](names, element);
@@ -4394,7 +4394,7 @@ function getEsImportProxy(id, defaultIsModuleExports, moduleSideEffects) {
4394
4394
  };
4395
4395
  }
4396
4396
  function getCandidatesForExtension(resolved, extension$1) {
4397
- return [resolved + extension$1, `${resolved}${sep}index${extension$1}`];
4397
+ return [resolved + extension$1, `${resolved}${sep$1}index${extension$1}`];
4398
4398
  }
4399
4399
  function getCandidates(resolved, extensions$1) {
4400
4400
  return extensions$1.reduce((paths, extension$1) => paths.concat(getCandidatesForExtension(resolved, extension$1)), [resolved]);
@@ -5814,7 +5814,7 @@ function findUp(dir, { resolve: resolve$4, reject, promise }, options$1) {
5814
5814
  * @property {boolean} err - error flag
5815
5815
  * @property {string[]} configNames - config file names
5816
5816
  */
5817
- const sep$2 = path.sep;
5817
+ const sep$3 = path.sep;
5818
5818
 
5819
5819
  //#endregion
5820
5820
  //#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/to-json.js
@@ -8109,7 +8109,7 @@ var require_convert_source_map = /* @__PURE__ */ __commonJS({ "../../node_module
8109
8109
  }) });
8110
8110
 
8111
8111
  //#endregion
8112
- //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.34/node_modules/@rolldown/pluginutils/dist/index.js
8112
+ //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.35/node_modules/@rolldown/pluginutils/dist/index.js
8113
8113
  /**
8114
8114
  * Constructs a RegExp that matches the exact string specified.
8115
8115
  *
@@ -12317,11 +12317,11 @@ function throwFileNotFoundInOptimizedDep(id) {
12317
12317
  }
12318
12318
 
12319
12319
  //#endregion
12320
- //#region ../../node_modules/.pnpm/dotenv@17.2.1/node_modules/dotenv/package.json
12321
- var require_package = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv@17.2.1/node_modules/dotenv/package.json": ((exports, module) => {
12320
+ //#region ../../node_modules/.pnpm/dotenv@17.2.2/node_modules/dotenv/package.json
12321
+ var require_package = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv@17.2.2/node_modules/dotenv/package.json": ((exports, module) => {
12322
12322
  module.exports = {
12323
12323
  "name": "dotenv",
12324
- "version": "17.2.1",
12324
+ "version": "17.2.2",
12325
12325
  "description": "Loads environment variables from .env file",
12326
12326
  "main": "lib/main.js",
12327
12327
  "types": "lib/main.d.ts",
@@ -12380,8 +12380,8 @@ var require_package = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dot
12380
12380
  }) });
12381
12381
 
12382
12382
  //#endregion
12383
- //#region ../../node_modules/.pnpm/dotenv@17.2.1/node_modules/dotenv/lib/main.js
12384
- var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv@17.2.1/node_modules/dotenv/lib/main.js": ((exports, module) => {
12383
+ //#region ../../node_modules/.pnpm/dotenv@17.2.2/node_modules/dotenv/lib/main.js
12384
+ var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv@17.2.2/node_modules/dotenv/lib/main.js": ((exports, module) => {
12385
12385
  const fs$10 = __require("fs");
12386
12386
  const path$10 = __require("path");
12387
12387
  const os$3 = __require("os");
@@ -12658,8 +12658,8 @@ var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dote
12658
12658
  }) });
12659
12659
 
12660
12660
  //#endregion
12661
- //#region ../../node_modules/.pnpm/dotenv-expand@12.0.2_patch_hash=49330a663821151418e003e822a82a6a61d2f0f8a6e3cab00c1c94815a112889/node_modules/dotenv-expand/lib/main.js
12662
- var require_main = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv-expand@12.0.2_patch_hash=49330a663821151418e003e822a82a6a61d2f0f8a6e3cab00c1c94815a112889/node_modules/dotenv-expand/lib/main.js": ((exports, module) => {
12661
+ //#region ../../node_modules/.pnpm/dotenv-expand@12.0.3_patch_hash=49330a663821151418e003e822a82a6a61d2f0f8a6e3cab00c1c94815a112889/node_modules/dotenv-expand/lib/main.js
12662
+ var require_main = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv-expand@12.0.3_patch_hash=49330a663821151418e003e822a82a6a61d2f0f8a6e3cab00c1c94815a112889/node_modules/dotenv-expand/lib/main.js": ((exports, module) => {
12663
12663
  function _resolveEscapeSequences(value$1) {
12664
12664
  return value$1.replace(/\\\$/g, "$");
12665
12665
  }
@@ -16528,7 +16528,7 @@ var require_is_binary_path = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
16528
16528
  //#endregion
16529
16529
  //#region ../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/lib/constants.js
16530
16530
  var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/lib/constants.js": ((exports) => {
16531
- const { sep: sep$1 } = __require("path");
16531
+ const { sep: sep$2 } = __require("path");
16532
16532
  const { platform: platform$1 } = process;
16533
16533
  const os$2 = __require("os");
16534
16534
  exports.EV_ALL = "all";
@@ -16561,7 +16561,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
16561
16561
  exports.KEY_ERR,
16562
16562
  exports.KEY_RAW
16563
16563
  ];
16564
- exports.DOT_SLASH = `.${sep$1}`;
16564
+ exports.DOT_SLASH = `.${sep$2}`;
16565
16565
  exports.BACK_SLASH_RE = /\\/g;
16566
16566
  exports.DOUBLE_SLASH_RE = /\/\//;
16567
16567
  exports.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
@@ -25963,7 +25963,7 @@ function parse$1(req$4) {
25963
25963
  }
25964
25964
 
25965
25965
  //#endregion
25966
- //#region ../../node_modules/.pnpm/sirv@3.0.1_patch_hash=95b663b930c5cc6e609c7fa15b69a86ff3b30df68978611d1d3d724c65135cb1/node_modules/sirv/build.mjs
25966
+ //#region ../../node_modules/.pnpm/sirv@3.0.2_patch_hash=c07c56eb72faea34341d465cde2314e89db472106ed378181e3447893af6bf95/node_modules/sirv/build.mjs
25967
25967
  const noop = () => {};
25968
25968
  function isMatch(uri, arr) {
25969
25969
  for (let i$1 = 0; i$1 < arr.length; i$1++) if (arr[i$1].test(uri)) return true;
@@ -26085,7 +26085,7 @@ function build_default(dir, opts = {}) {
26085
26085
  headers
26086
26086
  };
26087
26087
  });
26088
- let lookup$1 = opts.dev ? viaLocal.bind(0, dir, isEtag) : viaCache.bind(0, FILES);
26088
+ let lookup$1 = opts.dev ? viaLocal.bind(0, dir.endsWith(sep) ? dir : dir + sep, isEtag) : viaCache.bind(0, FILES);
26089
26089
  return function(req$4, res, next) {
26090
26090
  let extns = [""];
26091
26091
  let pathname = parse$1(req$4).pathname;
@@ -27760,7 +27760,12 @@ function indexHtmlMiddleware(root, server) {
27760
27760
  if (url$3?.endsWith(".html") && req$4.headers["sec-fetch-dest"] !== "script") {
27761
27761
  let filePath;
27762
27762
  if (isDev && url$3.startsWith(FS_PREFIX)) filePath = decodeURIComponent(fsPathFromId(url$3));
27763
- else filePath = path.join(root, decodeURIComponent(url$3));
27763
+ else filePath = normalizePath(path.resolve(path.join(root, decodeURIComponent(url$3))));
27764
+ if (isDev) {
27765
+ const servingAccessResult = checkLoadingAccess(server.config, filePath);
27766
+ if (servingAccessResult === "denied") return respondWithAccessDenied(filePath, server, res);
27767
+ if (servingAccessResult === "fallback") return next();
27768
+ } else if (!isParentDirectory(root, filePath)) return next();
27764
27769
  if (fs.existsSync(filePath)) {
27765
27770
  const headers = isDev ? server.config.server.headers : server.config.preview.headers;
27766
27771
  try {
@@ -30933,7 +30938,7 @@ function createFilterForTransform(idFilter, codeFilter, cwd) {
30933
30938
  async function resolvePlugins(config$2, prePlugins, normalPlugins, postPlugins) {
30934
30939
  const isBuild = config$2.command === "build";
30935
30940
  const isWorker = config$2.isWorker;
30936
- const buildPlugins = isBuild ? await (await import("./dep-BHlaQtHS.js")).resolveBuildPlugins(config$2) : {
30941
+ const buildPlugins = isBuild ? await (await import("./dep-BvyJBvVx.js")).resolveBuildPlugins(config$2) : {
30937
30942
  pre: [],
30938
30943
  post: []
30939
30944
  };
@@ -33179,16 +33184,16 @@ function formatStylusSourceMap(mapBefore, root) {
33179
33184
  map$1.sources = map$1.sources.map(resolveFromRoot);
33180
33185
  return map$1;
33181
33186
  }
33182
- async function getSource(source, filename, additionalData, enableSourcemap, sep$3 = "") {
33187
+ async function getSource(source, filename, additionalData, enableSourcemap, sep$4 = "") {
33183
33188
  if (!additionalData) return { content: source };
33184
33189
  if (typeof additionalData === "function") {
33185
33190
  const newContent = await additionalData(source, filename);
33186
33191
  if (typeof newContent === "string") return { content: newContent };
33187
33192
  return newContent;
33188
33193
  }
33189
- if (!enableSourcemap) return { content: additionalData + sep$3 + source };
33194
+ if (!enableSourcemap) return { content: additionalData + sep$4 + source };
33190
33195
  const ms = new MagicString(source);
33191
- ms.appendLeft(0, sep$3);
33196
+ ms.appendLeft(0, sep$4);
33192
33197
  ms.appendLeft(0, additionalData);
33193
33198
  const map$1 = ms.generateMap({ hires: "boundary" });
33194
33199
  map$1.file = filename;
@@ -35836,7 +35841,8 @@ async function preview(inlineConfig = {}) {
35836
35841
  if (config$2.appType === "spa" || config$2.appType === "mpa") app.use(htmlFallbackMiddleware(distDir, config$2.appType === "spa"));
35837
35842
  postHooks.forEach((fn) => fn && fn());
35838
35843
  if (config$2.appType === "spa" || config$2.appType === "mpa") {
35839
- app.use(indexHtmlMiddleware(distDir, server));
35844
+ const normalizedDistDir = normalizePath(distDir);
35845
+ app.use(indexHtmlMiddleware(normalizedDistDir, server));
35840
35846
  app.use(notFoundMiddleware());
35841
35847
  }
35842
35848
  const hostname = await resolveHostname(options$1.host);
@@ -1,4 +1,4 @@
1
1
  import "./dep-SmwnYDP9.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 "./dep-C6pp_iVS.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 "./dep-M_KD0XSK.js";
3
3
 
4
4
  export { optimizeDeps };
@@ -0,0 +1,4 @@
1
+ import "./dep-SmwnYDP9.js";
2
+ import { preview, resolvePreviewOptions } from "./dep-M_KD0XSK.js";
3
+
4
+ export { preview };
package/dist/node/cli.js CHANGED
@@ -574,7 +574,7 @@ const convertBase = (v) => {
574
574
  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`);
575
575
  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) => {
576
576
  filterDuplicateOptions(options);
577
- const { createServer } = await import("./chunks/dep-DMXKBGET.js");
577
+ const { createServer } = await import("./chunks/dep-D_YDhiNx.js");
578
578
  try {
579
579
  const server = await createServer({
580
580
  root,
@@ -630,7 +630,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
630
630
  });
631
631
  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) => {
632
632
  filterDuplicateOptions(options);
633
- const { createBuilder } = await import("./chunks/dep-BHlaQtHS.js");
633
+ const { createBuilder } = await import("./chunks/dep-BvyJBvVx.js");
634
634
  const buildOptions = cleanGlobalCLIOptions(cleanBuilderCLIOptions(options));
635
635
  try {
636
636
  const inlineConfig = {
@@ -655,8 +655,8 @@ cli.command("build [root]", "build for production").option("--target <target>",
655
655
  });
656
656
  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) => {
657
657
  filterDuplicateOptions(options);
658
- const { resolveConfig } = await import("./chunks/dep-t6m959kc.js");
659
- const { optimizeDeps } = await import("./chunks/dep-BkmSwcUW.js");
658
+ const { resolveConfig } = await import("./chunks/dep-Cs9lwdKu.js");
659
+ const { optimizeDeps } = await import("./chunks/dep-cWFO4sv4.js");
660
660
  try {
661
661
  const config = await resolveConfig({
662
662
  root,
@@ -674,7 +674,7 @@ cli.command("optimize [root]", "pre-bundle dependencies (deprecated, the pre-bun
674
674
  });
675
675
  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) => {
676
676
  filterDuplicateOptions(options);
677
- const { preview } = await import("./chunks/dep-DPV9_aqi.js");
677
+ const { preview } = await import("./chunks/dep-yxQqhtZq.js");
678
678
  try {
679
679
  const server = await preview({
680
680
  root,
@@ -3632,6 +3632,13 @@ declare function searchForWorkspaceRoot(current: string, root?: string): string;
3632
3632
  */
3633
3633
  declare function isFileServingAllowed(config: ResolvedConfig, url: string): boolean;
3634
3634
  declare function isFileServingAllowed(url: string, server: ViteDevServer): boolean;
3635
+ /**
3636
+ * Warning: parameters are not validated, only works with normalized absolute paths
3637
+ *
3638
+ * @param targetPath - normalized absolute path
3639
+ * @param filePath - normalized absolute path
3640
+ */
3641
+
3635
3642
  /**
3636
3643
  * Warning: parameters are not validated, only works with normalized absolute paths
3637
3644
  */
@@ -1,5 +1,5 @@
1
1
  import { DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_EXTERNAL_CONDITIONS, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, VERSION, createLogger, defaultAllowedOrigins } from "./chunks/dep-SmwnYDP9.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/dep-C6pp_iVS.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/dep-M_KD0XSK.js";
3
3
  import { parseAst, parseAstAsync } from "rollup/parseAst";
4
4
  import { version as esbuildVersion } from "esbuild";
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "7.1.4",
3
+ "version": "7.1.5",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -73,26 +73,26 @@
73
73
  "picomatch": "^4.0.3",
74
74
  "postcss": "^8.5.6",
75
75
  "rollup": "^4.43.0",
76
- "tinyglobby": "^0.2.14"
76
+ "tinyglobby": "^0.2.15"
77
77
  },
78
78
  "optionalDependencies": {
79
79
  "fsevents": "~2.3.3"
80
80
  },
81
81
  "devDependencies": {
82
- "@babel/parser": "^7.28.3",
82
+ "@babel/parser": "^7.28.4",
83
83
  "@jridgewell/remapping": "^2.3.5",
84
84
  "@jridgewell/trace-mapping": "^0.3.30",
85
85
  "@oxc-project/types": "0.81.0",
86
86
  "@polka/compression": "^1.0.0-next.25",
87
- "@rolldown/pluginutils": "^1.0.0-beta.34",
87
+ "@rolldown/pluginutils": "^1.0.0-beta.35",
88
88
  "@rollup/plugin-alias": "^5.1.1",
89
89
  "@rollup/plugin-commonjs": "^28.0.6",
90
90
  "@rollup/plugin-dynamic-import-vars": "2.1.4",
91
- "@rollup/pluginutils": "^5.2.0",
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.0",
95
- "baseline-browser-mapping": "^2.7.2",
95
+ "baseline-browser-mapping": "^2.7.4",
96
96
  "cac": "^6.7.14",
97
97
  "chokidar": "^3.6.0",
98
98
  "connect": "^3.7.0",
@@ -101,8 +101,8 @@
101
101
  "cross-spawn": "^7.0.6",
102
102
  "debug": "^4.4.1",
103
103
  "dep-types": "link:./src/types",
104
- "dotenv": "^17.2.1",
105
- "dotenv-expand": "^12.0.2",
104
+ "dotenv": "^17.2.2",
105
+ "dotenv-expand": "^12.0.3",
106
106
  "es-module-lexer": "^1.7.0",
107
107
  "escape-html": "^1.0.3",
108
108
  "estree-walker": "^3.0.3",
@@ -128,11 +128,11 @@
128
128
  "rolldown": "^1.0.0-beta.32",
129
129
  "rolldown-plugin-dts": "^0.15.6",
130
130
  "rollup-plugin-license": "^3.6.0",
131
- "sass": "^1.91.0",
132
- "sass-embedded": "^1.91.0",
133
- "sirv": "^3.0.1",
131
+ "sass": "^1.92.1",
132
+ "sass-embedded": "^1.92.1",
133
+ "sirv": "^3.0.2",
134
134
  "strip-literal": "^3.0.0",
135
- "terser": "^5.43.1",
135
+ "terser": "^5.44.0",
136
136
  "tsconfck": "^3.1.6",
137
137
  "types": "link:./types",
138
138
  "ufo": "^1.6.1",
@@ -1,4 +0,0 @@
1
- import "./dep-SmwnYDP9.js";
2
- import { preview, resolvePreviewOptions } from "./dep-C6pp_iVS.js";
3
-
4
- export { preview };