File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -348,6 +348,7 @@ export type ResolvedConfig = Readonly<
348
348
alias : Alias [ ]
349
349
}
350
350
plugins : readonly Plugin [ ]
351
+ esbuild : ESBuildOptions | false
351
352
server : ResolvedServerOptions
352
353
build : ResolvedBuildOptions
353
354
preview : ResolvedPreviewOptions
@@ -657,6 +658,13 @@ export async function resolveConfig(
657
658
mainConfig : null ,
658
659
isProduction,
659
660
plugins : userPlugins ,
661
+ esbuild :
662
+ config . esbuild === false
663
+ ? false
664
+ : {
665
+ jsxDev : ! isProduction ,
666
+ ...config . esbuild ,
667
+ } ,
660
668
server,
661
669
build : resolvedBuildOptions ,
662
670
preview : resolvePreviewOptions ( config . preview , server ) ,
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ export async function transformWithEsbuild(
209
209
}
210
210
}
211
211
212
- export function esbuildPlugin ( options : ESBuildOptions = { } ) : Plugin {
212
+ export function esbuildPlugin ( options : ESBuildOptions ) : Plugin {
213
213
const filter = createFilter (
214
214
options . include || / \. ( m ? t s | [ j t ] s x ) $ / ,
215
215
options . exclude || / \. j s $ / ,
You can’t perform that action at this time.
0 commit comments