File tree Expand file tree Collapse file tree 2 files changed +20
-20
lines changed
Expand file tree Collapse file tree 2 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -456,9 +456,7 @@ export async function resolveBuildPlugins(config: ResolvedConfig): Promise<{
456456 ] . filter ( Boolean ) as Plugin [ ] ,
457457 post : [
458458 ...buildImportAnalysisPlugin ( config ) ,
459- ...( config . esbuild !== false && ! enableNativePlugin
460- ? [ buildEsbuildPlugin ( config ) ]
461- : [ ] ) ,
459+ ...( config . esbuild !== false ? [ buildEsbuildPlugin ( config ) ] : [ ] ) ,
462460 ...( options . minify ? [ terserPlugin ( config ) ] : [ ] ) ,
463461 ...( ( ! config . isWorker
464462 ? [
Original file line number Diff line number Diff line change @@ -80,23 +80,25 @@ export async function resolvePlugins(
8080 } )
8181 : modulePreloadPolyfillPlugin ( config )
8282 : null ,
83- resolvePlugin ( {
84- ...config . resolve ,
85- root : config . root ,
86- isProduction : config . isProduction ,
87- isBuild,
88- packageCache : config . packageCache ,
89- ssrConfig : config . ssr ,
90- asSrc : true ,
91- fsUtils : getFsUtils ( config ) ,
92- getDepsOptimizer : isBuild
93- ? undefined
94- : ( ssr : boolean ) => getDepsOptimizer ( config , ssr ) ,
95- shouldExternalize :
96- isBuild && config . build . ssr
97- ? ( id , importer ) => shouldExternalizeForSSR ( id , importer , config )
98- : undefined ,
99- } ) ,
83+ enableNativePlugin
84+ ? null
85+ : resolvePlugin ( {
86+ ...config . resolve ,
87+ root : config . root ,
88+ isProduction : config . isProduction ,
89+ isBuild,
90+ packageCache : config . packageCache ,
91+ ssrConfig : config . ssr ,
92+ asSrc : true ,
93+ fsUtils : getFsUtils ( config ) ,
94+ getDepsOptimizer : isBuild
95+ ? undefined
96+ : ( ssr : boolean ) => getDepsOptimizer ( config , ssr ) ,
97+ shouldExternalize :
98+ isBuild && config . build . ssr
99+ ? ( id , importer ) => shouldExternalizeForSSR ( id , importer , config )
100+ : undefined ,
101+ } ) ,
100102 htmlInlineProxyPlugin ( config ) ,
101103 cssPlugin ( config ) ,
102104 config . esbuild !== false
You can’t perform that action at this time.
0 commit comments