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 {
8686} from './baseEnvironment'
8787import type { MinimalPluginContext , Plugin , PluginContext } from './plugin'
8888import type { RollupPluginHooks } from './typeUtils'
89+ import { buildEsbuildPlugin } from './plugins/esbuild'
8990
9091export interface BuildEnvironmentOptions {
9192 /**
@@ -501,7 +502,14 @@ export async function resolveBuildPlugins(config: ResolvedConfig): Promise<{
501502 ] ,
502503 post : [
503504 ...buildImportAnalysisPlugin ( config ) ,
504- ...( ! enableNativePlugin ? [ buildOxcPlugin ( ) ] : [ ] ) ,
505+ ...( ! enableNativePlugin
506+ ? [
507+ buildOxcPlugin ( ) ,
508+ ...( config . build . minify === 'esbuild'
509+ ? [ buildEsbuildPlugin ( ) ]
510+ : [ ] ) ,
511+ ]
512+ : [ ] ) ,
505513 terserPlugin ( config ) ,
506514 ...( ! config . isWorker
507515 ? [
You can’t perform that action at this time.
0 commit comments