File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ import {
86
86
} from './baseEnvironment'
87
87
import type { MinimalPluginContext , Plugin , PluginContext } from './plugin'
88
88
import type { RollupPluginHooks } from './typeUtils'
89
+ import { buildEsbuildPlugin } from './plugins/esbuild'
89
90
90
91
export interface BuildEnvironmentOptions {
91
92
/**
@@ -501,7 +502,14 @@ export async function resolveBuildPlugins(config: ResolvedConfig): Promise<{
501
502
] ,
502
503
post : [
503
504
...buildImportAnalysisPlugin ( config ) ,
504
- ...( ! enableNativePlugin ? [ buildOxcPlugin ( ) ] : [ ] ) ,
505
+ ...( ! enableNativePlugin
506
+ ? [
507
+ buildOxcPlugin ( ) ,
508
+ ...( config . build . minify === 'esbuild'
509
+ ? [ buildEsbuildPlugin ( ) ]
510
+ : [ ] ) ,
511
+ ]
512
+ : [ ] ) ,
505
513
terserPlugin ( config ) ,
506
514
...( ! config . isWorker
507
515
? [
You can’t perform that action at this time.
0 commit comments