vite 6.3.0 → 6.3.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.

@@ -12103,7 +12103,7 @@ const jsonLangs = `\\.(?:json|json5)(?:$|\\?)`;
12103
12103
  const jsonLangRE = new RegExp(jsonLangs);
12104
12104
  const isJSONRequest = (request) => jsonLangRE.test(request);
12105
12105
  function jsonPlugin(options, isBuild) {
12106
- return {
12106
+ const plugin = {
12107
12107
  name: "vite:json",
12108
12108
  transform: {
12109
12109
  handler(json, id) {
@@ -12171,6 +12171,10 @@ Please use ?url&inline or ?url&no-inline to control JSON file inlining behavior.
12171
12171
  }
12172
12172
  }
12173
12173
  };
12174
+ const handler = plugin.transform.handler;
12175
+ plugin.transform = handler;
12176
+ plugin.transform.handler = handler;
12177
+ return plugin;
12174
12178
  }
12175
12179
  function serializeValue(value) {
12176
12180
  const valueAsString = JSON.stringify(value);
@@ -42945,7 +42949,7 @@ function cssPostPlugin(config) {
42945
42949
  cssBundleNameCache.set(config, cssBundleName);
42946
42950
  return cssBundleName;
42947
42951
  }
42948
- return {
42952
+ const plugin = {
42949
42953
  name: "vite:css-post",
42950
42954
  renderStart() {
42951
42955
  pureCssChunks = /* @__PURE__ */ new Set();
@@ -43359,6 +43363,10 @@ function cssPostPlugin(config) {
43359
43363
  }
43360
43364
  }
43361
43365
  };
43366
+ const handler = plugin.transform.handler;
43367
+ plugin.transform = handler;
43368
+ plugin.transform.handler = handler;
43369
+ return plugin;
43362
43370
  }
43363
43371
  function cssAnalysisPlugin(config) {
43364
43372
  return {
@@ -43826,8 +43834,8 @@ function createCachedImport(imp) {
43826
43834
  return cached;
43827
43835
  };
43828
43836
  }
43829
- const importPostcssImport = createCachedImport(() => import('./dep-KUFMcaC7.js').then(function (n) { return n.i; }));
43830
- const importPostcssModules = createCachedImport(() => import('./dep-CQ6IcQaf.js').then(function (n) { return n.i; }));
43837
+ const importPostcssImport = createCachedImport(() => import('./dep-DYEId0Fh.js').then(function (n) { return n.i; }));
43838
+ const importPostcssModules = createCachedImport(() => import('./dep-yVbOhD1o.js').then(function (n) { return n.i; }));
43831
43839
  const importPostcss = createCachedImport(() => import('postcss'));
43832
43840
  const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
43833
43841
  let alwaysFakeWorkerWorkerControllerCache;
@@ -45170,12 +45178,22 @@ function detectScriptRel() {
45170
45178
  function preload(baseModule, deps, importerUrl) {
45171
45179
  let promise = Promise.resolve();
45172
45180
  if (__VITE_IS_MODERN__ && deps && deps.length > 0) {
45181
+ let allSettled2 = function(promises) {
45182
+ return Promise.all(
45183
+ promises.map(
45184
+ (p) => Promise.resolve(p).then(
45185
+ (value) => ({ status: "fulfilled", value }),
45186
+ (reason) => ({ status: "rejected", reason })
45187
+ )
45188
+ )
45189
+ );
45190
+ };
45173
45191
  const links = document.getElementsByTagName("link");
45174
45192
  const cspNonceMeta = document.querySelector(
45175
45193
  "meta[property=csp-nonce]"
45176
45194
  );
45177
45195
  const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
45178
- promise = Promise.allSettled(
45196
+ promise = allSettled2(
45179
45197
  deps.map((dep) => {
45180
45198
  dep = assetsURL(dep, importerUrl);
45181
45199
  if (dep in seen) return;
@@ -1,4 +1,4 @@
1
- import { P as getDefaultExportFromCjs } from './dep-BuM4AdeL.js';
1
+ import { P as getDefaultExportFromCjs } from './dep-Bxmd1Uxj.js';
2
2
  import require$$0 from 'path';
3
3
  import { l as lib } from './dep-3RmXg9uo.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { Q as commonjsGlobal, P as getDefaultExportFromCjs } from './dep-BuM4AdeL.js';
1
+ import { Q as commonjsGlobal, P as getDefaultExportFromCjs } from './dep-Bxmd1Uxj.js';
2
2
  import require$$0$2 from 'fs';
3
3
  import require$$0 from 'postcss';
4
4
  import require$$0$1 from 'path';
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 { O as colors, I as createLogger, r as resolveConfig } from './chunks/dep-BuM4AdeL.js';
5
+ import { O as colors, I as createLogger, r as resolveConfig } from './chunks/dep-Bxmd1Uxj.js';
6
6
  import { VERSION } from './constants.js';
7
7
  import 'node:fs/promises';
8
8
  import 'node:url';
@@ -748,7 +748,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
748
748
  `[boolean] force the optimizer to ignore the cache and re-bundle`
749
749
  ).action(async (root, options) => {
750
750
  filterDuplicateOptions(options);
751
- const { createServer } = await import('./chunks/dep-BuM4AdeL.js').then(function (n) { return n.S; });
751
+ const { createServer } = await import('./chunks/dep-Bxmd1Uxj.js').then(function (n) { return n.S; });
752
752
  try {
753
753
  const server = await createServer({
754
754
  root,
@@ -843,7 +843,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
843
843
  ).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--app", `[boolean] same as \`builder: {}\``).action(
844
844
  async (root, options) => {
845
845
  filterDuplicateOptions(options);
846
- const { createBuilder } = await import('./chunks/dep-BuM4AdeL.js').then(function (n) { return n.T; });
846
+ const { createBuilder } = await import('./chunks/dep-Bxmd1Uxj.js').then(function (n) { return n.T; });
847
847
  const buildOptions = cleanGlobalCLIOptions(
848
848
  cleanBuilderCLIOptions(options)
849
849
  );
@@ -882,7 +882,7 @@ cli.command(
882
882
  ).action(
883
883
  async (root, options) => {
884
884
  filterDuplicateOptions(options);
885
- const { optimizeDeps } = await import('./chunks/dep-BuM4AdeL.js').then(function (n) { return n.R; });
885
+ const { optimizeDeps } = await import('./chunks/dep-Bxmd1Uxj.js').then(function (n) { return n.R; });
886
886
  try {
887
887
  const config = await resolveConfig(
888
888
  {
@@ -909,7 +909,7 @@ ${e.stack}`),
909
909
  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(
910
910
  async (root, options) => {
911
911
  filterDuplicateOptions(options);
912
- const { preview } = await import('./chunks/dep-BuM4AdeL.js').then(function (n) { return n.U; });
912
+ const { preview } = await import('./chunks/dep-Bxmd1Uxj.js').then(function (n) { return n.U; });
913
913
  try {
914
914
  const server = await preview({
915
915
  root,
@@ -1,6 +1,6 @@
1
1
  export { parseAst, parseAstAsync } from 'rollup/parseAst';
2
- import { a as arraify, i as isInNodeModules, D as DevEnvironment } from './chunks/dep-BuM4AdeL.js';
3
- export { B as BuildEnvironment, f as build, m as buildErrorMessage, g as createBuilder, F as createFilter, h as createIdResolver, I as createLogger, n as createRunnableDevEnvironment, c as createServer, y as createServerHotChannel, w as createServerModuleRunner, x as createServerModuleRunnerTransport, d as defineConfig, v as fetchModule, j as formatPostcssSourceMap, L as isFileLoadingAllowed, K as isFileServingAllowed, q as isRunnableDevEnvironment, l as loadConfigFromFile, M as loadEnv, E as mergeAlias, C as mergeConfig, z as moduleRunnerTransform, A as normalizePath, o as optimizeDeps, p as perEnvironmentPlugin, b as perEnvironmentState, k as preprocessCSS, e as preview, r as resolveConfig, N as resolveEnvPrefix, G as rollupVersion, u as runnerImport, J as searchForWorkspaceRoot, H as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-BuM4AdeL.js';
2
+ import { a as arraify, i as isInNodeModules, D as DevEnvironment } from './chunks/dep-Bxmd1Uxj.js';
3
+ export { B as BuildEnvironment, f as build, m as buildErrorMessage, g as createBuilder, F as createFilter, h as createIdResolver, I as createLogger, n as createRunnableDevEnvironment, c as createServer, y as createServerHotChannel, w as createServerModuleRunner, x as createServerModuleRunnerTransport, d as defineConfig, v as fetchModule, j as formatPostcssSourceMap, L as isFileLoadingAllowed, K as isFileServingAllowed, q as isRunnableDevEnvironment, l as loadConfigFromFile, M as loadEnv, E as mergeAlias, C as mergeConfig, z as moduleRunnerTransform, A as normalizePath, o as optimizeDeps, p as perEnvironmentPlugin, b as perEnvironmentState, k as preprocessCSS, e as preview, r as resolveConfig, N as resolveEnvPrefix, G as rollupVersion, u as runnerImport, J as searchForWorkspaceRoot, H as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-Bxmd1Uxj.js';
4
4
  export { defaultAllowedOrigins, DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, VERSION as version } from './constants.js';
5
5
  export { version as esbuildVersion } from 'esbuild';
6
6
  import 'node:fs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "6.3.0",
3
+ "version": "6.3.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",