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 {
372
372
/**
373
373
* Transform options to pass to esbuild.
374
374
* Or set to `false` to disable esbuild.
375
+ *
376
+ * @deprecated Use `oxc` option instead.
375
377
*/
376
378
esbuild ?: ESBuildOptions | false
377
379
/**
@@ -626,6 +628,7 @@ export interface ResolvedConfig
626
628
plugins : readonly Plugin [ ]
627
629
css : ResolvedCSSOptions
628
630
json : Required < JsonOptions >
631
+ /** @deprecated Use `oxc` option instead. */
629
632
esbuild : ESBuildOptions | false
630
633
oxc : OxcOptions | false
631
634
server : ResolvedServerOptions
Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ export interface DepOptimizationConfig {
95
95
* - `plugins` are merged with Vite's dep plugin
96
96
*
97
97
* https://esbuild.github.io/api
98
+ *
99
+ * @deprecated Use `rolldownOptions` instead.
98
100
*/
99
101
esbuildOptions ?: DepsOptimizerEsbuildOptions
100
102
/**
@@ -106,6 +108,14 @@ export interface DepOptimizationConfig {
106
108
'format' | 'sourcemap' | 'dir' | 'banner'
107
109
>
108
110
}
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
+ */
109
119
rolldownOptions ?: Omit < RolldownOptions , 'input' | 'logLevel' | 'output' > & {
110
120
output ?: Omit <
111
121
RolldownOutputOptions ,
You can’t perform that action at this time.
0 commit comments