File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -486,7 +486,9 @@ export async function resolveBuildPlugins(config: ResolvedConfig): Promise<{
486
486
] ,
487
487
post : [
488
488
...buildImportAnalysisPlugin ( config ) ,
489
- ...( config . esbuild !== false ? [ buildEsbuildPlugin ( config ) ] : [ ] ) ,
489
+ ...( config . esbuild !== false && ! enableNativePlugin
490
+ ? [ buildEsbuildPlugin ( config ) ]
491
+ : [ ] ) ,
490
492
terserPlugin ( config ) ,
491
493
...( ! config . isWorker
492
494
? [
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export async function resolvePlugins(
58
58
depOptimizationEnabled ? optimizedDepsPlugin ( ) : null ,
59
59
isBuild ? metadataPlugin ( ) : null ,
60
60
! isWorker ? watchPackageDataPlugin ( config . packageCache ) : null ,
61
- preAliasPlugin ( config ) ,
61
+ ! isBuild ? preAliasPlugin ( config ) : null ,
62
62
enableNativePlugin
63
63
? nativeAliasPlugin ( {
64
64
entries : config . resolve . alias . map ( ( item ) => {
You can’t perform that action at this time.
0 commit comments