vite 5.4.1 → 5.4.2

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.

@@ -1,4 +1,4 @@
1
- import { C as commonjsGlobal, B as getDefaultExportFromCjs } from './dep-Cy9twKMn.js';
1
+ import { C as commonjsGlobal, B as getDefaultExportFromCjs } from './dep-BzOvws4Y.js';
2
2
  import require$$0__default from 'fs';
3
3
  import require$$0 from 'postcss';
4
4
  import require$$0$1 from 'path';
@@ -2615,7 +2615,7 @@ types.UNIVERSAL = UNIVERSAL;
2615
2615
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
2616
2616
  function _interopRequireWildcard(obj, nodeInterop) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
2617
2617
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
2618
- function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
2618
+ function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike) { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
2619
2619
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
2620
2620
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
2621
2621
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -20344,7 +20344,7 @@ async function fileToUrl$1(id, config, ctx) {
20344
20344
  return fileToBuiltUrl(id, config, ctx);
20345
20345
  }
20346
20346
  }
20347
- function fileToDevUrl(id, config) {
20347
+ function fileToDevUrl(id, config, skipBase = false) {
20348
20348
  let rtn;
20349
20349
  if (checkPublicFile(id, config)) {
20350
20350
  rtn = id;
@@ -20353,6 +20353,9 @@ function fileToDevUrl(id, config) {
20353
20353
  } else {
20354
20354
  rtn = path$n.posix.join(FS_PREFIX, id);
20355
20355
  }
20356
+ if (skipBase) {
20357
+ return rtn;
20358
+ }
20356
20359
  const base = joinUrlSegments(config.server?.origin ?? "", config.decodedBase);
20357
20360
  return joinUrlSegments(base, removeLeadingSlash(rtn));
20358
20361
  }
@@ -20408,14 +20411,15 @@ async function fileToBuiltUrl(id, config, pluginContext, skipPublicCheck = false
20408
20411
  } else {
20409
20412
  const { search, hash } = parse$h(id);
20410
20413
  const postfix = (search || "") + (hash || "");
20414
+ const originalFileName = normalizePath$3(path$n.relative(config.root, file));
20411
20415
  const referenceId = pluginContext.emitFile({
20416
+ type: "asset",
20412
20417
  // Ignore directory structure for asset file names
20413
20418
  name: path$n.basename(file),
20414
- type: "asset",
20419
+ originalFileName,
20415
20420
  source: content
20416
20421
  });
20417
- const originalName = normalizePath$3(path$n.relative(config.root, file));
20418
- generatedAssets.get(config).set(referenceId, { originalName });
20422
+ generatedAssets.get(config).set(referenceId, { originalFileName });
20419
20423
  url = `__VITE_ASSET__${referenceId}__${postfix ? `$_${postfix}__` : ``}`;
20420
20424
  }
20421
20425
  cache.set(id, url);
@@ -20526,40 +20530,42 @@ function manifestPlugin(config) {
20526
20530
  if (isEntry) manifestChunk.isEntry = true;
20527
20531
  return manifestChunk;
20528
20532
  }
20529
- const fileNameToAssetMeta = /* @__PURE__ */ new Map();
20530
20533
  const assets = generatedAssets.get(config);
20531
- assets.forEach((asset, referenceId) => {
20532
- try {
20533
- const fileName = this.getFileName(referenceId);
20534
- fileNameToAssetMeta.set(fileName, asset);
20535
- } catch (error) {
20536
- assets.delete(referenceId);
20534
+ const entryCssAssetFileNames = /* @__PURE__ */ new Set();
20535
+ for (const [id, asset] of assets.entries()) {
20536
+ if (asset.isEntry) {
20537
+ try {
20538
+ const fileName = this.getFileName(id);
20539
+ entryCssAssetFileNames.add(fileName);
20540
+ } catch (error) {
20541
+ assets.delete(id);
20542
+ }
20537
20543
  }
20538
- });
20544
+ }
20539
20545
  const fileNameToAsset = /* @__PURE__ */ new Map();
20540
20546
  for (const file in bundle) {
20541
20547
  const chunk = bundle[file];
20542
20548
  if (chunk.type === "chunk") {
20543
20549
  manifest[getChunkName(chunk)] = createChunk(chunk);
20544
20550
  } else if (chunk.type === "asset" && typeof chunk.name === "string") {
20545
- const assetMeta = fileNameToAssetMeta.get(chunk.fileName);
20546
- const src = assetMeta?.originalName ?? chunk.name;
20547
- const asset = createAsset(chunk, src, assetMeta?.isEntry);
20551
+ const src = chunk.originalFileName ?? chunk.name;
20552
+ const isEntry = entryCssAssetFileNames.has(chunk.fileName);
20553
+ const asset = createAsset(chunk, src, isEntry);
20548
20554
  const file2 = manifest[src]?.file;
20549
20555
  if (file2 && endsWithJSRE.test(file2)) continue;
20550
20556
  manifest[src] = asset;
20551
20557
  fileNameToAsset.set(chunk.fileName, asset);
20552
20558
  }
20553
20559
  }
20554
- assets.forEach(({ originalName }, referenceId) => {
20555
- if (!manifest[originalName]) {
20560
+ for (const [referenceId, { originalFileName }] of assets.entries()) {
20561
+ if (!manifest[originalFileName]) {
20556
20562
  const fileName = this.getFileName(referenceId);
20557
20563
  const asset = fileNameToAsset.get(fileName);
20558
20564
  if (asset) {
20559
- manifest[originalName] = asset;
20565
+ manifest[originalFileName] = asset;
20560
20566
  }
20561
20567
  }
20562
- });
20568
+ }
20563
20569
  outputCount++;
20564
20570
  const output = config.build.rollupOptions?.output;
20565
20571
  const outputLength = Array.isArray(output) ? output.length : 1;
@@ -32456,9 +32462,6 @@ function getFirstKeyStartProps(prev) {
32456
32462
  break loop;
32457
32463
  }
32458
32464
  }
32459
- while (prev[++i]?.type === 'space') {
32460
- /* loop */
32461
- }
32462
32465
  return prev.splice(i, prev.length);
32463
32466
  }
32464
32467
  function fixFlowSeqItems(fc) {
@@ -35601,6 +35604,7 @@ ${js}`;
35601
35604
  );
35602
35605
  this.emitFile({
35603
35606
  type: "asset",
35607
+ originalFileName: normalizedId,
35604
35608
  fileName: shortEmitName,
35605
35609
  source: result
35606
35610
  });
@@ -36163,8 +36167,9 @@ function cssPostPlugin(config) {
36163
36167
  } else {
36164
36168
  return path$n.dirname(
36165
36169
  assetFileNames({
36166
- name: cssAssetName,
36167
36170
  type: "asset",
36171
+ name: cssAssetName,
36172
+ originalFileName: null,
36168
36173
  source: "/* vite internal call, ignore */"
36169
36174
  })
36170
36175
  );
@@ -36334,9 +36339,9 @@ function cssPostPlugin(config) {
36334
36339
  while (match = cssUrlAssetRE.exec(code)) {
36335
36340
  const [full, idHex] = match;
36336
36341
  const id = Buffer.from(idHex, "hex").toString();
36337
- const originalFilename = cleanUrl(id);
36342
+ const originalFileName = cleanUrl(id);
36338
36343
  const cssAssetName = ensureFileExt(
36339
- path$n.basename(originalFilename),
36344
+ path$n.basename(originalFileName),
36340
36345
  ".css"
36341
36346
  );
36342
36347
  if (!styles.has(id)) {
@@ -36348,7 +36353,7 @@ function cssPostPlugin(config) {
36348
36353
  cssContent = resolveAssetUrlsInCss(cssContent, cssAssetName);
36349
36354
  urlEmitTasks.push({
36350
36355
  cssAssetName,
36351
- originalFilename,
36356
+ originalFileName,
36352
36357
  content: cssContent,
36353
36358
  start: match.index,
36354
36359
  end: match.index + full.length
@@ -36370,17 +36375,18 @@ function cssPostPlugin(config) {
36370
36375
  s ||= new MagicString(code);
36371
36376
  for (const {
36372
36377
  cssAssetName,
36373
- originalFilename,
36378
+ originalFileName,
36374
36379
  content,
36375
36380
  start,
36376
36381
  end
36377
36382
  } of urlEmitTasks) {
36378
36383
  const referenceId = this.emitFile({
36379
- name: cssAssetName,
36380
36384
  type: "asset",
36385
+ name: cssAssetName,
36386
+ originalFileName,
36381
36387
  source: content
36382
36388
  });
36383
- generatedAssets.get(config).set(referenceId, { originalName: originalFilename });
36389
+ generatedAssets.get(config).set(referenceId, { originalFileName });
36384
36390
  const filename = this.getFileName(referenceId);
36385
36391
  chunk.viteMetadata.importedAssets.add(cleanUrl(filename));
36386
36392
  const replacement = toOutputFilePathInJS(
@@ -36404,7 +36410,7 @@ function cssPostPlugin(config) {
36404
36410
  const isEntry = chunk.isEntry && isPureCssChunk;
36405
36411
  const cssFullAssetName = ensureFileExt(chunk.name, ".css");
36406
36412
  const cssAssetName = chunk.isEntry && (!chunk.facadeModuleId || !isCSSRequest(chunk.facadeModuleId)) ? path$n.basename(cssFullAssetName) : cssFullAssetName;
36407
- const originalFilename = getChunkOriginalFileName(
36413
+ const originalFileName = getChunkOriginalFileName(
36408
36414
  chunk,
36409
36415
  config.root,
36410
36416
  opts.format
@@ -36414,11 +36420,12 @@ function cssPostPlugin(config) {
36414
36420
  return finalizeCss(chunkCSS, true, config);
36415
36421
  });
36416
36422
  const referenceId = this.emitFile({
36417
- name: cssAssetName,
36418
36423
  type: "asset",
36424
+ name: cssAssetName,
36425
+ originalFileName,
36419
36426
  source: chunkCSS
36420
36427
  });
36421
- generatedAssets.get(config).set(referenceId, { originalName: originalFilename, isEntry });
36428
+ generatedAssets.get(config).set(referenceId, { originalFileName, isEntry });
36422
36429
  chunk.viteMetadata.importedCss.add(this.getFileName(referenceId));
36423
36430
  } else if (!config.build.ssr) {
36424
36431
  chunkCSS = await finalizeCss(chunkCSS, true, config);
@@ -36568,13 +36575,14 @@ function cssAnalysisPlugin(config) {
36568
36575
  const pluginImports = this._addedImports;
36569
36576
  if (pluginImports) {
36570
36577
  const depModules = /* @__PURE__ */ new Set();
36571
- const devBase = config.base;
36572
36578
  for (const file of pluginImports) {
36573
36579
  depModules.add(
36574
36580
  isCSSRequest(file) ? moduleGraph.createFileOnlyEntry(file) : await moduleGraph.ensureEntryFromUrl(
36575
- stripBase(
36576
- await fileToUrl$1(file, config, this),
36577
- (config.server?.origin ?? "") + devBase
36581
+ fileToDevUrl(
36582
+ file,
36583
+ config,
36584
+ /* skipBase */
36585
+ true
36578
36586
  ),
36579
36587
  ssr
36580
36588
  )
@@ -36925,8 +36933,8 @@ function createCachedImport(imp) {
36925
36933
  return cached;
36926
36934
  };
36927
36935
  }
36928
- const importPostcssImport = createCachedImport(() => import('./dep-SDtFYyy1.js').then(function (n) { return n.i; }));
36929
- const importPostcssModules = createCachedImport(() => import('./dep-BkYu-SNl.js').then(function (n) { return n.i; }));
36936
+ const importPostcssImport = createCachedImport(() => import('./dep-CHbHjMYU.js').then(function (n) { return n.i; }));
36937
+ const importPostcssModules = createCachedImport(() => import('./dep-B8yndt7W.js').then(function (n) { return n.i; }));
36930
36938
  const importPostcss = createCachedImport(() => import('postcss'));
36931
36939
  const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
36932
36940
  let alwaysFakeWorkerWorkerControllerCache;
@@ -47548,6 +47556,7 @@ async function bundleWorkerEntry(config, id) {
47548
47556
  } else if (outputChunk2.type === "chunk") {
47549
47557
  saveEmitWorkerAsset(config, {
47550
47558
  fileName: outputChunk2.fileName,
47559
+ originalFileName: null,
47551
47560
  source: outputChunk2.code
47552
47561
  });
47553
47562
  }
@@ -47565,6 +47574,7 @@ function emitSourcemapForWorkerEntry(config, chunk) {
47565
47574
  const mapFileName = chunk.fileName + ".map";
47566
47575
  saveEmitWorkerAsset(config, {
47567
47576
  fileName: mapFileName,
47577
+ originalFileName: null,
47568
47578
  source: data
47569
47579
  });
47570
47580
  }
@@ -47588,6 +47598,7 @@ async function workerFileToUrl(config, id) {
47588
47598
  fileName = outputChunk.fileName;
47589
47599
  saveEmitWorkerAsset(config, {
47590
47600
  fileName,
47601
+ originalFileName: null,
47591
47602
  source: outputChunk.code
47592
47603
  });
47593
47604
  workerMap.bundle.set(id, fileName);
@@ -47812,6 +47823,7 @@ function webWorkerPlugin(config) {
47812
47823
  this.emitFile({
47813
47824
  type: "asset",
47814
47825
  fileName: asset.fileName,
47826
+ originalFileName: asset.originalFileName,
47815
47827
  source: asset.source
47816
47828
  });
47817
47829
  });
@@ -64481,17 +64493,11 @@ function buildImportAnalysisPlugin(config) {
64481
64493
  const insertPreload = !(ssr || !!config.build.lib || isWorker);
64482
64494
  const renderBuiltUrl = config.experimental.renderBuiltUrl;
64483
64495
  const isRelativeBase = config.base === "./" || config.base === "";
64484
- const optimizeModulePreloadRelativePaths = isRelativeBase && !renderBuiltUrl;
64485
64496
  const { modulePreload } = config.build;
64486
64497
  const scriptRel2 = modulePreload && modulePreload.polyfill ? `'modulepreload'` : `(${detectScriptRel.toString()})()`;
64487
- const assetsURL2 = renderBuiltUrl ? (
64488
- // If `experimental.renderBuiltUrl` is used, the dependencies are already resolved.
64489
- // To avoid the need for `new URL(dep, import.meta.url)`, a helper `__vitePreloadRelativeDep` is
64490
- // used to resolve from relative paths which can be minimized.
64491
- `function(dep, importerUrl) { return dep[0] === '.' ? new URL(dep, importerUrl).href : dep }`
64492
- ) : optimizeModulePreloadRelativePaths ? (
64493
- // If there isn't custom resolvers affecting the deps list, deps in the list are relative
64494
- // to the current chunk and are resolved to absolute URL by the __vitePreload helper itself.
64498
+ const assetsURL2 = renderBuiltUrl || isRelativeBase ? (
64499
+ // If `experimental.renderBuiltUrl` is used, the dependencies might be relative to the current chunk.
64500
+ // If relative base is used, the dependencies are relative to the current chunk.
64495
64501
  // The importerUrl is passed as third parameter to __vitePreload in this case
64496
64502
  `function(dep, importerUrl) { return new URL(dep, importerUrl).href }`
64497
64503
  ) : (
@@ -64585,7 +64591,7 @@ function buildImportAnalysisPlugin(config) {
64585
64591
  }
64586
64592
  str().appendRight(
64587
64593
  expEnd,
64588
- `,${isModernFlag}?${preloadMarker}:void 0${optimizeModulePreloadRelativePaths || renderBuiltUrl ? ",import.meta.url" : ""})`
64594
+ `,${isModernFlag}?${preloadMarker}:void 0${renderBuiltUrl || isRelativeBase ? ",import.meta.url" : ""})`
64589
64595
  );
64590
64596
  }
64591
64597
  }
@@ -64808,7 +64814,7 @@ function buildImportAnalysisPlugin(config) {
64808
64814
  (d) => (
64809
64815
  // Don't include the assets dir if the default asset file names
64810
64816
  // are used, the path will be reconstructed by the import preload helper
64811
- optimizeModulePreloadRelativePaths ? addFileDep(toRelativePath(d, file)) : addFileDep(d)
64817
+ isRelativeBase ? addFileDep(toRelativePath(d, file)) : addFileDep(d)
64812
64818
  )
64813
64819
  );
64814
64820
  }
@@ -1,4 +1,4 @@
1
- import { B as getDefaultExportFromCjs } from './dep-Cy9twKMn.js';
1
+ import { B as getDefaultExportFromCjs } from './dep-BzOvws4Y.js';
2
2
  import require$$0 from 'path';
3
3
  import require$$0__default from 'fs';
4
4
  import { l as lib } from './dep-IQS-Za7F.js';
package/dist/node/cli.js CHANGED
@@ -2,7 +2,7 @@ import path from 'node:path';
2
2
  import fs__default from 'node:fs';
3
3
  import { performance } from 'node:perf_hooks';
4
4
  import { EventEmitter } from 'events';
5
- import { A as colors, v as createLogger, r as resolveConfig } from './chunks/dep-Cy9twKMn.js';
5
+ import { A as colors, v as createLogger, r as resolveConfig } from './chunks/dep-BzOvws4Y.js';
6
6
  import { VERSION } from './constants.js';
7
7
  import 'node:fs/promises';
8
8
  import 'node:url';
@@ -730,7 +730,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
730
730
  `[boolean] force the optimizer to ignore the cache and re-bundle`
731
731
  ).action(async (root, options) => {
732
732
  filterDuplicateOptions(options);
733
- const { createServer } = await import('./chunks/dep-Cy9twKMn.js').then(function (n) { return n.E; });
733
+ const { createServer } = await import('./chunks/dep-BzOvws4Y.js').then(function (n) { return n.E; });
734
734
  try {
735
735
  const server = await createServer({
736
736
  root,
@@ -822,7 +822,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
822
822
  `[boolean] force empty outDir when it's outside of root`
823
823
  ).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).action(async (root, options) => {
824
824
  filterDuplicateOptions(options);
825
- const { build } = await import('./chunks/dep-Cy9twKMn.js').then(function (n) { return n.F; });
825
+ const { build } = await import('./chunks/dep-BzOvws4Y.js').then(function (n) { return n.F; });
826
826
  const buildOptions = cleanOptions(options);
827
827
  try {
828
828
  await build({
@@ -851,7 +851,7 @@ cli.command("optimize [root]", "pre-bundle dependencies").option(
851
851
  ).action(
852
852
  async (root, options) => {
853
853
  filterDuplicateOptions(options);
854
- const { optimizeDeps } = await import('./chunks/dep-Cy9twKMn.js').then(function (n) { return n.D; });
854
+ const { optimizeDeps } = await import('./chunks/dep-BzOvws4Y.js').then(function (n) { return n.D; });
855
855
  try {
856
856
  const config = await resolveConfig(
857
857
  {
@@ -877,7 +877,7 @@ ${e.stack}`),
877
877
  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(
878
878
  async (root, options) => {
879
879
  filterDuplicateOptions(options);
880
- const { preview } = await import('./chunks/dep-Cy9twKMn.js').then(function (n) { return n.G; });
880
+ const { preview } = await import('./chunks/dep-BzOvws4Y.js').then(function (n) { return n.G; });
881
881
  try {
882
882
  const server = await preview({
883
883
  root,
@@ -1,6 +1,6 @@
1
1
  export { parseAst, parseAstAsync } from 'rollup/parseAst';
2
- import { i as isInNodeModules, a as arraify } from './chunks/dep-Cy9twKMn.js';
3
- export { b as build, g as buildErrorMessage, k as createFilter, v as createLogger, c as createServer, d as defineConfig, h as fetchModule, f as formatPostcssSourceMap, x as isFileServingAllowed, l as loadConfigFromFile, y as loadEnv, j as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, e as preprocessCSS, p as preview, r as resolveConfig, z as resolveEnvPrefix, q as rollupVersion, w as searchForWorkspaceRoot, u as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-Cy9twKMn.js';
2
+ import { i as isInNodeModules, a as arraify } from './chunks/dep-BzOvws4Y.js';
3
+ export { b as build, g as buildErrorMessage, k as createFilter, v as createLogger, c as createServer, d as defineConfig, h as fetchModule, f as formatPostcssSourceMap, x as isFileServingAllowed, l as loadConfigFromFile, y as loadEnv, j as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, e as preprocessCSS, p as preview, r as resolveConfig, z as resolveEnvPrefix, q as rollupVersion, w as searchForWorkspaceRoot, u as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-BzOvws4Y.js';
4
4
  export { VERSION as version } from './constants.js';
5
5
  export { version as esbuildVersion } from 'esbuild';
6
6
  import { existsSync, readFileSync } from 'node:fs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "5.4.1",
3
+ "version": "5.4.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -74,7 +74,7 @@
74
74
  "dependencies": {
75
75
  "esbuild": "^0.21.3",
76
76
  "postcss": "^8.4.41",
77
- "rollup": "^4.13.0"
77
+ "rollup": "^4.20.0"
78
78
  },
79
79
  "optionalDependencies": {
80
80
  "fsevents": "~2.3.3"