vite 7.2.2 → 7.2.4

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,6 +1,6 @@
1
1
  import "@vite/env";
2
2
 
3
- //#region \0@oxc-project+runtime@0.96.0/helpers/typeof.js
3
+ //#region \0@oxc-project+runtime@0.97.0/helpers/typeof.js
4
4
  function _typeof(o) {
5
5
  "@babel/helpers - typeof";
6
6
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
@@ -11,7 +11,7 @@ function _typeof(o) {
11
11
  }
12
12
 
13
13
  //#endregion
14
- //#region \0@oxc-project+runtime@0.96.0/helpers/toPrimitive.js
14
+ //#region \0@oxc-project+runtime@0.97.0/helpers/toPrimitive.js
15
15
  function toPrimitive(t, r) {
16
16
  if ("object" != _typeof(t) || !t) return t;
17
17
  var e = t[Symbol.toPrimitive];
@@ -24,14 +24,14 @@ function toPrimitive(t, r) {
24
24
  }
25
25
 
26
26
  //#endregion
27
- //#region \0@oxc-project+runtime@0.96.0/helpers/toPropertyKey.js
27
+ //#region \0@oxc-project+runtime@0.97.0/helpers/toPropertyKey.js
28
28
  function toPropertyKey(t) {
29
29
  var i = toPrimitive(t, "string");
30
30
  return "symbol" == _typeof(i) ? i : i + "";
31
31
  }
32
32
 
33
33
  //#endregion
34
- //#region \0@oxc-project+runtime@0.96.0/helpers/defineProperty.js
34
+ //#region \0@oxc-project+runtime@0.97.0/helpers/defineProperty.js
35
35
  function _defineProperty(e, r, t) {
36
36
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
37
37
  value: t,
@@ -1,4 +1,4 @@
1
1
  import "./logger.js";
2
2
  import { A as toOutputFilePathInCss, C as onRollupLog, D as resolveBuilderOptions, E as resolveBuildPlugins, M as toOutputFilePathInJS, N as toOutputFilePathWithoutRuntime, O as resolveLibFilename, S as injectEnvironmentToHooks, T as resolveBuildOutputs, _ as build, b as createBuilder, g as BuildEnvironment, j as toOutputFilePathInHtml, k as resolveUserExternal, v as buildEnvironmentOptionsDefaults, w as resolveBuildEnvironmentOptions, x as createToImportMetaURLBasedRelativeRuntime, y as builderOptionsDefaults } from "./config.js";
3
3
 
4
- export { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime };
4
+ export { createBuilder, resolveBuildPlugins };
@@ -4001,10 +4001,10 @@ var require_is_reference = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
4001
4001
  }) });
4002
4002
 
4003
4003
  //#endregion
4004
- //#region ../../node_modules/.pnpm/@rollup+plugin-commonjs@28.0.6_rollup@4.43.0/node_modules/@rollup/plugin-commonjs/dist/es/index.js
4004
+ //#region ../../node_modules/.pnpm/@rollup+plugin-commonjs@29.0.0_rollup@4.43.0/node_modules/@rollup/plugin-commonjs/dist/es/index.js
4005
4005
  var import_commondir = /* @__PURE__ */ __toESM(require_commondir(), 1);
4006
4006
  var import_is_reference = /* @__PURE__ */ __toESM(require_is_reference(), 1);
4007
- var version$1 = "28.0.6";
4007
+ var version$1 = "29.0.0";
4008
4008
  var peerDependencies = { rollup: "^2.68.0||^3.0.0||^4.0.0" };
4009
4009
  function tryParse(parse$17, code, id) {
4010
4010
  try {
@@ -4340,6 +4340,11 @@ function getEsImportProxy(id, defaultIsModuleExports, moduleSideEffects) {
4340
4340
  syntheticNamedExports: "__moduleExports"
4341
4341
  };
4342
4342
  }
4343
+ function getExternalBuiltinRequireProxy(id) {
4344
+ return `import { createRequire } from 'node:module';
4345
+ const require = createRequire(import.meta.url);
4346
+ export function __require() { return require(${JSON.stringify(id)}); }`;
4347
+ }
4343
4348
  function getCandidatesForExtension(resolved, extension$1) {
4344
4349
  return [resolved + extension$1, `${resolved}${sep$1}index${extension$1}`];
4345
4350
  }
@@ -4402,7 +4407,7 @@ function getResolveId(extensions$1, isPossibleCjsId) {
4402
4407
  }
4403
4408
  };
4404
4409
  }
4405
- function getRequireResolver(extensions$1, detectCyclesAndConditional, currentlyResolving) {
4410
+ function getRequireResolver(extensions$1, detectCyclesAndConditional, currentlyResolving, requireNodeBuiltins) {
4406
4411
  const knownCjsModuleTypes = Object.create(null);
4407
4412
  const requiredIds = Object.create(null);
4408
4413
  const unconditionallyRequiredIds = Object.create(null);
@@ -4501,13 +4506,27 @@ function getRequireResolver(extensions$1, detectCyclesAndConditional, currentlyR
4501
4506
  parentMeta.isCommonJS = getTypeForFullyAnalyzedModule(parentId);
4502
4507
  fullyAnalyzedModules[parentId] = true;
4503
4508
  return requireTargets.map(({ id: dependencyId, allowProxy }, index) => {
4504
- const isCommonJS = parentMeta.isRequiredCommonJS[dependencyId] = getTypeForFullyAnalyzedModule(dependencyId);
4509
+ let isCommonJS = parentMeta.isRequiredCommonJS[dependencyId] = getTypeForFullyAnalyzedModule(dependencyId);
4510
+ const isExternalWrapped = isWrappedId(dependencyId, EXTERNAL_SUFFIX);
4511
+ let resolvedDependencyId = dependencyId;
4512
+ if (requireNodeBuiltins === true) {
4513
+ if (parentMeta.isCommonJS === IS_WRAPPED_COMMONJS && !allowProxy && isExternalWrapped) {
4514
+ if (unwrapId$1(dependencyId, EXTERNAL_SUFFIX).startsWith("node:")) {
4515
+ isCommonJS = IS_WRAPPED_COMMONJS;
4516
+ parentMeta.isRequiredCommonJS[dependencyId] = isCommonJS;
4517
+ }
4518
+ } else if (isExternalWrapped && !allowProxy) {
4519
+ const actualExternalId = unwrapId$1(dependencyId, EXTERNAL_SUFFIX);
4520
+ if (actualExternalId.startsWith("node:")) resolvedDependencyId = actualExternalId;
4521
+ }
4522
+ }
4505
4523
  const isWrappedCommonJS = isCommonJS === IS_WRAPPED_COMMONJS;
4506
4524
  fullyAnalyzedModules[dependencyId] = true;
4525
+ const moduleInfo = isWrappedCommonJS && !isExternalWrapped ? rollupContext.getModuleInfo(dependencyId) : null;
4507
4526
  return {
4508
- wrappedModuleSideEffects: isWrappedCommonJS && rollupContext.getModuleInfo(dependencyId).moduleSideEffects,
4527
+ wrappedModuleSideEffects: !isWrappedCommonJS ? false : moduleInfo?.moduleSideEffects ?? true,
4509
4528
  source: sources[index].source,
4510
- id: allowProxy ? wrapId$1(dependencyId, isWrappedCommonJS ? WRAPPED_SUFFIX : PROXY_SUFFIX) : dependencyId,
4529
+ id: allowProxy ? wrapId$1(resolvedDependencyId, isWrappedCommonJS ? WRAPPED_SUFFIX : PROXY_SUFFIX) : resolvedDependencyId,
4511
4530
  isCommonJS
4512
4531
  };
4513
4532
  });
@@ -5087,7 +5106,7 @@ function ${requireName} () {
5087
5106
  }
5088
5107
  const PLUGIN_NAME = "commonjs";
5089
5108
  function commonjs(options$1 = {}) {
5090
- const { ignoreGlobal, ignoreDynamicRequires, requireReturnsDefault: requireReturnsDefaultOption, defaultIsModuleExports: defaultIsModuleExportsOption, esmExternals } = options$1;
5109
+ const { ignoreGlobal, ignoreDynamicRequires, requireReturnsDefault: requireReturnsDefaultOption, defaultIsModuleExports: defaultIsModuleExportsOption, esmExternals, requireNodeBuiltins = false } = options$1;
5091
5110
  const extensions$1 = options$1.extensions || [".js"];
5092
5111
  const filter$1 = createFilter$2(options$1.include, options$1.exclude);
5093
5112
  const isPossibleCjsId = (id) => {
@@ -5154,7 +5173,7 @@ function commonjs(options$1 = {}) {
5154
5173
  const nodeResolve = plugins$1.find(({ name }) => name === "node-resolve");
5155
5174
  if (nodeResolve) validateVersion(nodeResolve.version, "^13.0.6", "@rollup/plugin-node-resolve");
5156
5175
  if (options$1.namedExports != null) this.warn("The namedExports option from \"@rollup/plugin-commonjs\" is deprecated. Named exports are now handled automatically.");
5157
- requireResolver = getRequireResolver(extensions$1, detectCyclesAndConditional, currentlyResolving);
5176
+ requireResolver = getRequireResolver(extensions$1, detectCyclesAndConditional, currentlyResolving, requireNodeBuiltins);
5158
5177
  },
5159
5178
  buildEnd() {
5160
5179
  if (options$1.strictRequires === "debug") {
@@ -5189,6 +5208,7 @@ function commonjs(options$1 = {}) {
5189
5208
  }
5190
5209
  if (isWrappedId(id, EXTERNAL_SUFFIX)) {
5191
5210
  const actualId = unwrapId$1(id, EXTERNAL_SUFFIX);
5211
+ if (requireNodeBuiltins === true && actualId.startsWith("node:")) return getExternalBuiltinRequireProxy(actualId);
5192
5212
  return getUnknownRequireProxy(actualId, isEsmExternal(actualId) ? getRequireReturnsDefault(actualId) : true);
5193
5213
  }
5194
5214
  if (id.endsWith(ENTRY_SUFFIX)) {
@@ -6360,7 +6380,7 @@ async function transformWithEsbuild(code, filename, options$1, inMap, config$2,
6360
6380
  }
6361
6381
  }
6362
6382
  function esbuildPlugin(config$2) {
6363
- const { jsxInject, include, exclude,...esbuildTransformOptions } = config$2.esbuild;
6383
+ const { jsxInject, include, exclude, ...esbuildTransformOptions } = config$2.esbuild;
6364
6384
  const filter$1 = createFilter(include || /\.(m?ts|[jt]sx)$/, exclude || /\.js$/);
6365
6385
  const transformOptions = {
6366
6386
  target: "esnext",
@@ -7313,7 +7333,7 @@ function hasESMSyntax(code, opts = {}) {
7313
7333
  }
7314
7334
 
7315
7335
  //#endregion
7316
- //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.46/node_modules/@rolldown/pluginutils/dist/simple-filters.js
7336
+ //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.50/node_modules/@rolldown/pluginutils/dist/simple-filters.js
7317
7337
  /**
7318
7338
  * Constructs a RegExp that matches the exact string specified.
7319
7339
  *
@@ -9579,8 +9599,8 @@ var require_main = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv
9579
9599
 
9580
9600
  //#endregion
9581
9601
  //#region src/node/env.ts
9582
- var import_main = /* @__PURE__ */ __toESM(require_main$1(), 1);
9583
- var import_main$1 = /* @__PURE__ */ __toESM(require_main(), 1);
9602
+ var import_main = require_main$1();
9603
+ var import_main$1 = require_main();
9584
9604
  const debug$14 = createDebugger("vite:env");
9585
9605
  function getEnvFilesForMode(mode, envDir) {
9586
9606
  if (envDir !== false) return [
@@ -15148,8 +15168,8 @@ var require_shell_quote = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
15148
15168
  }) });
15149
15169
 
15150
15170
  //#endregion
15151
- //#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/macos.js
15152
- var require_macos = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/macos.js": ((exports, module) => {
15171
+ //#region ../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/editor-info/macos.js
15172
+ var require_macos = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/editor-info/macos.js": ((exports, module) => {
15153
15173
  module.exports = {
15154
15174
  "/Applications/Atom.app/Contents/MacOS/Atom": "atom",
15155
15175
  "/Applications/Atom Beta.app/Contents/MacOS/Atom Beta": "/Applications/Atom Beta.app/Contents/MacOS/Atom Beta",
@@ -15181,8 +15201,8 @@ var require_macos = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launc
15181
15201
  }) });
15182
15202
 
15183
15203
  //#endregion
15184
- //#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/linux.js
15185
- var require_linux = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/linux.js": ((exports, module) => {
15204
+ //#region ../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/editor-info/linux.js
15205
+ var require_linux = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/editor-info/linux.js": ((exports, module) => {
15186
15206
  module.exports = {
15187
15207
  atom: "atom",
15188
15208
  Brackets: "brackets",
@@ -15190,6 +15210,7 @@ var require_linux = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launc
15190
15210
  code: "code",
15191
15211
  vscodium: "vscodium",
15192
15212
  codium: "codium",
15213
+ cursor: "cursor",
15193
15214
  trae: "trae",
15194
15215
  emacs: "emacs",
15195
15216
  gvim: "gvim",
@@ -15214,8 +15235,8 @@ var require_linux = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launc
15214
15235
  }) });
15215
15236
 
15216
15237
  //#endregion
15217
- //#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/windows.js
15218
- var require_windows$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/windows.js": ((exports, module) => {
15238
+ //#region ../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/editor-info/windows.js
15239
+ var require_windows$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/editor-info/windows.js": ((exports, module) => {
15219
15240
  module.exports = [
15220
15241
  "Brackets.exe",
15221
15242
  "Code.exe",
@@ -15246,8 +15267,8 @@ var require_windows$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/l
15246
15267
  }) });
15247
15268
 
15248
15269
  //#endregion
15249
- //#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/guess.js
15250
- var require_guess = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/guess.js": ((exports, module) => {
15270
+ //#region ../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/guess.js
15271
+ var require_guess = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/guess.js": ((exports, module) => {
15251
15272
  const path$8 = __require("path");
15252
15273
  const shellQuote = require_shell_quote();
15253
15274
  const childProcess$2 = __require("child_process");
@@ -15308,8 +15329,8 @@ var require_guess = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launc
15308
15329
  }) });
15309
15330
 
15310
15331
  //#endregion
15311
- //#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/get-args.js
15312
- var require_get_args = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/get-args.js": ((exports, module) => {
15332
+ //#region ../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/get-args.js
15333
+ var require_get_args = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/get-args.js": ((exports, module) => {
15313
15334
  const path$7 = __require("path");
15314
15335
  module.exports = function getArgumentsForPosition$1(editor, fileName, lineNumber, columnNumber = 1) {
15315
15336
  switch (path$7.basename(editor).replace(/\.(exe|cmd|bat)$/i, "")) {
@@ -15387,8 +15408,8 @@ var require_get_args = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/la
15387
15408
  }) });
15388
15409
 
15389
15410
  //#endregion
15390
- //#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/index.js
15391
- var require_launch_editor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/index.js": ((exports, module) => {
15411
+ //#region ../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/index.js
15412
+ var require_launch_editor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/index.js": ((exports, module) => {
15392
15413
  /**
15393
15414
  * Copyright (c) 2015-present, Facebook, Inc.
15394
15415
  *
@@ -15487,8 +15508,8 @@ var require_launch_editor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
15487
15508
  }) });
15488
15509
 
15489
15510
  //#endregion
15490
- //#region ../../node_modules/.pnpm/launch-editor-middleware@2.11.1/node_modules/launch-editor-middleware/index.js
15491
- 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) => {
15511
+ //#region ../../node_modules/.pnpm/launch-editor-middleware@2.12.0/node_modules/launch-editor-middleware/index.js
15512
+ var require_launch_editor_middleware = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor-middleware@2.12.0/node_modules/launch-editor-middleware/index.js": ((exports, module) => {
15492
15513
  const path$5 = __require("path");
15493
15514
  const launch = require_launch_editor();
15494
15515
  module.exports = (specifiedEditor, srcRoot, onErrorCallback) => {
@@ -17202,12 +17223,17 @@ function execAsync(command, options$1) {
17202
17223
  //#endregion
17203
17224
  //#region src/node/shortcuts.ts
17204
17225
  var import_picocolors$23 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
17205
- function bindCLIShortcuts(server, opts) {
17206
- if (!server.httpServer || !process.stdin.isTTY || process.env.CI) return;
17226
+ function bindCLIShortcuts(server, opts, enabled$1 = process.stdin.isTTY && !process.env.CI) {
17227
+ if (!server.httpServer || !enabled$1) return;
17207
17228
  const isDev = isDevServer(server);
17208
- if (isDev) server._shortcutsOptions = opts;
17229
+ const customShortcuts = opts?.customShortcuts ?? [];
17230
+ for (const shortcut of server._shortcutsOptions?.customShortcuts ?? []) if (!customShortcuts.some((s$2) => s$2.key === shortcut.key)) customShortcuts.push(shortcut);
17231
+ server._shortcutsOptions = {
17232
+ ...opts,
17233
+ customShortcuts
17234
+ };
17209
17235
  if (opts?.print) server.config.logger.info(import_picocolors$23.default.dim(import_picocolors$23.default.green(" ➜")) + import_picocolors$23.default.dim(" press ") + import_picocolors$23.default.bold("h + enter") + import_picocolors$23.default.dim(" to show help"));
17210
- const shortcuts = (opts?.customShortcuts ?? []).concat(isDev ? BASE_DEV_SHORTCUTS : BASE_PREVIEW_SHORTCUTS);
17236
+ const shortcuts = customShortcuts.concat(isDev ? BASE_DEV_SHORTCUTS : BASE_PREVIEW_SHORTCUTS);
17211
17237
  let actionRunning = false;
17212
17238
  const onInput = async (input) => {
17213
17239
  if (actionRunning) return;
@@ -17228,9 +17254,12 @@ function bindCLIShortcuts(server, opts) {
17228
17254
  await shortcut.action(server);
17229
17255
  actionRunning = false;
17230
17256
  };
17231
- const rl = readline.createInterface({ input: process.stdin });
17232
- rl.on("line", onInput);
17233
- server.httpServer.on("close", () => rl.close());
17257
+ if (!server._rl) {
17258
+ const rl = readline.createInterface({ input: process.stdin });
17259
+ server._rl = rl;
17260
+ server.httpServer.on("close", () => rl.close());
17261
+ } else server._rl.removeAllListeners("line");
17262
+ server._rl.on("line", onInput);
17234
17263
  }
17235
17264
  const BASE_DEV_SHORTCUTS = [
17236
17265
  {
@@ -17311,7 +17340,7 @@ function resolveEmptyOutDir(emptyOutDir, root, outDirs, logger) {
17311
17340
  return true;
17312
17341
  }
17313
17342
  function resolveChokidarOptions(options$1, resolvedOutDirs, emptyOutDir, cacheDir) {
17314
- const { ignored: ignoredList,...otherOptions } = options$1 ?? {};
17343
+ const { ignored: ignoredList, ...otherOptions } = options$1 ?? {};
17315
17344
  const ignored = [
17316
17345
  "**/.git/**",
17317
17346
  "**/node_modules/**",
@@ -32058,7 +32087,7 @@ async function computeEntries(environment) {
32058
32087
  }
32059
32088
  async function prepareEsbuildScanner(environment, entries, deps, missing) {
32060
32089
  const plugin = esbuildScanPlugin(environment, deps, missing, entries);
32061
- const { plugins: plugins$1 = [],...esbuildOptions } = environment.config.optimizeDeps.esbuildOptions ?? {};
32090
+ const { plugins: plugins$1 = [], ...esbuildOptions } = environment.config.optimizeDeps.esbuildOptions ?? {};
32062
32091
  let tsconfigRaw = esbuildOptions.tsconfigRaw;
32063
32092
  if (!tsconfigRaw && !esbuildOptions.tsconfig) {
32064
32093
  const { tsconfig } = await loadTsconfigJsonForFile(path.join(environment.config.root, "_dummy.js"));
@@ -32631,7 +32660,7 @@ function runOptimizeDeps(environment, depsInfo) {
32631
32660
  const processingCacheDirOutputPath = path.relative(process.cwd(), processingCacheDir);
32632
32661
  for (const id in depsInfo) {
32633
32662
  const output = esbuildOutputFromId(meta.outputs, id, processingCacheDir);
32634
- const { exportsData,...info } = depsInfo[id];
32663
+ const { exportsData, ...info } = depsInfo[id];
32635
32664
  addOptimizedDepInfo(metadata, "optimized", {
32636
32665
  ...info,
32637
32666
  fileHash: getHash(metadata.hash + depsInfo[id].file + JSON.stringify(output.imports)),
@@ -32690,7 +32719,7 @@ async function prepareEsbuildOptimizerRun(environment, depsInfo, processingCache
32690
32719
  const flatIdDeps = {};
32691
32720
  const idToExports = {};
32692
32721
  const { optimizeDeps: optimizeDeps$1 } = environment.config;
32693
- const { plugins: pluginsFromConfig = [],...esbuildOptions } = optimizeDeps$1.esbuildOptions ?? {};
32722
+ const { plugins: pluginsFromConfig = [], ...esbuildOptions } = optimizeDeps$1.esbuildOptions ?? {};
32694
32723
  await Promise.all(Object.keys(depsInfo).map(async (id) => {
32695
32724
  const src = depsInfo[id].src;
32696
32725
  const exportsData = await (depsInfo[id].exportsData ?? extractExportsData(environment, src));
@@ -33593,7 +33622,7 @@ function loadTerserPath(root) {
33593
33622
  throw new Error("terser not found. Since Vite v3, terser has become an optional dependency. You need to install it.");
33594
33623
  }
33595
33624
  function terserPlugin(config$2) {
33596
- const { maxWorkers,...terserOptions } = config$2.build.terserOptions;
33625
+ const { maxWorkers, ...terserOptions } = config$2.build.terserOptions;
33597
33626
  const makeWorker = () => new WorkerWithFallback(() => async (terserPath$1, code, options$1) => {
33598
33627
  const terser = await import(terserPath$1);
33599
33628
  try {
@@ -33994,7 +34023,7 @@ const _buildEnvironmentOptionsDefaults = Object.freeze({
33994
34023
  const buildEnvironmentOptionsDefaults = _buildEnvironmentOptionsDefaults;
33995
34024
  function resolveBuildEnvironmentOptions(raw, logger, consumer) {
33996
34025
  const deprecatedPolyfillModulePreload = raw.polyfillModulePreload;
33997
- const { polyfillModulePreload,...rest } = raw;
34026
+ const { polyfillModulePreload, ...rest } = raw;
33998
34027
  raw = rest;
33999
34028
  if (deprecatedPolyfillModulePreload !== void 0) logger.warn("polyfillModulePreload is deprecated. Use modulePreload.polyfill instead.");
34000
34029
  if (deprecatedPolyfillModulePreload === false && raw.modulePreload === void 0) raw.modulePreload = { polyfill: false };
@@ -34764,7 +34793,7 @@ function createDepsOptimizer(environment) {
34764
34793
  const metadata$1 = depsOptimizer.metadata;
34765
34794
  for (const dep of Object.keys(metadata$1.optimized)) knownDeps[dep] = { ...metadata$1.optimized[dep] };
34766
34795
  for (const dep of Object.keys(metadata$1.discovered)) {
34767
- const { processing,...info } = metadata$1.discovered[dep];
34796
+ const { processing, ...info } = metadata$1.discovered[dep];
34768
34797
  knownDeps[dep] = info;
34769
34798
  }
34770
34799
  return knownDeps;
@@ -1,4 +1,4 @@
1
1
  import "./logger.js";
2
2
  import { a as resolveBaseUrl, c as sortUserPlugins, i as loadConfigFromFile, n as getDefaultEnvironmentOptions, o as resolveConfig, r as isResolvedConfig, s as resolveDevEnvironmentOptions, t as defineConfig } from "./config.js";
3
3
 
4
- export { defineConfig, getDefaultEnvironmentOptions, isResolvedConfig, loadConfigFromFile, resolveBaseUrl, resolveConfig, resolveDevEnvironmentOptions, sortUserPlugins };
4
+ export { resolveConfig };
@@ -6755,4 +6755,4 @@ function parse(html, options) {
6755
6755
  }
6756
6756
 
6757
6757
  //#endregion
6758
- export { ERR as ErrorCodes, Parser, Tokenizer, TokenizerMode, defaultTreeAdapter, parse };
6758
+ export { parse };
@@ -1,4 +1,4 @@
1
1
  import "./logger.js";
2
2
  import { $ as runOptimizeDeps, B as depsLogString, F as addOptimizedDepInfo, G as initDepsOptimizerMetadata, H as extractExportsData, I as cleanupDepsCacheStaleDirs, J as optimizeDeps, K as isDepOptimizationDisabled, L as createIsOptimizedDepFile, P as addManuallyIncludedOptimizeDeps, Q as optimizedDepNeedsInterop, R as createIsOptimizedDepUrl, U as getDepsCacheDir, V as discoverProjectDependencies, W as getOptimizedDepPath, X as optimizedDepInfoFromFile, Y as optimizeExplicitEnvironmentDeps, Z as optimizedDepInfoFromId, et as toDiscoveredDependencies, q as loadCachedDepOptimizationMetadata, z as depsFromOptimizedDepInfo } from "./config.js";
3
3
 
4
- export { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies };
4
+ export { optimizeDeps };
@@ -1,4 +1,4 @@
1
1
  import "./logger.js";
2
2
  import { d as resolvePreviewOptions, u as preview } from "./config.js";
3
3
 
4
- export { preview, resolvePreviewOptions };
4
+ export { preview };
@@ -1,4 +1,4 @@
1
1
  import "./logger.js";
2
2
  import { at as _createServer, ct as resolveServerOptions, lt as restartServerWithUrls, ot as createServer, st as createServerCloseFn, ut as serverConfigDefaults } from "./config.js";
3
3
 
4
- export { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults };
4
+ export { createServer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "7.2.2",
3
+ "version": "7.2.4",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -84,15 +84,15 @@
84
84
  "@jridgewell/trace-mapping": "^0.3.31",
85
85
  "@oxc-project/types": "0.95.0",
86
86
  "@polka/compression": "^1.0.0-next.25",
87
- "@rolldown/pluginutils": "^1.0.0-beta.44",
87
+ "@rolldown/pluginutils": "^1.0.0-beta.50",
88
88
  "@rollup/plugin-alias": "^5.1.1",
89
- "@rollup/plugin-commonjs": "28.0.6",
89
+ "@rollup/plugin-commonjs": "^29.0.0",
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.20",
95
+ "baseline-browser-mapping": "^2.8.28",
96
96
  "cac": "^6.7.14",
97
97
  "chokidar": "^3.6.0",
98
98
  "connect": "^3.7.0",
@@ -108,7 +108,7 @@
108
108
  "etag": "^1.8.1",
109
109
  "host-validation-middleware": "^0.1.2",
110
110
  "http-proxy-3": "^1.22.0",
111
- "launch-editor-middleware": "^2.11.1",
111
+ "launch-editor-middleware": "^2.12.0",
112
112
  "lightningcss": "^1.30.2",
113
113
  "magic-string": "^0.30.21",
114
114
  "mlly": "^1.8.0",
@@ -124,14 +124,14 @@
124
124
  "postcss-modules": "^6.0.1",
125
125
  "premove": "^4.0.0",
126
126
  "resolve.exports": "^2.0.3",
127
- "rolldown": "^1.0.0-beta.46",
128
- "rolldown-plugin-dts": "^0.17.3",
127
+ "rolldown": "^1.0.0-beta.50",
128
+ "rolldown-plugin-dts": "^0.17.8",
129
129
  "rollup-plugin-license": "^3.6.0",
130
- "sass": "^1.93.2",
131
- "sass-embedded": "^1.93.2",
130
+ "sass": "^1.94.0",
131
+ "sass-embedded": "^1.93.3",
132
132
  "sirv": "^3.0.2",
133
133
  "strip-literal": "^3.1.0",
134
- "terser": "^5.44.0",
134
+ "terser": "^5.44.1",
135
135
  "tsconfck": "^3.1.6",
136
136
  "ufo": "^1.6.1",
137
137
  "ws": "^8.18.3"