File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ export async function resolveBuildPlugins(config: ResolvedConfig): Promise<{
511
511
: [ ] ) ,
512
512
] ,
513
513
post : [
514
- buildImportAnalysisPlugin ( config ) ,
514
+ ... buildImportAnalysisPlugin ( config ) ,
515
515
...( enableNativePlugin !== true
516
516
? [
517
517
buildOxcPlugin ( ) ,
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ function getPreloadCode(
217
217
/**
218
218
* Build only. During serve this is performed as part of ./importAnalysis.
219
219
*/
220
- export function buildImportAnalysisPlugin ( config : ResolvedConfig ) : Plugin {
220
+ export function buildImportAnalysisPlugin ( config : ResolvedConfig ) : Plugin [ ] {
221
221
const getInsertPreload = ( environment : PartialEnvironment ) =>
222
222
environment . config . consumer === 'client' &&
223
223
! config . isWorker &&
@@ -765,9 +765,9 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {
765
765
delete plugin . transform
766
766
delete plugin . resolveId
767
767
delete plugin . load
768
- return perEnvironmentPlugin (
769
- 'native:import-analysis-build' ,
770
- ( environment ) => {
768
+ return [
769
+ plugin ,
770
+ perEnvironmentPlugin ( 'native:import-analysis-build' , ( environment ) => {
771
771
const preloadCode = getPreloadCode (
772
772
environment ,
773
773
! ! renderBuiltUrl ,
@@ -781,8 +781,8 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {
781
781
renderBuiltUrl : ! ! renderBuiltUrl ,
782
782
isRelativeBase,
783
783
} )
784
- } ,
785
- )
784
+ } ) ,
785
+ ]
786
786
}
787
- return plugin
787
+ return [ plugin ]
788
788
}
You can’t perform that action at this time.
0 commit comments