File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
libs/native-federation-runtime/src/lib Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,13 @@ export async function initFederation(
23
23
remotesOrManifestUrl : Record < string , string > | string = { } ,
24
24
options ?: InitFederationOptions
25
25
) : Promise < ImportMap > {
26
+ const cacheOption = options ?. cacheTag ? `?t=${ options . cacheTag } ` : '' ;
26
27
const remotes =
27
28
typeof remotesOrManifestUrl === 'string'
28
- ? await loadManifest ( remotesOrManifestUrl )
29
+ ? await loadManifest ( remotesOrManifestUrl + cacheOption )
29
30
: remotesOrManifestUrl ;
30
31
31
- const url = `./remoteEntry.json${
32
- options ?. cacheTag ? `?t=${ options . cacheTag } ` : ''
33
- } `;
32
+ const url = './remoteEntry.json' + cacheOption ;
34
33
const hostInfo = await loadFederationInfo ( url ) ;
35
34
const hostImportMap = await processHostInfo ( hostInfo ) ;
36
35
const remotesImportMap = await processRemoteInfos ( remotes , {
You can’t perform that action at this time.
0 commit comments