File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -372,6 +372,8 @@ export interface UserConfig extends DefaultEnvironmentOptions {
372372 /**
373373 * Transform options to pass to esbuild.
374374 * Or set to `false` to disable esbuild.
375+ *
376+ * @deprecated Use `oxc` option instead.
375377 */
376378 esbuild ?: ESBuildOptions | false
377379 /**
@@ -626,6 +628,7 @@ export interface ResolvedConfig
626628 plugins : readonly Plugin [ ]
627629 css : ResolvedCSSOptions
628630 json : Required < JsonOptions >
631+ /** @deprecated Use `oxc` option instead. */
629632 esbuild : ESBuildOptions | false
630633 oxc : OxcOptions | false
631634 server : ResolvedServerOptions
Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ export interface DepOptimizationConfig {
9595 * - `plugins` are merged with Vite's dep plugin
9696 *
9797 * https://esbuild.github.io/api
98+ *
99+ * @deprecated Use `rolldownOptions` instead.
98100 */
99101 esbuildOptions ?: DepsOptimizerEsbuildOptions
100102 /**
@@ -106,6 +108,14 @@ export interface DepOptimizationConfig {
106108 'format' | 'sourcemap' | 'dir' | 'banner'
107109 >
108110 }
111+ /**
112+ * Options to pass to rolldown during the dep scanning and optimization
113+ *
114+ * Certain options are omitted since changing them would not be compatible
115+ * with Vite's dep optimization.
116+ *
117+ * - `plugins` are merged with Vite's dep plugin
118+ */
109119 rolldownOptions ?: Omit < RolldownOptions , 'input' | 'logLevel' | 'output' > & {
110120 output ?: Omit <
111121 RolldownOutputOptions ,
You can’t perform that action at this time.
0 commit comments