vite 6.0.0-alpha.11 → 6.0.0-alpha.13

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.
@@ -15143,20 +15143,20 @@ function terserPlugin(config) {
15143
15143
  }
15144
15144
 
15145
15145
  async function resolveIsolatedPlugins(environment) {
15146
- const userPlugins = [];
15147
- for (const plugin of environment.config.rawPlugins) {
15146
+ const resolvedPlugins = [];
15147
+ for (const plugin of environment.config.plugins) {
15148
15148
  if (typeof plugin === 'function') {
15149
15149
  const isolatedPlugin = await plugin(environment);
15150
15150
  if (isolatedPlugin) {
15151
15151
  const flatPlugins = await asyncFlattenIsolatedPlugin(environment, isolatedPlugin);
15152
- userPlugins.push(...flatPlugins);
15152
+ resolvedPlugins.push(...flatPlugins);
15153
15153
  }
15154
15154
  }
15155
15155
  else {
15156
- userPlugins.push(plugin);
15156
+ resolvedPlugins.push(plugin);
15157
15157
  }
15158
15158
  }
15159
- return environment.config.resolvePlugins(...sortUserPlugins(userPlugins));
15159
+ return resolvedPlugins;
15160
15160
  }
15161
15161
  async function asyncFlattenIsolatedPlugin(environment, plugins) {
15162
15162
  if (!Array.isArray(plugins)) {
@@ -57996,7 +57996,7 @@ function handleParseError(parserError, html, filePath) {
57996
57996
  * Compiles index.html into an entry js module
57997
57997
  */
57998
57998
  function buildHtmlPlugin(config) {
57999
- const [preHooks, normalHooks, postHooks] = resolveHtmlTransforms(config.plugins, config.logger);
57999
+ const [preHooks, normalHooks, postHooks] = resolveHtmlTransforms(config.plugins.filter((plugin) => typeof plugin !== 'function'), config.logger);
58000
58000
  preHooks.unshift(injectCspNonceMetaTagHook(config));
58001
58001
  preHooks.unshift(preImportMapHook(config));
58002
58002
  preHooks.push(htmlEnvHook(config));
@@ -59046,7 +59046,9 @@ function transformMiddleware(server) {
59046
59046
  }
59047
59047
 
59048
59048
  function createDevHtmlTransformFn(config) {
59049
- const [preHooks, normalHooks, postHooks] = resolveHtmlTransforms(config.plugins, config.logger);
59049
+ const [preHooks, normalHooks, postHooks] = resolveHtmlTransforms(
59050
+ // TODO: interaction between transformIndexHtml and plugin constructors
59051
+ config.plugins.filter((plugin) => typeof plugin !== 'function'), config.logger);
59050
59052
  const transformHooks = [
59051
59053
  preImportMapHook(config),
59052
59054
  injectCspNonceMetaTagHook(config),
@@ -61863,11 +61865,11 @@ function getSortedPluginsByHotUpdateHook(plugins) {
61863
61865
  return sortedPlugins;
61864
61866
  }
61865
61867
  const sortedHotUpdatePluginsCache = new WeakMap();
61866
- function getSortedHotUpdatePlugins(config) {
61867
- let sortedPlugins = sortedHotUpdatePluginsCache.get(config);
61868
+ function getSortedHotUpdatePlugins(environment) {
61869
+ let sortedPlugins = sortedHotUpdatePluginsCache.get(environment);
61868
61870
  if (!sortedPlugins) {
61869
- sortedPlugins = getSortedPluginsByHotUpdateHook(config.plugins);
61870
- sortedHotUpdatePluginsCache.set(config, sortedPlugins);
61871
+ sortedPlugins = getSortedPluginsByHotUpdateHook(environment.plugins);
61872
+ sortedHotUpdatePluginsCache.set(environment, sortedPlugins);
61871
61873
  }
61872
61874
  return sortedPlugins;
61873
61875
  }
@@ -61929,7 +61931,7 @@ async function handleHMRUpdate(type, file, server) {
61929
61931
  environment,
61930
61932
  };
61931
61933
  let hmrContext;
61932
- for (const plugin of getSortedHotUpdatePlugins(config)) {
61934
+ for (const plugin of getSortedHotUpdatePlugins(environment)) {
61933
61935
  if (plugin.hotUpdate) {
61934
61936
  const filteredModules = await getHookHandler(plugin.hotUpdate)(hotContext);
61935
61937
  if (filteredModules) {
@@ -63873,11 +63875,12 @@ function clientInjectionsPlugin(config) {
63873
63875
  .replace(`__HMR_CONFIG_NAME__`, hmrConfigNameReplacement);
63874
63876
  };
63875
63877
  },
63876
- async transform(code, id) {
63878
+ async transform(code, id, options) {
63877
63879
  if (!this.environment)
63878
63880
  return;
63879
63881
  // TODO: !environment.options.nodeCompatible ?
63880
- const ssr = this.environment.name !== 'client';
63882
+ // TODO: Remove options?.ssr, Vitest currently hijacks this plugin
63883
+ const ssr = options?.ssr ?? this.environment.name !== 'client';
63881
63884
  if (id === normalizedClientEntry || id === normalizedEnvEntry) {
63882
63885
  return injectConfigValues(code);
63883
63886
  }
@@ -64610,7 +64613,7 @@ function dynamicImportVarsPlugin(config) {
64610
64613
  }
64611
64614
 
64612
64615
  // TODO: import { loadFallbackPlugin } from './loadFallback'
64613
- async function createResolvePlugins(config) {
64616
+ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
64614
64617
  const isBuild = config.command === 'build';
64615
64618
  const isWorker = config.isWorker;
64616
64619
  const buildPlugins = isBuild
@@ -64620,7 +64623,7 @@ async function createResolvePlugins(config) {
64620
64623
  const depsOptimizerEnabled = !isBuild &&
64621
64624
  (isDepsOptimizerEnabled(config, false) ||
64622
64625
  isDepsOptimizerEnabled(config, true));
64623
- const preVitePlugins = [
64626
+ return [
64624
64627
  depsOptimizerEnabled ? optimizedDepsPlugin() : null,
64625
64628
  isBuild ? metadataPlugin() : null,
64626
64629
  !isWorker ? watchPackageDataPlugin(config.packageCache) : null,
@@ -64629,9 +64632,7 @@ async function createResolvePlugins(config) {
64629
64632
  entries: config.resolve.alias,
64630
64633
  customResolver: viteAliasCustomResolver,
64631
64634
  }),
64632
- ];
64633
- // then ...prePlugins
64634
- const normalVitePlugins = [
64635
+ ...prePlugins,
64635
64636
  modulePreload !== false && modulePreload.polyfill
64636
64637
  ? modulePreloadPolyfillPlugin(config)
64637
64638
  : null,
@@ -64655,9 +64656,7 @@ async function createResolvePlugins(config) {
64655
64656
  wasmHelperPlugin(),
64656
64657
  webWorkerPlugin(config),
64657
64658
  assetPlugin(config),
64658
- ];
64659
- // then ...normalPlugins
64660
- const postVitePlugins = [
64659
+ ...normalPlugins,
64661
64660
  wasmFallbackPlugin(),
64662
64661
  definePlugin(config),
64663
64662
  cssPostPlugin(config),
@@ -64667,9 +64666,7 @@ async function createResolvePlugins(config) {
64667
64666
  ...buildPlugins.pre,
64668
64667
  dynamicImportVarsPlugin(config),
64669
64668
  importGlobPlugin(config),
64670
- ];
64671
- // then ...postVitePlugins
64672
- const finalVitePlugins = [
64669
+ ...postPlugins,
64673
64670
  ...buildPlugins.post,
64674
64671
  // internal server-only plugins are always applied after everything else
64675
64672
  ...(isBuild
@@ -64680,18 +64677,7 @@ async function createResolvePlugins(config) {
64680
64677
  importAnalysisPlugin(config),
64681
64678
  // TODO: loadFallbackPlugin(config),
64682
64679
  ]),
64683
- ];
64684
- return (prePlugins, normalPlugins, postPlugins) => {
64685
- return [
64686
- ...preVitePlugins,
64687
- ...prePlugins,
64688
- ...normalVitePlugins,
64689
- ...normalPlugins,
64690
- ...postVitePlugins,
64691
- ...postPlugins,
64692
- ...finalVitePlugins,
64693
- ].filter(Boolean);
64694
- };
64680
+ ].filter(Boolean);
64695
64681
  }
64696
64682
  function createPluginHookUtils(plugins) {
64697
64683
  // sort plugins per hook
@@ -68068,7 +68054,7 @@ function resolveConfigToBuild(inlineConfig = {}, patchConfig, patchPlugins) {
68068
68054
  return resolveConfig(inlineConfig, 'build', 'production', 'production', false, patchConfig, patchPlugins);
68069
68055
  }
68070
68056
  /**
68071
- * Build an App environment, or a App library (if librayOptions is provided)
68057
+ * Build an App environment, or a App library (if libraryOptions is provided)
68072
68058
  **/
68073
68059
  async function buildEnvironment(config, environment, libOptions = false) {
68074
68060
  const options = config.build;
@@ -68106,7 +68092,9 @@ async function buildEnvironment(config, environment, libOptions = false) {
68106
68092
  const outDir = resolve(options.outDir);
68107
68093
  // inject environment and ssr arg to plugin load/transform hooks
68108
68094
  // TODO: rework lib mode
68109
- const plugins = (libOptions ? config : environment).plugins.map((p) => injectEnvironmentToHooks(p, environment));
68095
+ const plugins = (libOptions
68096
+ ? config.plugins.filter((p) => typeof p !== 'function')
68097
+ : environment.plugins).map((p) => injectEnvironmentToHooks(p, environment));
68110
68098
  const rollupOptions = {
68111
68099
  preserveEntrySignatures: ssr
68112
68100
  ? 'allow-extension'
@@ -68702,13 +68690,13 @@ async function createBuilder(inlineConfig = {}) {
68702
68690
  lib: false,
68703
68691
  };
68704
68692
  };
68705
- const patchPlugins = (rawPlugins) => {
68693
+ const patchPlugins = (resolvedPlugins) => {
68706
68694
  // Force opt-in shared plugins
68707
- const environmentPlugins = [...rawPlugins];
68695
+ const environmentPlugins = [...resolvedPlugins];
68708
68696
  let validMixedPlugins = true;
68709
68697
  for (let i = 0; i < environmentPlugins.length; i++) {
68710
68698
  const environmentPlugin = environmentPlugins[i];
68711
- const sharedPlugin = config.rawPlugins[i];
68699
+ const sharedPlugin = config.plugins[i];
68712
68700
  if (config.builder.sharedPlugins ||
68713
68701
  environmentPlugin.sharedDuringBuild) {
68714
68702
  if (environmentPlugin.name !== sharedPlugin.name) {
@@ -68720,7 +68708,7 @@ async function createBuilder(inlineConfig = {}) {
68720
68708
  }
68721
68709
  if (validMixedPlugins) {
68722
68710
  for (let i = 0; i < environmentPlugins.length; i++) {
68723
- rawPlugins[i] = environmentPlugins[i];
68711
+ resolvedPlugins[i] = environmentPlugins[i];
68724
68712
  }
68725
68713
  }
68726
68714
  };
@@ -68892,9 +68880,10 @@ async function preview(inlineConfig = {}) {
68892
68880
  const config = await resolveConfig(inlineConfig, 'serve', 'production', 'production', true);
68893
68881
  const clientOutDir = config.environments.client.build.outDir ?? config.build.outDir;
68894
68882
  const distDir = path$o.resolve(config.root, clientOutDir);
68883
+ const plugins = config.plugins.filter((plugin) => typeof plugin !== 'function');
68895
68884
  if (!fs$l.existsSync(distDir) &&
68896
68885
  // error if no plugins implement `configurePreviewServer`
68897
- config.plugins.every((plugin) => !plugin.configurePreviewServer) &&
68886
+ plugins.every((plugin) => !plugin.configurePreviewServer) &&
68898
68887
  // error if called in CLI only. programmatic usage could access `httpServer`
68899
68888
  // and affect file serving
68900
68889
  process.argv[1]?.endsWith(path$o.normalize('bin/vite.js')) &&
@@ -69186,8 +69175,6 @@ async function resolveConfig(inlineConfig, command, defaultMode = 'development',
69186
69175
  };
69187
69176
  // resolve plugins
69188
69177
  const rawPlugins = (await asyncFlatten(config.plugins || [])).filter(filterPlugin);
69189
- // Backward compatibility hook used in builder, opt-in to shared plugins during build
69190
- patchPlugins?.(rawPlugins);
69191
69178
  const sharedPlugins = rawPlugins.filter((plugin) => typeof plugin !== 'function');
69192
69179
  const [prePlugins, normalPlugins, postPlugins] = sortUserPlugins(sharedPlugins);
69193
69180
  const isBuild = command === 'build';
@@ -69200,7 +69187,7 @@ async function resolveConfig(inlineConfig, command, defaultMode = 'development',
69200
69187
  // There is no perf hit, because the optimizer is initialized only if ssrLoadModule
69201
69188
  // is called.
69202
69189
  // During build, we only build the ssr environment if it is configured
69203
- // through the deprecated ssr top level options or if it is explicitely defined
69190
+ // through the deprecated ssr top level options or if it is explicitly defined
69204
69191
  // in the environments config
69205
69192
  config.environments = { ssr: {}, ...config.environments };
69206
69193
  }
@@ -69382,8 +69369,7 @@ async function resolveConfig(inlineConfig, command, defaultMode = 'development',
69382
69369
  mainConfig: resolved,
69383
69370
  bundleChain,
69384
69371
  };
69385
- const resolveWorkerPlugins = await createResolvePlugins(workerResolved);
69386
- const resolvedWorkerPlugins = resolveWorkerPlugins(workerPrePlugins, workerNormalPlugins, workerPostPlugins);
69372
+ const resolvedWorkerPlugins = (await resolvePlugins(workerResolved, workerPrePlugins, workerNormalPlugins, workerPostPlugins)); // TODO: worker plugins and isolated constructor
69387
69373
  // run configResolved hooks
69388
69374
  await Promise.all(createPluginHookUtils(resolvedWorkerPlugins)
69389
69375
  .getSortedPluginHooks('configResolved')
@@ -69411,8 +69397,6 @@ async function resolveConfig(inlineConfig, command, defaultMode = 'development',
69411
69397
  bundleChain: [],
69412
69398
  isProduction,
69413
69399
  plugins: userPlugins,
69414
- rawPlugins,
69415
- resolvePlugins: null,
69416
69400
  css: resolveCSSOptions(config.css),
69417
69401
  esbuild: config.esbuild === false
69418
69402
  ? false
@@ -69516,16 +69500,18 @@ async function resolveConfig(inlineConfig, command, defaultMode = 'development',
69516
69500
  ...resolved,
69517
69501
  };
69518
69502
  // Backward compatibility hook, modify the resolved config before it is used
69519
- // to create inernal plugins. For example, `config.build.ssr`. Once we rework
69503
+ // to create internal plugins. For example, `config.build.ssr`. Once we rework
69520
69504
  // internal plugins to use environment.options, we can remove the dual
69521
69505
  // patchConfig/patchPlugins and have a single patchConfig before configResolved
69522
69506
  // gets called
69523
69507
  patchConfig?.(resolved);
69524
- const resolvePlugins = await createResolvePlugins(resolved);
69525
- resolved.resolvePlugins = resolvePlugins;
69526
- const resolvedPlugins = resolvePlugins(prePlugins, normalPlugins, postPlugins);
69527
- resolved.plugins = resolvedPlugins;
69528
- Object.assign(resolved, createPluginHookUtils(resolved.plugins));
69508
+ const resolvedPlugins = await resolvePlugins(resolved, prePlugins, normalPlugins, postPlugins);
69509
+ // Backward compatibility hook used in builder, opt-in to shared plugins during build
69510
+ patchPlugins?.(resolvedPlugins);
69511
+ resolved.plugins =
69512
+ resolvedPlugins;
69513
+ // TODO: Deprecate config.getSortedPlugins and config.getSortedPluginHooks
69514
+ Object.assign(resolved, createPluginHookUtils(resolved.plugins.filter((plugin) => typeof plugin !== 'function')));
69529
69515
  // call configResolved hooks
69530
69516
  await Promise.all(resolved
69531
69517
  .getSortedPluginHooks('configResolved')
@@ -69894,4 +69880,4 @@ function optimizeDepsDisabledBackwardCompatibility(resolved, optimizeDeps, optim
69894
69880
  }
69895
69881
  }
69896
69882
 
69897
- export { resolveEnvPrefix as A, BuildEnvironment as B, index as C, DevEnvironment as D, build$1 as E, preview$1 as F, ServerHMRConnector as S, arraify as a, build as b, createServer as c, defineConfig as d, createBuilder as e, formatPostcssSourceMap as f, preprocessCSS as g, buildErrorMessage as h, isInNodeModules$1 as i, createNodeDevEnvironment as j, fetchModule as k, loadConfigFromFile as l, createServerModuleRunner as m, normalizePath$3 as n, mergeConfig as o, preview as p, mergeAlias as q, resolveConfig as r, sortUserPlugins as s, transformWithEsbuild as t, createFilter as u, rollupVersion as v, send$1 as w, searchForWorkspaceRoot as x, isFileServingAllowed as y, loadEnv as z };
69883
+ export { loadEnv as A, BuildEnvironment as B, resolveEnvPrefix as C, DevEnvironment as D, index as E, build$1 as F, preview$1 as G, ServerHMRConnector as S, arraify as a, build as b, createServer as c, defineConfig as d, createBuilder as e, formatPostcssSourceMap as f, preprocessCSS as g, buildErrorMessage as h, isInNodeModules$1 as i, createNodeDevEnvironment as j, fetchModule as k, loadConfigFromFile as l, createServerModuleRunner as m, ssrTransform as n, normalizePath$3 as o, preview as p, mergeConfig as q, resolveConfig as r, sortUserPlugins as s, transformWithEsbuild as t, mergeAlias as u, createFilter as v, rollupVersion as w, send$1 as x, searchForWorkspaceRoot as y, isFileServingAllowed as z };
package/dist/node/cli.js CHANGED
@@ -731,7 +731,7 @@ cli
731
731
  filterDuplicateOptions(options);
732
732
  // output structure is preserved even after bundling so require()
733
733
  // is ok here
734
- const { createServer } = await import('./chunks/dep-CjFMk8-F.js').then(function (n) { return n.C; });
734
+ const { createServer } = await import('./chunks/dep-XbxO4NmM.js').then(function (n) { return n.E; });
735
735
  try {
736
736
  const server = await createServer({
737
737
  root,
@@ -812,7 +812,7 @@ cli
812
812
  .option('--app', `[boolean] same as builder.entireApp`)
813
813
  .action(async (root, options) => {
814
814
  filterDuplicateOptions(options);
815
- const { createBuilder, buildEnvironment } = await import('./chunks/dep-CjFMk8-F.js').then(function (n) { return n.E; });
815
+ const { createBuilder, buildEnvironment } = await import('./chunks/dep-XbxO4NmM.js').then(function (n) { return n.F; });
816
816
  const buildOptions = cleanGlobalCLIOptions(cleanBuilderCLIOptions(options));
817
817
  const config = {
818
818
  root,
@@ -888,7 +888,7 @@ cli
888
888
  .option('--outDir <dir>', `[string] output directory (default: dist)`)
889
889
  .action(async (root, options) => {
890
890
  filterDuplicateOptions(options);
891
- const { preview } = await import('./chunks/dep-CjFMk8-F.js').then(function (n) { return n.F; });
891
+ const { preview } = await import('./chunks/dep-XbxO4NmM.js').then(function (n) { return n.G; });
892
892
  try {
893
893
  const server = await preview({
894
894
  root,
@@ -3861,8 +3861,7 @@ type ResolvedConfig = Readonly<Omit<UserConfig, 'plugins' | 'css' | 'assetsInclu
3861
3861
  resolve: Required<ResolveOptions> & {
3862
3862
  alias: Alias[];
3863
3863
  };
3864
- plugins: readonly Plugin[];
3865
- rawPlugins: readonly (Plugin | IsolatedPluginConstructor)[];
3864
+ plugins: readonly (Plugin | IsolatedPluginConstructor)[];
3866
3865
  css: ResolvedCSSOptions;
3867
3866
  esbuild: ESBuildOptions | false;
3868
3867
  server: ResolvedServerOptions;
@@ -3885,7 +3884,7 @@ interface PluginHookUtils {
3885
3884
  getSortedPluginHooks: <K extends keyof Plugin>(hookName: K) => NonNullable<HookHandler<Plugin[K]>>[];
3886
3885
  }
3887
3886
  type ResolveFn = (id: string, importer?: string, aliasOnly?: boolean, ssr?: boolean) => Promise<string | undefined>;
3888
- declare function resolveConfig(inlineConfig: InlineConfig, command: 'build' | 'serve', defaultMode?: string, defaultNodeEnv?: string, isPreview?: boolean, patchConfig?: ((config: ResolvedConfig) => void) | undefined, patchPlugins?: ((plugins: (Plugin | IsolatedPluginConstructor)[]) => void) | undefined): Promise<ResolvedConfig>;
3887
+ declare function resolveConfig(inlineConfig: InlineConfig, command: 'build' | 'serve', defaultMode?: string, defaultNodeEnv?: string, isPreview?: boolean, patchConfig?: ((config: ResolvedConfig) => void) | undefined, patchPlugins?: ((resolvedPlugins: (Plugin | IsolatedPluginConstructor)[]) => void) | undefined): Promise<ResolvedConfig>;
3889
3888
  declare function sortUserPlugins(plugins: (Plugin | Plugin[])[] | undefined): [Plugin[], Plugin[], Plugin[]];
3890
3889
  declare function loadConfigFromFile(configEnv: ConfigEnv, configFile?: string, configRoot?: string, logLevel?: LogLevel, customLogger?: Logger): Promise<{
3891
3890
  path: string;
@@ -3934,6 +3933,15 @@ declare class ServerHMRConnector implements ModuleRunnerHMRConnection {
3934
3933
  onUpdate(handler: (payload: HMRPayload) => void): void;
3935
3934
  }
3936
3935
 
3936
+ interface ModuleRunnerTransformOptions {
3937
+ json?: {
3938
+ stringify?: boolean;
3939
+ };
3940
+ }
3941
+ declare function ssrTransform(code: string, inMap: SourceMap | {
3942
+ mappings: '';
3943
+ } | null, url: string, originalCode: string, options?: ModuleRunnerTransformOptions): Promise<TransformResult | null>;
3944
+
3937
3945
  declare const VERSION: string;
3938
3946
 
3939
3947
  declare const isCSSRequest: (request: string) => boolean;
@@ -4005,4 +4013,4 @@ interface ManifestChunk {
4005
4013
  dynamicImports?: string[];
4006
4014
  }
4007
4015
 
4008
- export { type Alias, type AliasOptions, type AnymatchFn, type AnymatchPattern, type AppType, type AwaitWriteFinishOptions, type BindCLIShortcutsOptions, BuildEnvironment, type BuildEnvironmentOptions, type BuildOptions, type BuilderOptions, type CLIShortcut, type CSSModulesOptions, type CSSOptions, type CommonServerOptions, type ConfigEnv, Connect, type CorsOptions, type CorsOrigin, type DepOptimizationConfig, type DepOptimizationMetadata, type DepOptimizationOptions, DevEnvironment, type DevEnvironmentOptions, type DevEnvironmentSetup, type ESBuildOptions, type ESBuildTransformResult, EnvironmentModuleGraph, EnvironmentModuleNode, type ExperimentalOptions, type ExportsData, FSWatcher, type FetchModuleOptions, type FileSystemServeOptions, type FilterPattern, type HMRBroadcaster, type HMRBroadcasterClient, type HMRChannel, type HTMLOptions, type HmrContext, type HmrOptions, type HookHandler, type HotUpdateContext, type HtmlTagDescriptor, HttpProxy, type IndexHtmlTransform, type IndexHtmlTransformContext, type IndexHtmlTransformHook, type IndexHtmlTransformResult, type InlineConfig, type InternalResolveOptions, type IsolatedPlugin, type IsolatedPluginConstructor, type JsonOptions, type LegacyOptions, type LibraryFormats, type LibraryOptions, type LightningCSSOptions, type LogErrorOptions, type LogLevel, type LogOptions, type LogType, type Logger, type LoggerOptions, type Manifest, type ManifestChunk, type MapToFunction, type AnymatchMatcher as Matcher, ModuleGraph, ModuleNode, type ModulePreloadOptions, type OptimizedDepInfo, type Plugin, type PluginContainer, type PluginHookUtils, type PluginOption, type PreprocessCSSResult, type PreviewOptions, type PreviewServer, type PreviewServerHook, type ProxyOptions, RemoteEnvironmentTransport, type RenderBuiltAssetUrl, type ResolveFn, type ResolveModulePreloadDependenciesFn, type ResolveOptions, type ResolvedBuildEnvironmentOptions, type ResolvedBuildOptions, type ResolvedCSSOptions, type ResolvedConfig, type ResolvedDevEnvironmentOptions, type ResolvedModulePreloadOptions, type ResolvedPreviewOptions, type ResolvedSSROptions, type ResolvedServerOptions, type ResolvedServerUrls, type ResolvedUrl, type ResolvedWorkerOptions, type ResolverFunction, type ResolverObject, type RollupCommonJSOptions, type RollupDynamicImportVarsOptions, type SSROptions, type SSRTarget, type SendOptions, type ServerHMRChannel, ServerHMRConnector, type ServerHook, type ServerModuleRunnerOptions, type ServerOptions, SplitVendorChunkCache, type SsrDepOptimizationOptions, Terser, type TerserOptions, type TransformOptions, type TransformResult, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type ViteBuilder, type ViteDevServer, type WatchOptions, WebSocket, WebSocketAlias, type WebSocketClient, type WebSocketCustomListener, WebSocketServer, build, buildErrorMessage, createBuilder, createFilter, createLogger, createNodeDevEnvironment, createServer, createServerModuleRunner, defineConfig, fetchModule, formatPostcssSourceMap, isCSSRequest, isFileServingAllowed, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, normalizePath, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, searchForWorkspaceRoot, send, sortUserPlugins, splitVendorChunk, splitVendorChunkPlugin, transformWithEsbuild, VERSION as version };
4016
+ export { type Alias, type AliasOptions, type AnymatchFn, type AnymatchPattern, type AppType, type AwaitWriteFinishOptions, type BindCLIShortcutsOptions, BuildEnvironment, type BuildEnvironmentOptions, type BuildOptions, type BuilderOptions, type CLIShortcut, type CSSModulesOptions, type CSSOptions, type CommonServerOptions, type ConfigEnv, Connect, type CorsOptions, type CorsOrigin, type DepOptimizationConfig, type DepOptimizationMetadata, type DepOptimizationOptions, DevEnvironment, type DevEnvironmentOptions, type DevEnvironmentSetup, type ESBuildOptions, type ESBuildTransformResult, EnvironmentModuleGraph, EnvironmentModuleNode, type ExperimentalOptions, type ExportsData, FSWatcher, type FetchModuleOptions, type FileSystemServeOptions, type FilterPattern, type HMRBroadcaster, type HMRBroadcasterClient, type HMRChannel, type HTMLOptions, type HmrContext, type HmrOptions, type HookHandler, type HotUpdateContext, type HtmlTagDescriptor, HttpProxy, type IndexHtmlTransform, type IndexHtmlTransformContext, type IndexHtmlTransformHook, type IndexHtmlTransformResult, type InlineConfig, type InternalResolveOptions, type IsolatedPlugin, type IsolatedPluginConstructor, type JsonOptions, type LegacyOptions, type LibraryFormats, type LibraryOptions, type LightningCSSOptions, type LogErrorOptions, type LogLevel, type LogOptions, type LogType, type Logger, type LoggerOptions, type Manifest, type ManifestChunk, type MapToFunction, type AnymatchMatcher as Matcher, ModuleGraph, ModuleNode, type ModulePreloadOptions, type ModuleRunnerTransformOptions, type OptimizedDepInfo, type Plugin, type PluginContainer, type PluginHookUtils, type PluginOption, type PreprocessCSSResult, type PreviewOptions, type PreviewServer, type PreviewServerHook, type ProxyOptions, RemoteEnvironmentTransport, type RenderBuiltAssetUrl, type ResolveFn, type ResolveModulePreloadDependenciesFn, type ResolveOptions, type ResolvedBuildEnvironmentOptions, type ResolvedBuildOptions, type ResolvedCSSOptions, type ResolvedConfig, type ResolvedDevEnvironmentOptions, type ResolvedModulePreloadOptions, type ResolvedPreviewOptions, type ResolvedSSROptions, type ResolvedServerOptions, type ResolvedServerUrls, type ResolvedUrl, type ResolvedWorkerOptions, type ResolverFunction, type ResolverObject, type RollupCommonJSOptions, type RollupDynamicImportVarsOptions, type SSROptions, type SSRTarget, type SendOptions, type ServerHMRChannel, ServerHMRConnector, type ServerHook, type ServerModuleRunnerOptions, type ServerOptions, SplitVendorChunkCache, type SsrDepOptimizationOptions, Terser, type TerserOptions, type TransformOptions, type TransformResult, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type ViteBuilder, type ViteDevServer, type WatchOptions, WebSocket, WebSocketAlias, type WebSocketClient, type WebSocketCustomListener, WebSocketServer, build, buildErrorMessage, createBuilder, createFilter, createLogger, createNodeDevEnvironment, createServer, createServerModuleRunner, defineConfig, fetchModule, formatPostcssSourceMap, isCSSRequest, isFileServingAllowed, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, ssrTransform as moduleRunnerTransform, normalizePath, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, searchForWorkspaceRoot, send, sortUserPlugins, splitVendorChunk, splitVendorChunkPlugin, transformWithEsbuild, VERSION as version };
@@ -1,6 +1,6 @@
1
1
  export { parseAst, parseAstAsync } from 'rollup/parseAst';
2
- import { i as isInNodeModules, a as arraify } from './chunks/dep-CjFMk8-F.js';
3
- export { B as BuildEnvironment, D as DevEnvironment, S as ServerHMRConnector, b as build, h as buildErrorMessage, e as createBuilder, u as createFilter, j as createNodeDevEnvironment, c as createServer, m as createServerModuleRunner, d as defineConfig, k as fetchModule, f as formatPostcssSourceMap, y as isFileServingAllowed, l as loadConfigFromFile, z as loadEnv, q as mergeAlias, o as mergeConfig, n as normalizePath, g as preprocessCSS, p as preview, r as resolveConfig, A as resolveEnvPrefix, v as rollupVersion, x as searchForWorkspaceRoot, w as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-CjFMk8-F.js';
2
+ import { i as isInNodeModules, a as arraify } from './chunks/dep-XbxO4NmM.js';
3
+ export { B as BuildEnvironment, D as DevEnvironment, S as ServerHMRConnector, b as build, h as buildErrorMessage, e as createBuilder, v as createFilter, j as createNodeDevEnvironment, c as createServer, m as createServerModuleRunner, d as defineConfig, k as fetchModule, f as formatPostcssSourceMap, z as isFileServingAllowed, l as loadConfigFromFile, A as loadEnv, u as mergeAlias, q as mergeConfig, n as moduleRunnerTransform, o as normalizePath, g as preprocessCSS, p as preview, r as resolveConfig, C as resolveEnvPrefix, w as rollupVersion, y as searchForWorkspaceRoot, x as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-XbxO4NmM.js';
4
4
  export { VERSION as version } from './constants.js';
5
5
  export { version as esbuildVersion } from 'esbuild';
6
6
  export { c as createLogger } from './chunks/dep-C7zR1Rh8.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "6.0.0-alpha.11",
3
+ "version": "6.0.0-alpha.13",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",