vite 7.2.7 → 8.0.0-beta.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.
@@ -2,9 +2,12 @@
2
2
  import { t as ModuleRunnerTransport } from "./chunks/moduleRunnerTransport.js";
3
3
  import { ConnectedPayload, CustomPayload, CustomPayload as hmrPayload_CustomPayload, ErrorPayload, FullReloadPayload, HMRPayload, HotPayload, HotPayload as hmrPayload_HotPayload, PrunePayload, Update, UpdatePayload } from "#types/hmrPayload";
4
4
  import { CustomEventMap, InferCustomEventPayload, InferCustomEventPayload as hmrPayload_InferCustomEventPayload, InvalidatePayload } from "#types/customEvent";
5
- import * as Rollup from "rollup";
6
- import { CustomPluginOptions, ExistingRawSourceMap, InputOption, InputOptions, LoadResult, MinimalPluginContext, ModuleFormat, ModuleInfo, ObjectHook, OutputBundle, OutputChunk, PartialResolvedId, PluginContext, PluginContextMeta, PluginHooks, ResolveIdResult, RollupError, RollupLog, RollupOptions, RollupOutput, RollupWatcher, SourceDescription, SourceMap, SourceMapInput, TransformPluginContext, WatcherOptions } from "rollup";
7
- import { parseAst, parseAstAsync } from "rollup/parseAst";
5
+ import * as Rolldown from "rolldown";
6
+ import { CustomPluginOptions, ExistingRawSourceMap, FunctionPluginHooks, ImportKind, InputOption, InputOptions, LoadResult, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleType, ModuleTypeFilter, ObjectHook, OutputBundle, OutputChunk, OutputOptions, PartialResolvedId, PluginContext, PluginContextMeta, ResolveIdResult, RolldownOptions, RolldownOutput, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, TransformPluginContext, VERSION as rolldownVersion, WatcherOptions } from "rolldown";
7
+ import { parseAst as parseAst$1, parseAstAsync as parseAstAsync$1 } from "rolldown/parseAst";
8
+ import * as Rollup from "#types/internal/rollupTypeCompat";
9
+ import { esmExternalRequirePlugin } from "rolldown/plugins";
10
+ import { MinifyOptions, MinifyResult, ParseResult, ParserOptions, TransformOptions as rolldown_experimental_TransformOptions, TransformResult as rolldown_experimental_TransformResult, minify, minifySync, parse, parseSync } from "rolldown/experimental";
8
11
  import * as http from "node:http";
9
12
  import { Agent, ClientRequest, ClientRequestArgs, OutgoingHttpHeaders, ServerResponse } from "node:http";
10
13
  import { Http2SecureServer } from "node:http2";
@@ -14,19 +17,19 @@ import { Server as HttpsServer, ServerOptions as HttpsServerOptions } from "node
14
17
  import * as net from "node:net";
15
18
  import { Duplex, DuplexOptions, Stream } from "node:stream";
16
19
  import { FetchFunction, FetchFunctionOptions, FetchResult, FetchResult as moduleRunner_FetchResult, ModuleEvaluator, ModuleRunner, ModuleRunnerHmr, ModuleRunnerOptions } from "vite/module-runner";
17
- import { BuildOptions as esbuild_BuildOptions, TransformOptions as EsbuildTransformOptions, TransformOptions as esbuild_TransformOptions, TransformResult as esbuild_TransformResult, version as esbuildVersion } from "esbuild";
20
+ import { DepsOptimizerEsbuildOptions, EsbuildTarget, EsbuildTransformOptions, EsbuildTransformOptions as esbuildOptions_EsbuildTransformOptions, EsbuildTransformResult } from "#types/internal/esbuildOptions";
18
21
  import { SecureContextOptions } from "node:tls";
19
22
  import { URL as url_URL } from "node:url";
20
23
  import { ZlibOptions } from "node:zlib";
24
+ import { ChunkMetadata, CustomPluginOptionsVite } from "#types/metadata";
21
25
  import { Terser, TerserMinifyOptions } from "#types/internal/terserOptions";
22
26
  import * as PostCSS from "postcss";
23
- import { LessPreprocessorBaseOptions, SassModernPreprocessBaseOptions, StylusPreprocessorBaseOptions } from "#types/internal/cssPreprocessorOptions";
24
27
  import { LightningCSSOptions, LightningCSSOptions as lightningcssOptions_LightningCSSOptions } from "#types/internal/lightningcssOptions";
28
+ import { LessPreprocessorBaseOptions, SassModernPreprocessBaseOptions, StylusPreprocessorBaseOptions } from "#types/internal/cssPreprocessorOptions";
29
+ import { withFilter } from "rolldown/filter";
25
30
  import { GeneralImportGlobOptions, ImportGlobFunction, ImportGlobOptions, KnownAsTypeMap } from "#types/importGlob";
26
- import { ChunkMetadata, CustomPluginOptionsVite } from "#types/metadata";
27
31
 
28
32
  //#region rolldown:runtime
29
-
30
33
  //#endregion
31
34
  //#region src/types/alias.d.ts
32
35
  interface Alias {
@@ -39,10 +42,10 @@ interface Alias {
39
42
  */
40
43
  customResolver?: ResolverFunction | ResolverObject | null;
41
44
  }
42
- type MapToFunction<T$1> = T$1 extends Function ? T$1 : never;
43
- type ResolverFunction = MapToFunction<PluginHooks['resolveId']>;
45
+ type MapToFunction<T> = T extends Function ? T : never;
46
+ type ResolverFunction = MapToFunction<FunctionPluginHooks['resolveId']>;
44
47
  interface ResolverObject {
45
- buildStart?: PluginHooks['buildStart'];
48
+ buildStart?: FunctionPluginHooks['buildStart'];
46
49
  resolveId: ResolverFunction;
47
50
  }
48
51
  /**
@@ -339,7 +342,7 @@ type ProxyTargetUrl = URL | string | {
339
342
  host: string;
340
343
  protocol?: string;
341
344
  };
342
- type NormalizeProxyTarget<T$1 extends ProxyTargetUrl> = Exclude<T$1, string> | URL;
345
+ type NormalizeProxyTarget<T extends ProxyTargetUrl> = Exclude<T, string> | URL;
343
346
  interface ServerOptions$3 {
344
347
  /** URL string to be parsed with the url module. */
345
348
  target?: ProxyTarget;
@@ -661,7 +664,7 @@ interface CorsOptions {
661
664
  type CorsOrigin = boolean | string | RegExp | (string | RegExp)[];
662
665
  //#endregion
663
666
  //#region src/node/typeUtils.d.ts
664
- type RequiredExceptFor<T$1, K$1 extends keyof T$1> = Pick<T$1, K$1> & Required<Omit<T$1, K$1>>;
667
+ type RequiredExceptFor<T, K$1 extends keyof T> = Pick<T, K$1> & Required<Omit<T, K$1>>;
665
668
  //#endregion
666
669
  //#region src/node/preview.d.ts
667
670
  interface PreviewOptions extends CommonServerOptions {}
@@ -807,8 +810,27 @@ interface DepOptimizationConfig {
807
810
  * - `plugins` are merged with Vite's dep plugin
808
811
  *
809
812
  * https://esbuild.github.io/api
813
+ *
814
+ * @deprecated Use `rolldownOptions` instead.
815
+ */
816
+ esbuildOptions?: DepsOptimizerEsbuildOptions;
817
+ /**
818
+ * @deprecated Use `rolldownOptions` instead.
810
819
  */
811
- esbuildOptions?: Omit<esbuild_BuildOptions, "bundle" | "entryPoints" | "external" | "write" | "watch" | "outdir" | "outfile" | "outbase" | "outExtension" | "metafile">;
820
+ rollupOptions?: Omit<RolldownOptions, "input" | "logLevel" | "output"> & {
821
+ output?: Omit<OutputOptions, "format" | "sourcemap" | "dir" | "banner">;
822
+ };
823
+ /**
824
+ * Options to pass to rolldown during the dep scanning and optimization
825
+ *
826
+ * Certain options are omitted since changing them would not be compatible
827
+ * with Vite's dep optimization.
828
+ *
829
+ * - `plugins` are merged with Vite's dep plugin
830
+ */
831
+ rolldownOptions?: Omit<RolldownOptions, "input" | "logLevel" | "output"> & {
832
+ output?: Omit<OutputOptions, "format" | "sourcemap" | "dir" | "banner">;
833
+ };
812
834
  /**
813
835
  * List of file extensions that can be optimized. A corresponding esbuild
814
836
  * plugin must exist to handle the specific extension.
@@ -883,6 +905,7 @@ interface OptimizedDepInfo {
883
905
  * data used both to define if interop is needed and when pre-bundling
884
906
  */
885
907
  exportsData?: Promise<ExportsData>;
908
+ isDynamicEntry?: boolean;
886
909
  }
887
910
  interface DepOptimizationMetadata {
888
911
  /**
@@ -1018,8 +1041,8 @@ declare class ModuleNode {
1018
1041
  _clientModule: EnvironmentModuleNode | undefined;
1019
1042
  _ssrModule: EnvironmentModuleNode | undefined;
1020
1043
  constructor(moduleGraph: ModuleGraph, clientModule?: EnvironmentModuleNode, ssrModule?: EnvironmentModuleNode);
1021
- _get<T$1 extends keyof EnvironmentModuleNode>(prop: T$1): EnvironmentModuleNode[T$1];
1022
- _set<T$1 extends keyof EnvironmentModuleNode>(prop: T$1, value: EnvironmentModuleNode[T$1]): void;
1044
+ _get<T extends keyof EnvironmentModuleNode>(prop: T): EnvironmentModuleNode[T];
1045
+ _set<T extends keyof EnvironmentModuleNode>(prop: T, value: EnvironmentModuleNode[T]): void;
1023
1046
  _wrapModuleSet(prop: ModuleSetNames, module: EnvironmentModuleNode | undefined): Set<ModuleNode>;
1024
1047
  _getModuleSetUnion(prop: "importedModules" | "importers"): Set<ModuleNode>;
1025
1048
  _getModuleInfoUnion(prop: "info"): ModuleInfo | undefined;
@@ -1111,7 +1134,7 @@ interface HmrContext {
1111
1134
  interface HotChannelClient {
1112
1135
  send(payload: hmrPayload_HotPayload): void;
1113
1136
  }
1114
- type HotChannelListener<T$1 extends string = string> = (data: InferCustomEventPayload<T$1>, client: HotChannelClient) => void;
1137
+ type HotChannelListener<T extends string = string> = (data: InferCustomEventPayload<T>, client: HotChannelClient) => void;
1115
1138
  interface HotChannel<Api = any> {
1116
1139
  /**
1117
1140
  * Broadcast events to all clients
@@ -1120,7 +1143,7 @@ interface HotChannel<Api = any> {
1120
1143
  /**
1121
1144
  * Handle custom event emitted by `import.meta.hot.send`
1122
1145
  */
1123
- on?<T$1 extends string>(event: T$1, listener: HotChannelListener<T$1>): void;
1146
+ on?<T extends string>(event: T, listener: HotChannelListener<T>): void;
1124
1147
  on?(event: "connection", listener: () => void): void;
1125
1148
  /**
1126
1149
  * Unregister event listener
@@ -1154,11 +1177,11 @@ interface NormalizedHotChannel<Api = any> {
1154
1177
  /**
1155
1178
  * Send custom event
1156
1179
  */
1157
- send<T$1 extends string>(event: T$1, payload?: InferCustomEventPayload<T$1>): void;
1180
+ send<T extends string>(event: T, payload?: InferCustomEventPayload<T>): void;
1158
1181
  /**
1159
1182
  * Handle custom event emitted by `import.meta.hot.send`
1160
1183
  */
1161
- on<T$1 extends string>(event: T$1, listener: (data: InferCustomEventPayload<T$1>, client: NormalizedHotChannelClient) => void): void;
1184
+ on<T extends string>(event: T, listener: (data: InferCustomEventPayload<T>, client: NormalizedHotChannelClient) => void): void;
1162
1185
  /**
1163
1186
  * @deprecated use `vite:client:connect` event instead
1164
1187
  */
@@ -1429,38 +1452,38 @@ declare namespace WebSocket {
1429
1452
  }
1430
1453
 
1431
1454
  // WebSocket Server
1432
- class Server<T$1 extends WebSocket = WebSocket> extends EventEmitter {
1455
+ class Server<T extends WebSocket = WebSocket> extends EventEmitter {
1433
1456
  options: ServerOptions;
1434
1457
  path: string;
1435
- clients: Set<T$1>;
1458
+ clients: Set<T>;
1436
1459
  constructor(options?: ServerOptions, callback?: () => void);
1437
1460
  address(): AddressInfo | string;
1438
1461
  close(cb?: (err?: Error) => void): void;
1439
- handleUpgrade(request: http.IncomingMessage, socket: Duplex, upgradeHead: Buffer, callback: (client: T$1, request: http.IncomingMessage) => void): void;
1462
+ handleUpgrade(request: http.IncomingMessage, socket: Duplex, upgradeHead: Buffer, callback: (client: T, request: http.IncomingMessage) => void): void;
1440
1463
  shouldHandle(request: http.IncomingMessage): boolean | Promise<boolean>;
1441
1464
 
1442
1465
  // Events
1443
- on(event: 'connection', cb: (this: Server<T$1>, socket: T$1, request: http.IncomingMessage) => void): this;
1444
- on(event: 'error', cb: (this: Server<T$1>, error: Error) => void): this;
1445
- on(event: 'headers', cb: (this: Server<T$1>, headers: string[], request: http.IncomingMessage) => void): this;
1446
- on(event: 'close' | 'listening', cb: (this: Server<T$1>) => void): this;
1447
- on(event: string | symbol, listener: (this: Server<T$1>, ...args: any[]) => void): this;
1448
- once(event: 'connection', cb: (this: Server<T$1>, socket: T$1, request: http.IncomingMessage) => void): this;
1449
- once(event: 'error', cb: (this: Server<T$1>, error: Error) => void): this;
1450
- once(event: 'headers', cb: (this: Server<T$1>, headers: string[], request: http.IncomingMessage) => void): this;
1451
- once(event: 'close' | 'listening', cb: (this: Server<T$1>) => void): this;
1452
- once(event: string | symbol, listener: (this: Server<T$1>, ...args: any[]) => void): this;
1453
- off(event: 'connection', cb: (this: Server<T$1>, socket: T$1, request: http.IncomingMessage) => void): this;
1454
- off(event: 'error', cb: (this: Server<T$1>, error: Error) => void): this;
1455
- off(event: 'headers', cb: (this: Server<T$1>, headers: string[], request: http.IncomingMessage) => void): this;
1456
- off(event: 'close' | 'listening', cb: (this: Server<T$1>) => void): this;
1457
- off(event: string | symbol, listener: (this: Server<T$1>, ...args: any[]) => void): this;
1458
- addListener(event: 'connection', cb: (client: T$1, request: http.IncomingMessage) => void): this;
1466
+ on(event: 'connection', cb: (this: Server<T>, socket: T, request: http.IncomingMessage) => void): this;
1467
+ on(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
1468
+ on(event: 'headers', cb: (this: Server<T>, headers: string[], request: http.IncomingMessage) => void): this;
1469
+ on(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
1470
+ on(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
1471
+ once(event: 'connection', cb: (this: Server<T>, socket: T, request: http.IncomingMessage) => void): this;
1472
+ once(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
1473
+ once(event: 'headers', cb: (this: Server<T>, headers: string[], request: http.IncomingMessage) => void): this;
1474
+ once(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
1475
+ once(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
1476
+ off(event: 'connection', cb: (this: Server<T>, socket: T, request: http.IncomingMessage) => void): this;
1477
+ off(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
1478
+ off(event: 'headers', cb: (this: Server<T>, headers: string[], request: http.IncomingMessage) => void): this;
1479
+ off(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
1480
+ off(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
1481
+ addListener(event: 'connection', cb: (client: T, request: http.IncomingMessage) => void): this;
1459
1482
  addListener(event: 'error', cb: (err: Error) => void): this;
1460
1483
  addListener(event: 'headers', cb: (headers: string[], request: http.IncomingMessage) => void): this;
1461
1484
  addListener(event: 'close' | 'listening', cb: () => void): this;
1462
1485
  addListener(event: string | symbol, listener: (...args: any[]) => void): this;
1463
- removeListener(event: 'connection', cb: (client: T$1) => void): this;
1486
+ removeListener(event: 'connection', cb: (client: T) => void): this;
1464
1487
  removeListener(event: 'error', cb: (err: Error) => void): this;
1465
1488
  removeListener(event: 'headers', cb: (headers: string[], request: http.IncomingMessage) => void): this;
1466
1489
  removeListener(event: 'close' | 'listening', cb: () => void): this;
@@ -1478,14 +1501,14 @@ declare namespace WebSocket {
1478
1501
  // export = WebSocket
1479
1502
  //#endregion
1480
1503
  //#region src/node/server/ws.d.ts
1481
- type WebSocketCustomListener<T$1> = (data: T$1, client: WebSocketClient) => void;
1504
+ type WebSocketCustomListener<T> = (data: T, client: WebSocketClient) => void;
1482
1505
  declare const isWebSocketServer: unique symbol;
1483
1506
  interface WebSocketServer extends NormalizedHotChannel {
1484
1507
  /**
1485
1508
  * Handle custom event emitted by `import.meta.hot.send`
1486
1509
  */
1487
1510
  on: WebSocket.Server["on"] & {
1488
- <T$1 extends string>(event: T$1, listener: WebSocketCustomListener<hmrPayload_InferCustomEventPayload<T$1>>): void;
1511
+ <T extends string>(event: T, listener: WebSocketCustomListener<hmrPayload_InferCustomEventPayload<T>>): void;
1489
1512
  };
1490
1513
  /**
1491
1514
  * Unregister event listener.
@@ -1559,6 +1582,11 @@ declare class DevEnvironment extends BaseEnvironment {
1559
1582
  reloadModule(module: EnvironmentModuleNode): Promise<void>;
1560
1583
  transformRequest(url: string, options?: TransformOptionsInternal): Promise<TransformResult | null>;
1561
1584
  warmupRequest(url: string): Promise<void>;
1585
+ protected invalidateModule(m: {
1586
+ path: string;
1587
+ message?: string;
1588
+ firstInvalidatedBy: string;
1589
+ }, _client: NormalizedHotChannelClient): void;
1562
1590
  close(): Promise<void>;
1563
1591
  /**
1564
1592
  * Calling `await environment.waitForRequestsIdle(id)` will wait until all static imports
@@ -1853,6 +1881,15 @@ interface ResolveOptions extends EnvironmentResolveOptions {
1853
1881
  * @default false
1854
1882
  */
1855
1883
  preserveSymlinks?: boolean;
1884
+ /**
1885
+ * Enable tsconfig paths resolution
1886
+ *
1887
+ * This option does not have any effect if `experimental.enableNativePlugin` is set to `false`.
1888
+ *
1889
+ * @default false
1890
+ * @experimental
1891
+ */
1892
+ tsconfigPaths?: boolean;
1856
1893
  }
1857
1894
  interface ResolvePluginOptions {
1858
1895
  root: string;
@@ -1870,6 +1907,10 @@ interface ResolvePluginOptions {
1870
1907
  preferRelative?: boolean;
1871
1908
  isRequire?: boolean;
1872
1909
  scan?: boolean;
1910
+ /**
1911
+ * Enable when `legacy.inconsistentCjsInterop` is true. See that option for more details.
1912
+ */
1913
+ legacyInconsistentCjsInterop?: boolean;
1873
1914
  }
1874
1915
  interface InternalResolveOptions extends Required<ResolveOptions>, ResolvePluginOptions {}
1875
1916
  //#endregion
@@ -1914,8 +1955,8 @@ interface BuildEnvironmentOptions {
1914
1955
  * syntax transformation and does not cover polyfills
1915
1956
  *
1916
1957
  * Default: 'baseline-widely-available' - transpile targeting browsers that
1917
- * are included in the Baseline Widely Available on 2025-05-01.
1918
- * (Chrome 107+, Edge 107+, Firefox 104+, Safari 16+).
1958
+ * are included in the Baseline Widely Available on 2026-01-01.
1959
+ * (Chrome 111+, Edge 111+, Firefox 114+, Safari 16.4+).
1919
1960
  *
1920
1961
  * Another special value is 'esnext' - which only performs minimal transpiling
1921
1962
  * (for minification compat).
@@ -1924,7 +1965,7 @@ interface BuildEnvironmentOptions {
1924
1965
  * https://esbuild.github.io/content-types/#javascript for more details.
1925
1966
  * @default 'baseline-widely-available'
1926
1967
  */
1927
- target?: "baseline-widely-available" | esbuild_TransformOptions["target"] | false;
1968
+ target?: "baseline-widely-available" | EsbuildTarget | false;
1928
1969
  /**
1929
1970
  * whether to inject module preload polyfill.
1930
1971
  * Note: does not apply to library mode.
@@ -1975,13 +2016,13 @@ interface BuildEnvironmentOptions {
1975
2016
  * doesn't support the #RGBA syntax.
1976
2017
  * @default target
1977
2018
  */
1978
- cssTarget?: esbuild_TransformOptions["target"] | false;
2019
+ cssTarget?: EsbuildTarget | false;
1979
2020
  /**
1980
2021
  * Override CSS minification specifically instead of defaulting to `build.minify`,
1981
2022
  * so you can configure minification for JS and CSS separately.
1982
- * @default 'esbuild'
2023
+ * @default 'lightningcss'
1983
2024
  */
1984
- cssMinify?: boolean | "esbuild" | "lightningcss";
2025
+ cssMinify?: boolean | "lightningcss" | "esbuild";
1985
2026
  /**
1986
2027
  * If `true`, a separate sourcemap file will be created. If 'inline', the
1987
2028
  * sourcemap will be appended to the resulting output file as data URI.
@@ -1992,10 +2033,10 @@ interface BuildEnvironmentOptions {
1992
2033
  sourcemap?: boolean | "inline" | "hidden";
1993
2034
  /**
1994
2035
  * Set to `false` to disable minification, or specify the minifier to use.
1995
- * Available options are 'terser' or 'esbuild'.
1996
- * @default 'esbuild'
2036
+ * Available options are 'oxc' or 'terser' or 'esbuild'.
2037
+ * @default 'oxc'
1997
2038
  */
1998
- minify?: boolean | "terser" | "esbuild";
2039
+ minify?: boolean | "oxc" | "terser" | "esbuild";
1999
2040
  /**
2000
2041
  * Options for terser
2001
2042
  * https://terser.org/docs/api-reference#minify-options
@@ -2005,12 +2046,18 @@ interface BuildEnvironmentOptions {
2005
2046
  */
2006
2047
  terserOptions?: TerserOptions;
2007
2048
  /**
2008
- * Will be merged with internal rollup options.
2009
- * https://rollupjs.org/configuration-options/
2049
+ * Alias to `rolldownOptions`
2050
+ * @deprecated Use `rolldownOptions` instead.
2010
2051
  */
2011
- rollupOptions?: RollupOptions;
2052
+ rollupOptions?: RolldownOptions;
2053
+ /**
2054
+ * Will be merged with internal rolldown options.
2055
+ * https://rolldown.rs/reference/config-options
2056
+ */
2057
+ rolldownOptions?: RolldownOptions;
2012
2058
  /**
2013
2059
  * Options to pass on to `@rollup/plugin-commonjs`
2060
+ * @deprecated This option is no-op and will be removed in future versions.
2014
2061
  */
2015
2062
  commonjsOptions?: RollupCommonJSOptions;
2016
2063
  /**
@@ -2138,7 +2185,7 @@ interface LibraryOptions {
2138
2185
  */
2139
2186
  cssFileName?: string;
2140
2187
  }
2141
- type LibraryFormats = "es" | "cjs" | "umd" | "iife" | "system";
2188
+ type LibraryFormats = "es" | "cjs" | "umd" | "iife";
2142
2189
  interface ModulePreloadOptions {
2143
2190
  /**
2144
2191
  * Whether to inject a module preload polyfill.
@@ -2170,7 +2217,7 @@ interface ResolvedBuildOptions extends Required<Omit<BuildOptions, "polyfillModu
2170
2217
  * Bundles a single environment for production.
2171
2218
  * Returns a Promise containing the build result.
2172
2219
  */
2173
- declare function build(inlineConfig?: InlineConfig): Promise<RollupOutput | RollupOutput[] | RollupWatcher>;
2220
+ declare function build(inlineConfig?: InlineConfig): Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher>;
2174
2221
  type RenderBuiltAssetUrl = (filename: string, type: {
2175
2222
  type: "asset" | "public";
2176
2223
  hostId: string;
@@ -2192,7 +2239,7 @@ interface ViteBuilder {
2192
2239
  environments: Record<string, BuildEnvironment>;
2193
2240
  config: ResolvedConfig;
2194
2241
  buildApp(): Promise<void>;
2195
- build(environment: BuildEnvironment): Promise<RollupOutput | RollupOutput[] | RollupWatcher>;
2242
+ build(environment: BuildEnvironment): Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher>;
2196
2243
  }
2197
2244
  interface BuilderOptions {
2198
2245
  /**
@@ -2261,6 +2308,7 @@ declare class EnvironmentPluginContainer<Env extends Environment = Environment>
2261
2308
  private hookParallel;
2262
2309
  buildStart(_options?: InputOptions): Promise<void>;
2263
2310
  resolveId(rawId: string, importer?: string | undefined, options?: {
2311
+ kind?: ImportKind;
2264
2312
  attributes?: Record<string, string>;
2265
2313
  custom?: CustomPluginOptions;
2266
2314
  /** @deprecated use `skipCalls` instead */
@@ -2272,11 +2320,13 @@ declare class EnvironmentPluginContainer<Env extends Environment = Environment>
2272
2320
  load(id: string): Promise<LoadResult | null>;
2273
2321
  transform(code: string, id: string, options?: {
2274
2322
  inMap?: SourceDescription["map"];
2323
+ moduleType?: string;
2275
2324
  }): Promise<{
2276
2325
  code: string;
2277
2326
  map: SourceMap | {
2278
2327
  mappings: "";
2279
2328
  } | null;
2329
+ moduleType?: ModuleType;
2280
2330
  }>;
2281
2331
  watchChange(id: string, change: {
2282
2332
  event: "create" | "update" | "delete";
@@ -2287,15 +2337,16 @@ declare class BasicMinimalPluginContext<Meta = PluginContextMeta> {
2287
2337
  meta: Meta;
2288
2338
  private _logger;
2289
2339
  constructor(meta: Meta, _logger: Logger);
2340
+ get pluginName(): string;
2290
2341
  debug(rawLog: string | RollupLog | (() => string | RollupLog)): void;
2291
2342
  info(rawLog: string | RollupLog | (() => string | RollupLog)): void;
2292
2343
  warn(rawLog: string | RollupLog | (() => string | RollupLog)): void;
2293
2344
  error(e: string | RollupError): never;
2294
2345
  private _normalizeRawLog;
2295
2346
  }
2296
- declare class MinimalPluginContext$1<T$1 extends Environment = Environment> extends BasicMinimalPluginContext implements MinimalPluginContext {
2297
- environment: T$1;
2298
- constructor(meta: PluginContextMeta, environment: T$1);
2347
+ declare class MinimalPluginContext$1<T extends Environment = Environment> extends BasicMinimalPluginContext implements MinimalPluginContext {
2348
+ environment: T;
2349
+ constructor(meta: PluginContextMeta, environment: T);
2299
2350
  }
2300
2351
  declare class PluginContainer {
2301
2352
  private environments;
@@ -2677,7 +2728,7 @@ interface ConfigPluginContext extends Omit<MinimalPluginContext, "meta" | "envir
2677
2728
  meta: Omit<PluginContextMeta, "watchMode">;
2678
2729
  }
2679
2730
  interface MinimalPluginContextWithoutEnvironment extends Omit<MinimalPluginContext, "environment"> {}
2680
- declare module "rollup" {
2731
+ declare module "rolldown" {
2681
2732
  interface MinimalPluginContext extends PluginContextExtension {}
2682
2733
  interface PluginContextMeta extends PluginContextMetaExtension {}
2683
2734
  }
@@ -2691,7 +2742,7 @@ declare module "rollup" {
2691
2742
  * Environment Plugins are closer to regular rollup plugins. They can't define
2692
2743
  * app level hooks (like config, configResolved, configureServer, etc).
2693
2744
  */
2694
- interface Plugin<A = any> extends Rollup.Plugin<A> {
2745
+ interface Plugin<A = any> extends Rolldown.Plugin<A> {
2695
2746
  /**
2696
2747
  * Perform custom handling of HMR updates.
2697
2748
  * The handler receives an options containing changed filename, timestamp, a
@@ -2714,7 +2765,7 @@ interface Plugin<A = any> extends Rollup.Plugin<A> {
2714
2765
  * extend hooks with ssr flag
2715
2766
  */
2716
2767
  resolveId?: ObjectHook<(this: PluginContext, source: string, importer: string | undefined, options: {
2717
- attributes: Record<string, string>;
2768
+ kind?: ImportKind;
2718
2769
  custom?: CustomPluginOptions;
2719
2770
  ssr?: boolean | undefined;
2720
2771
 
@@ -2732,11 +2783,13 @@ interface Plugin<A = any> extends Rollup.Plugin<A> {
2732
2783
  };
2733
2784
  }>;
2734
2785
  transform?: ObjectHook<(this: TransformPluginContext, code: string, id: string, options?: {
2786
+ moduleType: ModuleType;
2735
2787
  ssr?: boolean | undefined;
2736
- }) => Promise<Rollup.TransformResult> | Rollup.TransformResult, {
2788
+ }) => Promise<Rolldown.TransformResult> | Rolldown.TransformResult, {
2737
2789
  filter?: {
2738
2790
  id?: StringFilter;
2739
2791
  code?: StringFilter;
2792
+ moduleType?: ModuleTypeFilter;
2740
2793
  };
2741
2794
  }>;
2742
2795
  /**
@@ -2881,12 +2934,25 @@ interface Plugin<A = any> extends Rollup.Plugin<A> {
2881
2934
  * normal.
2882
2935
  */
2883
2936
  handleHotUpdate?: ObjectHook<(this: MinimalPluginContextWithoutEnvironment, ctx: HmrContext) => Array<ModuleNode> | void | Promise<Array<ModuleNode> | void>>;
2937
+ /**
2938
+ * This hook is not supported by Rolldown yet. But the type is declared for compatibility.
2939
+ *
2940
+ * @deprecated This hook is **not** deprecated. It is marked as deprecated just to make it clear that this hook is currently a no-op.
2941
+ */
2942
+ shouldTransformCachedModule?: ObjectHook<(this: PluginContext, options: {
2943
+ code: string;
2944
+ id: string;
2945
+ meta: CustomPluginOptions;
2946
+ moduleSideEffects: boolean | "no-treeshake";
2947
+ }) => boolean | null | void>;
2884
2948
  }
2885
- type HookHandler<T$1> = T$1 extends ObjectHook<infer H> ? H : T$1;
2949
+ type HookHandler<T> = T extends ObjectHook<infer H> ? H : T;
2886
2950
  type PluginWithRequiredHook<K$1 extends keyof Plugin> = Plugin & { [P in K$1]: NonNullable<Plugin[P]> };
2887
- type Thenable<T$1> = T$1 | Promise<T$1>;
2951
+ type Thenable<T> = T | Promise<T>;
2888
2952
  type FalsyPlugin = false | null | undefined;
2889
- type PluginOption = Thenable<Plugin | FalsyPlugin | PluginOption[]>;
2953
+ type PluginOption = Thenable<Plugin | {
2954
+ name: string;
2955
+ } | FalsyPlugin | PluginOption[]>;
2890
2956
  /**
2891
2957
  * @experimental
2892
2958
  */
@@ -2983,7 +3049,7 @@ type StylusPreprocessorOptions = {
2983
3049
  } & StylusPreprocessorBaseOptions;
2984
3050
  //#endregion
2985
3051
  //#region src/node/plugins/esbuild.d.ts
2986
- interface ESBuildOptions extends esbuild_TransformOptions {
3052
+ interface ESBuildOptions extends esbuildOptions_EsbuildTransformOptions {
2987
3053
  include?: string | RegExp | ReadonlyArray<string | RegExp>;
2988
3054
  exclude?: string | RegExp | ReadonlyArray<string | RegExp>;
2989
3055
  jsxInject?: string;
@@ -2992,10 +3058,10 @@ interface ESBuildOptions extends esbuild_TransformOptions {
2992
3058
  */
2993
3059
  minify?: never;
2994
3060
  }
2995
- type ESBuildTransformResult = Omit<esbuild_TransformResult, "map"> & {
3061
+ type ESBuildTransformResult = Omit<EsbuildTransformResult, "map"> & {
2996
3062
  map: SourceMap;
2997
3063
  };
2998
- declare function transformWithEsbuild(code: string, filename: string, options?: esbuild_TransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher): Promise<ESBuildTransformResult>;
3064
+ declare function transformWithEsbuild(code: string, filename: string, options?: esbuildOptions_EsbuildTransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher, ignoreEsbuildWarning?: boolean): Promise<ESBuildTransformResult>;
2999
3065
  //#endregion
3000
3066
  //#region src/node/plugins/json.d.ts
3001
3067
  interface JsonOptions {
@@ -3058,6 +3124,18 @@ interface ResolvedSSROptions extends SSROptions {
3058
3124
  optimizeDeps: SsrDepOptimizationConfig;
3059
3125
  }
3060
3126
  //#endregion
3127
+ //#region src/node/plugins/oxc.d.ts
3128
+ interface OxcOptions extends Omit<rolldown_experimental_TransformOptions, "cwd" | "sourceType" | "lang" | "sourcemap" | "helpers"> {
3129
+ include?: string | RegExp | ReadonlyArray<string | RegExp>;
3130
+ exclude?: string | RegExp | ReadonlyArray<string | RegExp>;
3131
+ jsxInject?: string;
3132
+ jsxRefreshInclude?: string | RegExp | ReadonlyArray<string | RegExp>;
3133
+ jsxRefreshExclude?: string | RegExp | ReadonlyArray<string | RegExp>;
3134
+ }
3135
+ declare function transformWithOxc(code: string, filename: string, options?: rolldown_experimental_TransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher): Promise<Omit<rolldown_experimental_TransformResult, "errors"> & {
3136
+ warnings: string[];
3137
+ }>;
3138
+ //#endregion
3061
3139
  //#region src/node/config.d.ts
3062
3140
  interface ConfigEnv {
3063
3141
  /**
@@ -3251,9 +3329,16 @@ interface UserConfig extends DefaultEnvironmentOptions {
3251
3329
  /**
3252
3330
  * Transform options to pass to esbuild.
3253
3331
  * Or set to `false` to disable esbuild.
3332
+ *
3333
+ * @deprecated Use `oxc` option instead.
3254
3334
  */
3255
3335
  esbuild?: ESBuildOptions | false;
3256
3336
  /**
3337
+ * Transform options to pass to Oxc.
3338
+ * Or set to `false` to disable Oxc.
3339
+ */
3340
+ oxc?: OxcOptions | false;
3341
+ /**
3257
3342
  * Specify additional picomatch patterns to be treated as static assets.
3258
3343
  */
3259
3344
  assetsInclude?: string | RegExp | (string | RegExp)[];
@@ -3325,13 +3410,18 @@ interface UserConfig extends DefaultEnvironmentOptions {
3325
3410
  /**
3326
3411
  * Vite plugins that apply to worker bundle. The plugins returned by this function
3327
3412
  * should be new instances every time it is called, because they are used for each
3328
- * rollup worker bundling process.
3413
+ * rolldown worker bundling process.
3329
3414
  */
3330
3415
  plugins?: () => PluginOption[];
3331
3416
  /**
3332
- * Rollup options to build worker bundle
3417
+ * Alias to `rolldownOptions`.
3418
+ * @deprecated Use `rolldownOptions` instead.
3419
+ */
3420
+ rollupOptions?: Omit<RolldownOptions, "plugins" | "input" | "onwarn" | "preserveEntrySignatures">;
3421
+ /**
3422
+ * Rolldown options to build worker bundle
3333
3423
  */
3334
- rollupOptions?: Omit<RollupOptions, "plugins" | "input" | "onwarn" | "preserveEntrySignatures">;
3424
+ rolldownOptions?: Omit<RolldownOptions, "plugins" | "input" | "onwarn" | "preserveEntrySignatures">;
3335
3425
  };
3336
3426
  /**
3337
3427
  * Dep optimization options
@@ -3395,6 +3485,26 @@ interface ExperimentalOptions {
3395
3485
  * @default false
3396
3486
  */
3397
3487
  hmrPartialAccept?: boolean;
3488
+ /**
3489
+ * Enable builtin plugin that written by rust, which is faster than js plugin.
3490
+ *
3491
+ * - 'resolver' (deprecated, will be removed in v8 stable): Enable only the native resolver plugin.
3492
+ * - 'v1' (will be deprecated, will be removed in v8 stable): Enable the first stable set of native plugins (including resolver).
3493
+ * - true: Enable all native plugins (currently an alias of 'v1', it will map to a newer one in the future versions).
3494
+ *
3495
+ * @experimental
3496
+ * @default 'v1'
3497
+ */
3498
+ enableNativePlugin?: boolean | "resolver" | "v1";
3499
+ /**
3500
+ * Enable full bundle mode.
3501
+ *
3502
+ * This is highly experimental.
3503
+ *
3504
+ * @experimental
3505
+ * @default false
3506
+ */
3507
+ bundledDev?: boolean;
3398
3508
  }
3399
3509
  interface LegacyOptions {
3400
3510
  /**
@@ -3409,11 +3519,26 @@ interface LegacyOptions {
3409
3519
  * that security weakness.**
3410
3520
  */
3411
3521
  skipWebSocketTokenCheck?: boolean;
3522
+ /**
3523
+ * Opt-in to the pre-Vite 8 CJS interop behavior, which was inconsistent.
3524
+ *
3525
+ * In pre-Vite 8 versions, Vite had inconsistent CJS interop behavior. This was due to
3526
+ * the different behavior of esbuild and the Rollup commonjs plugin.
3527
+ * Vite 8+ uses Rolldown for both the dependency optimization in dev and the production build,
3528
+ * which aligns the behavior to esbuild.
3529
+ *
3530
+ * See the Vite 8 migration guide for more details.
3531
+ */
3532
+ inconsistentCjsInterop?: boolean;
3412
3533
  }
3413
3534
  interface ResolvedWorkerOptions {
3414
3535
  format: "es" | "iife";
3415
3536
  plugins: (bundleChain: string[]) => Promise<ResolvedConfig>;
3416
- rollupOptions: RollupOptions;
3537
+ /**
3538
+ * @deprecated Use `rolldownOptions` instead.
3539
+ */
3540
+ rollupOptions: RolldownOptions;
3541
+ rolldownOptions: RolldownOptions;
3417
3542
  }
3418
3543
  interface InlineConfig extends UserConfig {
3419
3544
  configFile?: string | false;
@@ -3433,6 +3558,8 @@ interface ResolvedConfig extends Readonly<Omit<UserConfig, "plugins" | "css" | "
3433
3558
  cacheDir: string;
3434
3559
  command: "build" | "serve";
3435
3560
  mode: string;
3561
+ /** `true` when build or full-bundle mode dev */
3562
+ isBundled: boolean;
3436
3563
  isWorker: boolean;
3437
3564
  isProduction: boolean;
3438
3565
  envDir: string | false;
@@ -3443,7 +3570,9 @@ interface ResolvedConfig extends Readonly<Omit<UserConfig, "plugins" | "css" | "
3443
3570
  plugins: readonly Plugin[];
3444
3571
  css: ResolvedCSSOptions;
3445
3572
  json: Required<JsonOptions>;
3573
+ /** @deprecated Use `oxc` option instead. */
3446
3574
  esbuild: ESBuildOptions | false;
3575
+ oxc: OxcOptions | false;
3447
3576
  server: ResolvedServerOptions;
3448
3577
  dev: ResolvedDevEnvironmentOptions;
3449
3578
  /** @experimental */
@@ -3452,6 +3581,7 @@ interface ResolvedConfig extends Readonly<Omit<UserConfig, "plugins" | "css" | "
3452
3581
  preview: ResolvedPreviewOptions;
3453
3582
  ssr: ResolvedSSROptions;
3454
3583
  assetsInclude: (file: string) => boolean;
3584
+ rawAssetsInclude: (string | RegExp)[];
3455
3585
  logger: Logger;
3456
3586
  /**
3457
3587
  * Create an internal resolver to be used in special scenarios, e.g.
@@ -3561,15 +3691,15 @@ declare class FetchableDevEnvironment extends DevEnvironment {
3561
3691
  }
3562
3692
  //#endregion
3563
3693
  //#region src/node/ssr/runnerImport.d.ts
3564
- interface RunnerImportResult<T$1> {
3565
- module: T$1;
3694
+ interface RunnerImportResult<T> {
3695
+ module: T;
3566
3696
  dependencies: string[];
3567
3697
  }
3568
3698
  /**
3569
3699
  * Import any file using the default Vite environment.
3570
3700
  * @experimental
3571
3701
  */
3572
- declare function runnerImport<T$1>(moduleId: string, inlineConfig?: InlineConfig): Promise<RunnerImportResult<T$1>>;
3702
+ declare function runnerImport<T>(moduleId: string, inlineConfig?: InlineConfig): Promise<RunnerImportResult<T>>;
3573
3703
  //#endregion
3574
3704
  //#region src/node/ssr/fetchModule.d.ts
3575
3705
  interface FetchModuleOptions {
@@ -3610,7 +3740,7 @@ type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;
3610
3740
  declare const createFilter: (include?: FilterPattern, exclude?: FilterPattern, options?: {
3611
3741
  resolve?: string | false | null;
3612
3742
  }) => (id: string | unknown) => boolean;
3613
- declare const rollupVersion: string;
3743
+ declare const rollupVersion = "4.23.0";
3614
3744
  declare function normalizePath(id: string): string;
3615
3745
  declare const isCSSRequest: (request: string) => boolean;
3616
3746
  declare function mergeConfig<D extends Record<string, any>, O extends Record<string, any>>(defaults: D extends Function ? never : D, overrides: O extends Function ? never : O, isRoot?: boolean): Record<string, any>;
@@ -3702,4 +3832,11 @@ interface ManifestChunk {
3702
3832
  dynamicImports?: string[];
3703
3833
  }
3704
3834
  //#endregion
3705
- export { type Alias, type AliasOptions, type AnymatchFn, type AnymatchPattern, type AppType, type BindCLIShortcutsOptions, type BuildAppHook, BuildEnvironment, type BuildEnvironmentOptions, type BuildOptions, type BuilderOptions, type CLIShortcut, type CSSModulesOptions, type CSSOptions, type ChunkMetadata, type CommonServerOptions, type ConfigEnv, type ConfigPluginContext, type Connect, type ConnectedPayload, type CorsOptions, type CorsOrigin, type CustomEventMap, type CustomPayload, type CustomPluginOptionsVite, type DepOptimizationConfig, type DepOptimizationMetadata, type DepOptimizationOptions, DevEnvironment, type DevEnvironmentContext, type DevEnvironmentOptions, type ESBuildOptions, type ESBuildTransformResult, type Environment, type EnvironmentModuleGraph, type EnvironmentModuleNode, type EnvironmentOptions, type ErrorPayload, type EsbuildTransformOptions, type ExperimentalOptions, type ExportsData, type FSWatcher, type FetchFunction, type FetchModuleOptions, type FetchResult, type FetchableDevEnvironment, type FetchableDevEnvironmentContext, type FileSystemServeOptions, type FilterPattern, type FullReloadPayload, type GeneralImportGlobOptions, type HMRPayload, type HTMLOptions, type HmrContext, type HmrOptions, type HookHandler, type HotChannel, type HotChannelClient, type HotChannelListener, type HotPayload, type HotUpdateOptions, type HtmlTagDescriptor, type index_d_exports as HttpProxy, type HttpServer, type ImportGlobFunction, type ImportGlobOptions, type IndexHtmlTransform, type IndexHtmlTransformContext, type IndexHtmlTransformHook, type IndexHtmlTransformResult, type InferCustomEventPayload, type InlineConfig, type InternalResolveOptions, type InvalidatePayload, type JsonOptions, type KnownAsTypeMap, type LegacyOptions, type LessPreprocessorOptions, 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, type MinimalPluginContextWithoutEnvironment, type ModuleGraph, type ModuleNode, type ModulePreloadOptions, type ModuleRunnerTransformOptions, type NormalizedHotChannel, type NormalizedHotChannelClient, type NormalizedServerHotChannel, type OptimizedDepInfo, type Plugin, type PluginContainer, type PluginHookUtils, type PluginOption, type PreprocessCSSResult, type PreviewOptions, type PreviewServer, type PreviewServerHook, type ProxyOptions, type PrunePayload, 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 Rollup, type RollupCommonJSOptions, type RollupDynamicImportVarsOptions, type RunnableDevEnvironment, type RunnableDevEnvironmentContext, type SSROptions, type SSRTarget, type SassPreprocessorOptions, type SendOptions, type ServerHook, type ServerHotChannel, type ServerModuleRunnerOptions, type ServerOptions$1 as ServerOptions, type SkipInformation, type SsrDepOptimizationConfig, type StylusPreprocessorOptions, type Terser, type TerserOptions, type TransformOptions, type TransformResult, type Update, type UpdatePayload, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type ViteBuilder, type ViteDevServer, type WatchOptions, type WebSocket, type WebSocketAlias, type WebSocketClient, type WebSocketCustomListener, type WebSocketServer, build, buildErrorMessage, createBuilder, createFetchableDevEnvironment, createFilter, createIdResolver, createLogger, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defaultAllowedOrigins, DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_EXTERNAL_CONDITIONS as defaultExternalConditions, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, defineConfig, esbuildVersion, fetchModule, formatPostcssSourceMap, isCSSRequest, isFetchableDevEnvironment, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, ssrTransform as moduleRunnerTransform, normalizePath, optimizeDeps, parseAst, parseAstAsync, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, transformWithEsbuild, VERSION as version };
3835
+ //#region src/node/index.d.ts
3836
+ /** @deprecated - use `parse` instead */
3837
+ declare const parseAst: typeof parseAst$1;
3838
+ /** @deprecated - use `parseAsync` instead */
3839
+ declare const parseAstAsync: typeof parseAstAsync$1;
3840
+ declare const esbuildVersion = "0.25.0";
3841
+ //#endregion
3842
+ export { type Alias, type AliasOptions, type AnymatchFn, type AnymatchPattern, type AppType, type BindCLIShortcutsOptions, type BuildAppHook, BuildEnvironment, type BuildEnvironmentOptions, type BuildOptions, type BuilderOptions, type CLIShortcut, type CSSModulesOptions, type CSSOptions, type ChunkMetadata, type CommonServerOptions, type ConfigEnv, type ConfigPluginContext, type Connect, type ConnectedPayload, type CorsOptions, type CorsOrigin, type CustomEventMap, type CustomPayload, type CustomPluginOptionsVite, type DepOptimizationConfig, type DepOptimizationMetadata, type DepOptimizationOptions, DevEnvironment, type DevEnvironmentContext, type DevEnvironmentOptions, type ESBuildOptions, type Environment, type EnvironmentModuleGraph, type EnvironmentModuleNode, type EnvironmentOptions, type ErrorPayload, type EsbuildTransformOptions, type ExperimentalOptions, type ExportsData, type FSWatcher, type FetchFunction, type FetchModuleOptions, type FetchResult, type FetchableDevEnvironment, type FetchableDevEnvironmentContext, type FileSystemServeOptions, type FilterPattern, type FullReloadPayload, type GeneralImportGlobOptions, type HMRPayload, type HTMLOptions, type HmrContext, type HmrOptions, type HookHandler, type HotChannel, type HotChannelClient, type HotChannelListener, type HotPayload, type HotUpdateOptions, type HtmlTagDescriptor, type index_d_exports as HttpProxy, type HttpServer, type ImportGlobFunction, type ImportGlobOptions, type IndexHtmlTransform, type IndexHtmlTransformContext, type IndexHtmlTransformHook, type IndexHtmlTransformResult, type InferCustomEventPayload, type InlineConfig, type InternalResolveOptions, type InvalidatePayload, type JsonOptions, type KnownAsTypeMap, type LegacyOptions, type LessPreprocessorOptions, 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, type MinifyOptions, type MinifyResult, type MinimalPluginContextWithoutEnvironment, type ModuleGraph, type ModuleNode, type ModulePreloadOptions, type ModuleRunnerTransformOptions, type NormalizedHotChannel, type NormalizedHotChannelClient, type NormalizedServerHotChannel, type OptimizedDepInfo, type OxcOptions, type ParseResult, type ParserOptions, type Plugin, type PluginContainer, type PluginHookUtils, type PluginOption, type PreprocessCSSResult, type PreviewOptions, type PreviewServer, type PreviewServerHook, type ProxyOptions, type PrunePayload, 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 Rolldown, type Rollup, type RollupCommonJSOptions, type RollupDynamicImportVarsOptions, type RunnableDevEnvironment, type RunnableDevEnvironmentContext, type SSROptions, type SSRTarget, type SassPreprocessorOptions, type SendOptions, type ServerHook, type ServerHotChannel, type ServerModuleRunnerOptions, type ServerOptions$1 as ServerOptions, type SkipInformation, type SsrDepOptimizationConfig, type StylusPreprocessorOptions, type Terser, type TerserOptions, type TransformOptions, type TransformResult, type Update, type UpdatePayload, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type ViteBuilder, type ViteDevServer, type WatchOptions, type WebSocket, type WebSocketAlias, type WebSocketClient, type WebSocketCustomListener, type WebSocketServer, build, buildErrorMessage, createBuilder, createFetchableDevEnvironment, createFilter, createIdResolver, createLogger, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defaultAllowedOrigins, DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_EXTERNAL_CONDITIONS as defaultExternalConditions, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, defineConfig, esbuildVersion, esmExternalRequirePlugin, fetchModule, formatPostcssSourceMap, isCSSRequest, isFetchableDevEnvironment, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, minify, minifySync, ssrTransform as moduleRunnerTransform, normalizePath, optimizeDeps, parse, parseAst, parseAstAsync, parseSync, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rolldownVersion, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, transformWithEsbuild, transformWithOxc, VERSION as version, withFilter };