vite 7.2.4 → 8.0.0-beta.0

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 {
@@ -40,9 +43,9 @@ interface Alias {
40
43
  customResolver?: ResolverFunction | ResolverObject | null;
41
44
  }
42
45
  type MapToFunction<T$1> = T$1 extends Function ? T$1 : never;
43
- type ResolverFunction = MapToFunction<PluginHooks['resolveId']>;
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
  /**
@@ -317,7 +320,7 @@ declare namespace Connect {
317
320
  }
318
321
  }
319
322
  //#endregion
320
- //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/http-proxy/index.d.ts
323
+ //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0_patch_hash=d89dff5a0afc2cb277080ad056a3baf7feeeeac19144878abc17f4c91ad89095_ms@2.1.3/node_modules/http-proxy-3/dist/lib/http-proxy/index.d.ts
321
324
  interface ProxyTargetDetailed {
322
325
  host: string;
323
326
  port: number;
@@ -489,7 +492,7 @@ declare class ProxyServer<TIncomingMessage extends typeof http.IncomingMessage =
489
492
  after: <PT extends ProxyType>(type: PT, passName: string, cb: PassFunctions<TIncomingMessage, TServerResponse, TError>[PT]) => void;
490
493
  }
491
494
  //#endregion
492
- //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/http-proxy/passes/ws-incoming.d.ts
495
+ //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0_patch_hash=d89dff5a0afc2cb277080ad056a3baf7feeeeac19144878abc17f4c91ad89095_ms@2.1.3/node_modules/http-proxy-3/dist/lib/http-proxy/passes/ws-incoming.d.ts
493
496
  declare function numOpenSockets(): number;
494
497
  declare namespace index_d_exports {
495
498
  export { ErrorCallback, ProxyServer, ProxyTarget, ProxyTargetUrl, ServerOptions$3 as ServerOptions, createProxyServer as createProxy, createProxyServer, createProxyServer as createServer, ProxyServer as default, numOpenSockets };
@@ -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.
819
+ */
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
810
830
  */
811
- esbuildOptions?: Omit<esbuild_BuildOptions, "bundle" | "entryPoints" | "external" | "write" | "watch" | "outdir" | "outfile" | "outbase" | "outExtension" | "metafile">;
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
  /**
@@ -1853,6 +1876,15 @@ interface ResolveOptions extends EnvironmentResolveOptions {
1853
1876
  * @default false
1854
1877
  */
1855
1878
  preserveSymlinks?: boolean;
1879
+ /**
1880
+ * Enable tsconfig paths resolution
1881
+ *
1882
+ * This option does not have any effect if `experimental.enableNativePlugin` is set to `false`.
1883
+ *
1884
+ * @default false
1885
+ * @experimental
1886
+ */
1887
+ tsconfigPaths?: boolean;
1856
1888
  }
1857
1889
  interface ResolvePluginOptions {
1858
1890
  root: string;
@@ -1870,6 +1902,10 @@ interface ResolvePluginOptions {
1870
1902
  preferRelative?: boolean;
1871
1903
  isRequire?: boolean;
1872
1904
  scan?: boolean;
1905
+ /**
1906
+ * Enable when `legacy.inconsistentCjsInterop` is true. See that option for more details.
1907
+ */
1908
+ legacyInconsistentCjsInterop?: boolean;
1873
1909
  }
1874
1910
  interface InternalResolveOptions extends Required<ResolveOptions>, ResolvePluginOptions {}
1875
1911
  //#endregion
@@ -1914,8 +1950,8 @@ interface BuildEnvironmentOptions {
1914
1950
  * syntax transformation and does not cover polyfills
1915
1951
  *
1916
1952
  * 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+).
1953
+ * are included in the Baseline Widely Available on 2026-01-01.
1954
+ * (Chrome 111+, Edge 111+, Firefox 114+, Safari 16.4+).
1919
1955
  *
1920
1956
  * Another special value is 'esnext' - which only performs minimal transpiling
1921
1957
  * (for minification compat).
@@ -1924,7 +1960,7 @@ interface BuildEnvironmentOptions {
1924
1960
  * https://esbuild.github.io/content-types/#javascript for more details.
1925
1961
  * @default 'baseline-widely-available'
1926
1962
  */
1927
- target?: "baseline-widely-available" | esbuild_TransformOptions["target"] | false;
1963
+ target?: "baseline-widely-available" | EsbuildTarget | false;
1928
1964
  /**
1929
1965
  * whether to inject module preload polyfill.
1930
1966
  * Note: does not apply to library mode.
@@ -1975,13 +2011,13 @@ interface BuildEnvironmentOptions {
1975
2011
  * doesn't support the #RGBA syntax.
1976
2012
  * @default target
1977
2013
  */
1978
- cssTarget?: esbuild_TransformOptions["target"] | false;
2014
+ cssTarget?: EsbuildTarget | false;
1979
2015
  /**
1980
2016
  * Override CSS minification specifically instead of defaulting to `build.minify`,
1981
2017
  * so you can configure minification for JS and CSS separately.
1982
- * @default 'esbuild'
2018
+ * @default 'lightningcss'
1983
2019
  */
1984
- cssMinify?: boolean | "esbuild" | "lightningcss";
2020
+ cssMinify?: boolean | "lightningcss" | "esbuild";
1985
2021
  /**
1986
2022
  * If `true`, a separate sourcemap file will be created. If 'inline', the
1987
2023
  * sourcemap will be appended to the resulting output file as data URI.
@@ -1992,10 +2028,10 @@ interface BuildEnvironmentOptions {
1992
2028
  sourcemap?: boolean | "inline" | "hidden";
1993
2029
  /**
1994
2030
  * Set to `false` to disable minification, or specify the minifier to use.
1995
- * Available options are 'terser' or 'esbuild'.
1996
- * @default 'esbuild'
2031
+ * Available options are 'oxc' or 'terser' or 'esbuild'.
2032
+ * @default 'oxc'
1997
2033
  */
1998
- minify?: boolean | "terser" | "esbuild";
2034
+ minify?: boolean | "oxc" | "terser" | "esbuild";
1999
2035
  /**
2000
2036
  * Options for terser
2001
2037
  * https://terser.org/docs/api-reference#minify-options
@@ -2005,12 +2041,18 @@ interface BuildEnvironmentOptions {
2005
2041
  */
2006
2042
  terserOptions?: TerserOptions;
2007
2043
  /**
2008
- * Will be merged with internal rollup options.
2009
- * https://rollupjs.org/configuration-options/
2044
+ * Alias to `rolldownOptions`
2045
+ * @deprecated Use `rolldownOptions` instead.
2046
+ */
2047
+ rollupOptions?: RolldownOptions;
2048
+ /**
2049
+ * Will be merged with internal rolldown options.
2050
+ * https://rolldown.rs/reference/config-options
2010
2051
  */
2011
- rollupOptions?: RollupOptions;
2052
+ rolldownOptions?: RolldownOptions;
2012
2053
  /**
2013
2054
  * Options to pass on to `@rollup/plugin-commonjs`
2055
+ * @deprecated This option is no-op and will be removed in future versions.
2014
2056
  */
2015
2057
  commonjsOptions?: RollupCommonJSOptions;
2016
2058
  /**
@@ -2138,7 +2180,7 @@ interface LibraryOptions {
2138
2180
  */
2139
2181
  cssFileName?: string;
2140
2182
  }
2141
- type LibraryFormats = "es" | "cjs" | "umd" | "iife" | "system";
2183
+ type LibraryFormats = "es" | "cjs" | "umd" | "iife";
2142
2184
  interface ModulePreloadOptions {
2143
2185
  /**
2144
2186
  * Whether to inject a module preload polyfill.
@@ -2170,7 +2212,7 @@ interface ResolvedBuildOptions extends Required<Omit<BuildOptions, "polyfillModu
2170
2212
  * Bundles a single environment for production.
2171
2213
  * Returns a Promise containing the build result.
2172
2214
  */
2173
- declare function build(inlineConfig?: InlineConfig): Promise<RollupOutput | RollupOutput[] | RollupWatcher>;
2215
+ declare function build(inlineConfig?: InlineConfig): Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher>;
2174
2216
  type RenderBuiltAssetUrl = (filename: string, type: {
2175
2217
  type: "asset" | "public";
2176
2218
  hostId: string;
@@ -2192,7 +2234,7 @@ interface ViteBuilder {
2192
2234
  environments: Record<string, BuildEnvironment>;
2193
2235
  config: ResolvedConfig;
2194
2236
  buildApp(): Promise<void>;
2195
- build(environment: BuildEnvironment): Promise<RollupOutput | RollupOutput[] | RollupWatcher>;
2237
+ build(environment: BuildEnvironment): Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher>;
2196
2238
  }
2197
2239
  interface BuilderOptions {
2198
2240
  /**
@@ -2261,6 +2303,7 @@ declare class EnvironmentPluginContainer<Env extends Environment = Environment>
2261
2303
  private hookParallel;
2262
2304
  buildStart(_options?: InputOptions): Promise<void>;
2263
2305
  resolveId(rawId: string, importer?: string | undefined, options?: {
2306
+ kind?: ImportKind;
2264
2307
  attributes?: Record<string, string>;
2265
2308
  custom?: CustomPluginOptions;
2266
2309
  /** @deprecated use `skipCalls` instead */
@@ -2272,11 +2315,13 @@ declare class EnvironmentPluginContainer<Env extends Environment = Environment>
2272
2315
  load(id: string): Promise<LoadResult | null>;
2273
2316
  transform(code: string, id: string, options?: {
2274
2317
  inMap?: SourceDescription["map"];
2318
+ moduleType?: string;
2275
2319
  }): Promise<{
2276
2320
  code: string;
2277
2321
  map: SourceMap | {
2278
2322
  mappings: "";
2279
2323
  } | null;
2324
+ moduleType?: ModuleType;
2280
2325
  }>;
2281
2326
  watchChange(id: string, change: {
2282
2327
  event: "create" | "update" | "delete";
@@ -2287,6 +2332,7 @@ declare class BasicMinimalPluginContext<Meta = PluginContextMeta> {
2287
2332
  meta: Meta;
2288
2333
  private _logger;
2289
2334
  constructor(meta: Meta, _logger: Logger);
2335
+ get pluginName(): string;
2290
2336
  debug(rawLog: string | RollupLog | (() => string | RollupLog)): void;
2291
2337
  info(rawLog: string | RollupLog | (() => string | RollupLog)): void;
2292
2338
  warn(rawLog: string | RollupLog | (() => string | RollupLog)): void;
@@ -2677,7 +2723,7 @@ interface ConfigPluginContext extends Omit<MinimalPluginContext, "meta" | "envir
2677
2723
  meta: Omit<PluginContextMeta, "watchMode">;
2678
2724
  }
2679
2725
  interface MinimalPluginContextWithoutEnvironment extends Omit<MinimalPluginContext, "environment"> {}
2680
- declare module "rollup" {
2726
+ declare module "rolldown" {
2681
2727
  interface MinimalPluginContext extends PluginContextExtension {}
2682
2728
  interface PluginContextMeta extends PluginContextMetaExtension {}
2683
2729
  }
@@ -2691,7 +2737,7 @@ declare module "rollup" {
2691
2737
  * Environment Plugins are closer to regular rollup plugins. They can't define
2692
2738
  * app level hooks (like config, configResolved, configureServer, etc).
2693
2739
  */
2694
- interface Plugin<A = any> extends Rollup.Plugin<A> {
2740
+ interface Plugin<A = any> extends Rolldown.Plugin<A> {
2695
2741
  /**
2696
2742
  * Perform custom handling of HMR updates.
2697
2743
  * The handler receives an options containing changed filename, timestamp, a
@@ -2714,7 +2760,7 @@ interface Plugin<A = any> extends Rollup.Plugin<A> {
2714
2760
  * extend hooks with ssr flag
2715
2761
  */
2716
2762
  resolveId?: ObjectHook<(this: PluginContext, source: string, importer: string | undefined, options: {
2717
- attributes: Record<string, string>;
2763
+ kind?: ImportKind;
2718
2764
  custom?: CustomPluginOptions;
2719
2765
  ssr?: boolean | undefined;
2720
2766
 
@@ -2732,11 +2778,13 @@ interface Plugin<A = any> extends Rollup.Plugin<A> {
2732
2778
  };
2733
2779
  }>;
2734
2780
  transform?: ObjectHook<(this: TransformPluginContext, code: string, id: string, options?: {
2781
+ moduleType: ModuleType;
2735
2782
  ssr?: boolean | undefined;
2736
- }) => Promise<Rollup.TransformResult> | Rollup.TransformResult, {
2783
+ }) => Promise<Rolldown.TransformResult> | Rolldown.TransformResult, {
2737
2784
  filter?: {
2738
2785
  id?: StringFilter;
2739
2786
  code?: StringFilter;
2787
+ moduleType?: ModuleTypeFilter;
2740
2788
  };
2741
2789
  }>;
2742
2790
  /**
@@ -2881,12 +2929,25 @@ interface Plugin<A = any> extends Rollup.Plugin<A> {
2881
2929
  * normal.
2882
2930
  */
2883
2931
  handleHotUpdate?: ObjectHook<(this: MinimalPluginContextWithoutEnvironment, ctx: HmrContext) => Array<ModuleNode> | void | Promise<Array<ModuleNode> | void>>;
2932
+ /**
2933
+ * This hook is not supported by Rolldown yet. But the type is declared for compatibility.
2934
+ *
2935
+ * @deprecated This hook is **not** deprecated. It is marked as deprecated just to make it clear that this hook is currently a no-op.
2936
+ */
2937
+ shouldTransformCachedModule?: ObjectHook<(this: PluginContext, options: {
2938
+ code: string;
2939
+ id: string;
2940
+ meta: CustomPluginOptions;
2941
+ moduleSideEffects: boolean | "no-treeshake";
2942
+ }) => boolean | null | void>;
2884
2943
  }
2885
2944
  type HookHandler<T$1> = T$1 extends ObjectHook<infer H> ? H : T$1;
2886
2945
  type PluginWithRequiredHook<K$1 extends keyof Plugin> = Plugin & { [P in K$1]: NonNullable<Plugin[P]> };
2887
2946
  type Thenable<T$1> = T$1 | Promise<T$1>;
2888
2947
  type FalsyPlugin = false | null | undefined;
2889
- type PluginOption = Thenable<Plugin | FalsyPlugin | PluginOption[]>;
2948
+ type PluginOption = Thenable<Plugin | {
2949
+ name: string;
2950
+ } | FalsyPlugin | PluginOption[]>;
2890
2951
  /**
2891
2952
  * @experimental
2892
2953
  */
@@ -2983,7 +3044,7 @@ type StylusPreprocessorOptions = {
2983
3044
  } & StylusPreprocessorBaseOptions;
2984
3045
  //#endregion
2985
3046
  //#region src/node/plugins/esbuild.d.ts
2986
- interface ESBuildOptions extends esbuild_TransformOptions {
3047
+ interface ESBuildOptions extends esbuildOptions_EsbuildTransformOptions {
2987
3048
  include?: string | RegExp | ReadonlyArray<string | RegExp>;
2988
3049
  exclude?: string | RegExp | ReadonlyArray<string | RegExp>;
2989
3050
  jsxInject?: string;
@@ -2992,10 +3053,10 @@ interface ESBuildOptions extends esbuild_TransformOptions {
2992
3053
  */
2993
3054
  minify?: never;
2994
3055
  }
2995
- type ESBuildTransformResult = Omit<esbuild_TransformResult, "map"> & {
3056
+ type ESBuildTransformResult = Omit<EsbuildTransformResult, "map"> & {
2996
3057
  map: SourceMap;
2997
3058
  };
2998
- declare function transformWithEsbuild(code: string, filename: string, options?: esbuild_TransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher): Promise<ESBuildTransformResult>;
3059
+ declare function transformWithEsbuild(code: string, filename: string, options?: esbuildOptions_EsbuildTransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher, ignoreEsbuildWarning?: boolean): Promise<ESBuildTransformResult>;
2999
3060
  //#endregion
3000
3061
  //#region src/node/plugins/json.d.ts
3001
3062
  interface JsonOptions {
@@ -3058,6 +3119,18 @@ interface ResolvedSSROptions extends SSROptions {
3058
3119
  optimizeDeps: SsrDepOptimizationConfig;
3059
3120
  }
3060
3121
  //#endregion
3122
+ //#region src/node/plugins/oxc.d.ts
3123
+ interface OxcOptions extends Omit<rolldown_experimental_TransformOptions, "cwd" | "sourceType" | "lang" | "sourcemap" | "helpers"> {
3124
+ include?: string | RegExp | ReadonlyArray<string | RegExp>;
3125
+ exclude?: string | RegExp | ReadonlyArray<string | RegExp>;
3126
+ jsxInject?: string;
3127
+ jsxRefreshInclude?: string | RegExp | ReadonlyArray<string | RegExp>;
3128
+ jsxRefreshExclude?: string | RegExp | ReadonlyArray<string | RegExp>;
3129
+ }
3130
+ declare function transformWithOxc(code: string, filename: string, options?: rolldown_experimental_TransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher): Promise<Omit<rolldown_experimental_TransformResult, "errors"> & {
3131
+ warnings: string[];
3132
+ }>;
3133
+ //#endregion
3061
3134
  //#region src/node/config.d.ts
3062
3135
  interface ConfigEnv {
3063
3136
  /**
@@ -3251,9 +3324,16 @@ interface UserConfig extends DefaultEnvironmentOptions {
3251
3324
  /**
3252
3325
  * Transform options to pass to esbuild.
3253
3326
  * Or set to `false` to disable esbuild.
3327
+ *
3328
+ * @deprecated Use `oxc` option instead.
3254
3329
  */
3255
3330
  esbuild?: ESBuildOptions | false;
3256
3331
  /**
3332
+ * Transform options to pass to Oxc.
3333
+ * Or set to `false` to disable Oxc.
3334
+ */
3335
+ oxc?: OxcOptions | false;
3336
+ /**
3257
3337
  * Specify additional picomatch patterns to be treated as static assets.
3258
3338
  */
3259
3339
  assetsInclude?: string | RegExp | (string | RegExp)[];
@@ -3325,13 +3405,18 @@ interface UserConfig extends DefaultEnvironmentOptions {
3325
3405
  /**
3326
3406
  * Vite plugins that apply to worker bundle. The plugins returned by this function
3327
3407
  * should be new instances every time it is called, because they are used for each
3328
- * rollup worker bundling process.
3408
+ * rolldown worker bundling process.
3329
3409
  */
3330
3410
  plugins?: () => PluginOption[];
3331
3411
  /**
3332
- * Rollup options to build worker bundle
3412
+ * Alias to `rolldownOptions`.
3413
+ * @deprecated Use `rolldownOptions` instead.
3333
3414
  */
3334
- rollupOptions?: Omit<RollupOptions, "plugins" | "input" | "onwarn" | "preserveEntrySignatures">;
3415
+ rollupOptions?: Omit<RolldownOptions, "plugins" | "input" | "onwarn" | "preserveEntrySignatures">;
3416
+ /**
3417
+ * Rolldown options to build worker bundle
3418
+ */
3419
+ rolldownOptions?: Omit<RolldownOptions, "plugins" | "input" | "onwarn" | "preserveEntrySignatures">;
3335
3420
  };
3336
3421
  /**
3337
3422
  * Dep optimization options
@@ -3395,6 +3480,17 @@ interface ExperimentalOptions {
3395
3480
  * @default false
3396
3481
  */
3397
3482
  hmrPartialAccept?: boolean;
3483
+ /**
3484
+ * Enable builtin plugin that written by rust, which is faster than js plugin.
3485
+ *
3486
+ * - 'resolver' (deprecated, will be removed in v8 stable): Enable only the native resolver plugin.
3487
+ * - 'v1' (will be deprecated, will be removed in v8 stable): Enable the first stable set of native plugins (including resolver).
3488
+ * - true: Enable all native plugins (currently an alias of 'v1', it will map to a newer one in the future versions).
3489
+ *
3490
+ * @experimental
3491
+ * @default 'v1'
3492
+ */
3493
+ enableNativePlugin?: boolean | "resolver" | "v1";
3398
3494
  }
3399
3495
  interface LegacyOptions {
3400
3496
  /**
@@ -3409,11 +3505,26 @@ interface LegacyOptions {
3409
3505
  * that security weakness.**
3410
3506
  */
3411
3507
  skipWebSocketTokenCheck?: boolean;
3508
+ /**
3509
+ * Opt-in to the pre-Vite 8 CJS interop behavior, which was inconsistent.
3510
+ *
3511
+ * In pre-Vite 8 versions, Vite had inconsistent CJS interop behavior. This was due to
3512
+ * the different behavior of esbuild and the Rollup commonjs plugin.
3513
+ * Vite 8+ uses Rolldown for both the dependency optimization in dev and the production build,
3514
+ * which aligns the behavior to esbuild.
3515
+ *
3516
+ * See the Vite 8 migration guide for more details.
3517
+ */
3518
+ inconsistentCjsInterop?: boolean;
3412
3519
  }
3413
3520
  interface ResolvedWorkerOptions {
3414
3521
  format: "es" | "iife";
3415
3522
  plugins: (bundleChain: string[]) => Promise<ResolvedConfig>;
3416
- rollupOptions: RollupOptions;
3523
+ /**
3524
+ * @deprecated Use `rolldownOptions` instead.
3525
+ */
3526
+ rollupOptions: RolldownOptions;
3527
+ rolldownOptions: RolldownOptions;
3417
3528
  }
3418
3529
  interface InlineConfig extends UserConfig {
3419
3530
  configFile?: string | false;
@@ -3443,7 +3554,9 @@ interface ResolvedConfig extends Readonly<Omit<UserConfig, "plugins" | "css" | "
3443
3554
  plugins: readonly Plugin[];
3444
3555
  css: ResolvedCSSOptions;
3445
3556
  json: Required<JsonOptions>;
3557
+ /** @deprecated Use `oxc` option instead. */
3446
3558
  esbuild: ESBuildOptions | false;
3559
+ oxc: OxcOptions | false;
3447
3560
  server: ResolvedServerOptions;
3448
3561
  dev: ResolvedDevEnvironmentOptions;
3449
3562
  /** @experimental */
@@ -3452,6 +3565,7 @@ interface ResolvedConfig extends Readonly<Omit<UserConfig, "plugins" | "css" | "
3452
3565
  preview: ResolvedPreviewOptions;
3453
3566
  ssr: ResolvedSSROptions;
3454
3567
  assetsInclude: (file: string) => boolean;
3568
+ rawAssetsInclude: (string | RegExp)[];
3455
3569
  logger: Logger;
3456
3570
  /**
3457
3571
  * Create an internal resolver to be used in special scenarios, e.g.
@@ -3610,7 +3724,7 @@ type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;
3610
3724
  declare const createFilter: (include?: FilterPattern, exclude?: FilterPattern, options?: {
3611
3725
  resolve?: string | false | null;
3612
3726
  }) => (id: string | unknown) => boolean;
3613
- declare const rollupVersion: string;
3727
+ declare const rollupVersion = "4.23.0";
3614
3728
  declare function normalizePath(id: string): string;
3615
3729
  declare const isCSSRequest: (request: string) => boolean;
3616
3730
  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>;
@@ -3654,15 +3768,59 @@ declare function resolveEnvPrefix({
3654
3768
  //#region src/node/plugins/manifest.d.ts
3655
3769
  type Manifest = Record<string, ManifestChunk>;
3656
3770
  interface ManifestChunk {
3771
+ /**
3772
+ * The input file name of this chunk / asset if known
3773
+ */
3657
3774
  src?: string;
3775
+ /**
3776
+ * The output file name of this chunk / asset
3777
+ */
3658
3778
  file: string;
3779
+ /**
3780
+ * The list of CSS files imported by this chunk
3781
+ *
3782
+ * This field is only present in JS chunks.
3783
+ */
3659
3784
  css?: string[];
3785
+ /**
3786
+ * The list of asset files imported by this chunk, excluding CSS files
3787
+ *
3788
+ * This field is only present in JS chunks.
3789
+ */
3660
3790
  assets?: string[];
3791
+ /**
3792
+ * Whether this chunk or asset is an entry point
3793
+ */
3661
3794
  isEntry?: boolean;
3795
+ /**
3796
+ * The name of this chunk / asset if known
3797
+ */
3662
3798
  name?: string;
3799
+ /**
3800
+ * Whether this chunk is a dynamic entry point
3801
+ *
3802
+ * This field is only present in JS chunks.
3803
+ */
3663
3804
  isDynamicEntry?: boolean;
3805
+ /**
3806
+ * The list of statically imported chunks by this chunk
3807
+ *
3808
+ * The values are the keys of the manifest. This field is only present in JS chunks.
3809
+ */
3664
3810
  imports?: string[];
3811
+ /**
3812
+ * The list of dynamically imported chunks by this chunk
3813
+ *
3814
+ * The values are the keys of the manifest. This field is only present in JS chunks.
3815
+ */
3665
3816
  dynamicImports?: string[];
3666
3817
  }
3667
3818
  //#endregion
3668
- 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 };
3819
+ //#region src/node/index.d.ts
3820
+ /** @deprecated - use `parse` instead */
3821
+ declare const parseAst: typeof parseAst$1;
3822
+ /** @deprecated - use `parseAsync` instead */
3823
+ declare const parseAstAsync: typeof parseAstAsync$1;
3824
+ declare const esbuildVersion = "0.25.0";
3825
+ //#endregion
3826
+ 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 };
@@ -1,30 +1,4 @@
1
1
  import { F as defaultAllowedOrigins, N as VERSION, _ as DEFAULT_SERVER_CONDITIONS, d as DEFAULT_CLIENT_MAIN_FIELDS, h as DEFAULT_EXTERNAL_CONDITIONS, n as createLogger, u as DEFAULT_CLIENT_CONDITIONS, v as DEFAULT_SERVER_MAIN_FIELDS } from "./chunks/logger.js";
2
- import { Ct as perEnvironmentPlugin, Dt as mergeConfig, Et as mergeAlias, J as optimizeDeps, Ot as normalizePath, St as perEnvironmentState, Tt as isCSSRequest, _ as build, _t as createServerModuleRunnerTransport, b as createBuilder, bt as resolveEnvPrefix, c as sortUserPlugins, dt as searchForWorkspaceRoot, f as createRunnableDevEnvironment, ft as isFileLoadingAllowed, g as BuildEnvironment, gt as createServerModuleRunner, h as fetchModule, ht as ssrTransform, i as loadConfigFromFile, it as createServerHotChannel, kt as rollupVersion, l as runnerImport, m as DevEnvironment, mt as send, nt as preprocessCSS, o as resolveConfig, ot as createServer, p as isRunnableDevEnvironment, pt as isFileServingAllowed, rt as createIdResolver, t as defineConfig, tt as formatPostcssSourceMap, u as preview, vt as buildErrorMessage, wt as createFilter, xt as transformWithEsbuild, yt as loadEnv } from "./chunks/config.js";
3
- import { parseAst, parseAstAsync } from "rollup/parseAst";
4
- import { version as esbuildVersion } from "esbuild";
2
+ import { At as loadEnv, Bt as normalizePath, C as isRunnableDevEnvironment, Ct as isFileLoadingAllowed, Dt as createServerModuleRunner, E as BuildEnvironment, Et as ssrTransform, Ft as perEnvironmentPlugin, Ht as rollupVersion, It as createFilter, Lt as isCSSRequest, Mt as transformWithOxc, Nt as transformWithEsbuild, O as build, Ot as createServerModuleRunnerTransport, Pt as perEnvironmentState, Rt as mergeAlias, S as createRunnableDevEnvironment, St as createIdResolver, T as fetchModule, Tt as send, Ut as withFilter, Vt as rolldownVersion, a as parse, at as optimizeDeps, b as preview, bt as preprocessCSS, c as parseSync, d as defineConfig, ft as createServerHotChannel, g as resolveConfig, i as minifySync, j as createBuilder, jt as resolveEnvPrefix, kt as buildErrorMessage, l as createFetchableDevEnvironment, m as loadConfigFromFile, mt as createServer, n as esmExternalRequirePlugin, o as parseAst, r as minify, s as parseAstAsync, t as esbuildVersion, u as isFetchableDevEnvironment, v as sortUserPlugins, w as DevEnvironment, wt as isFileServingAllowed, xt as searchForWorkspaceRoot, y as runnerImport, yt as formatPostcssSourceMap, zt as mergeConfig } from "./chunks/node.js";
5
3
 
6
- //#region src/node/server/environments/fetchableEnvironments.ts
7
- function createFetchableDevEnvironment(name, config, context) {
8
- if (typeof Request === "undefined" || typeof Response === "undefined") throw new TypeError("FetchableDevEnvironment requires a global `Request` and `Response` object.");
9
- if (!context.handleRequest) throw new TypeError("FetchableDevEnvironment requires a `handleRequest` method during initialisation.");
10
- return new FetchableDevEnvironment(name, config, context);
11
- }
12
- function isFetchableDevEnvironment(environment) {
13
- return environment instanceof FetchableDevEnvironment;
14
- }
15
- var FetchableDevEnvironment = class extends DevEnvironment {
16
- _handleRequest;
17
- constructor(name, config, context) {
18
- super(name, config, context);
19
- this._handleRequest = context.handleRequest;
20
- }
21
- async dispatchFetch(request) {
22
- if (!(request instanceof Request)) throw new TypeError("FetchableDevEnvironment `dispatchFetch` must receive a `Request` object.");
23
- const response = await this._handleRequest(request);
24
- if (!(response instanceof Response)) throw new TypeError("FetchableDevEnvironment `context.handleRequest` must return a `Response` object.");
25
- return response;
26
- }
27
- };
28
-
29
- //#endregion
30
- export { BuildEnvironment, DevEnvironment, 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 };
4
+ export { BuildEnvironment, DevEnvironment, 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 };
@@ -0,0 +1,2 @@
1
+ import { viteReactRefreshWrapperPlugin as reactRefreshWrapperPlugin } from "rolldown/experimental";
2
+ export { reactRefreshWrapperPlugin };
@@ -0,0 +1,3 @@
1
+ import { viteReactRefreshWrapperPlugin as reactRefreshWrapperPlugin } from "rolldown/experimental";
2
+
3
+ export { reactRefreshWrapperPlugin };