File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -192,16 +192,20 @@ export const defineConfig = (overrides = {}) => {
192192 } )
193193 }
194194 } ,
195- federation ( {
196- name,
197- exposes : { '.' : './src/index.ts' } ,
198- filename : `${ remoteEntryName } ${ isProduction ? '-[hash]' : '' } ${ remoteEntryExt } ` ,
199- shared : Object . fromEntries (
200- externalModules . map ( ( pkg ) => [ pkg , { singleton : true , import : false } ] )
201- ) ,
202- manifest : false ,
203- dts : false
204- } ) ,
195+ ...( ! isTesting
196+ ? [
197+ federation ( {
198+ name,
199+ exposes : { '.' : './src/index.ts' } ,
200+ filename : `${ remoteEntryName } ${ isProduction ? '-[hash]' : '' } ${ remoteEntryExt } ` ,
201+ shared : Object . fromEntries (
202+ externalModules . map ( ( pkg ) => [ pkg , { singleton : true , import : false } ] )
203+ ) ,
204+ manifest : false ,
205+ dts : false
206+ } )
207+ ]
208+ : [ ] ) ,
205209 tailwindcss ( ) ,
206210 manifestPlugin ( ) ,
207211 federationRegistrationClient ( {
You can’t perform that action at this time.
0 commit comments