@module-federation/sdk 0.9.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js
CHANGED
|
@@ -521,8 +521,8 @@ function createLink(info) {
|
|
|
521
521
|
for(let i = 0; i < links.length; i++){
|
|
522
522
|
const l = links[i];
|
|
523
523
|
const linkHref = l.getAttribute('href');
|
|
524
|
-
const
|
|
525
|
-
if (linkHref && isStaticResourcesEqual(linkHref, info.url) &&
|
|
524
|
+
const linkRel = l.getAttribute('rel');
|
|
525
|
+
if (linkHref && isStaticResourcesEqual(linkHref, info.url) && linkRel === info.attrs['rel']) {
|
|
526
526
|
link = l;
|
|
527
527
|
needAttach = false;
|
|
528
528
|
break;
|
package/dist/index.esm.mjs
CHANGED
|
@@ -519,8 +519,8 @@ function createLink(info) {
|
|
|
519
519
|
for(let i = 0; i < links.length; i++){
|
|
520
520
|
const l = links[i];
|
|
521
521
|
const linkHref = l.getAttribute('href');
|
|
522
|
-
const
|
|
523
|
-
if (linkHref && isStaticResourcesEqual(linkHref, info.url) &&
|
|
522
|
+
const linkRel = l.getAttribute('rel');
|
|
523
|
+
if (linkHref && isStaticResourcesEqual(linkHref, info.url) && linkRel === info.attrs['rel']) {
|
|
524
524
|
link = l;
|
|
525
525
|
needAttach = false;
|
|
526
526
|
break;
|
package/dist/src/dom.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateScriptHookDom } from './types';
|
|
1
|
+
import type { CreateScriptHookDom } from './types';
|
|
2
2
|
export declare function safeWrapper<T extends (...args: Array<any>) => any>(callback: T, disableWarn?: boolean): Promise<ReturnType<T> | undefined>;
|
|
3
3
|
export declare function isStaticResourcesEqual(url1: string, url2: string): boolean;
|
|
4
4
|
export declare function createScript(info: {
|
|
@@ -104,6 +104,7 @@ export interface DtsHostOptions {
|
|
|
104
104
|
consumeAPITypes?: boolean;
|
|
105
105
|
runtimePkgs?: string[];
|
|
106
106
|
remoteTypeUrls?: (() => Promise<RemoteTypeUrls>) | RemoteTypeUrls;
|
|
107
|
+
timeout?: number;
|
|
107
108
|
}
|
|
108
109
|
export interface DtsRemoteOptions {
|
|
109
110
|
tsConfigPath?: string;
|
|
@@ -190,9 +191,9 @@ export interface ModuleFederationPluginOptions {
|
|
|
190
191
|
dataPrefetch?: DataPrefetch;
|
|
191
192
|
virtualRuntimeEntry?: boolean;
|
|
192
193
|
experiments?: {
|
|
193
|
-
federationRuntime?: false | 'hoisted';
|
|
194
194
|
externalRuntime?: boolean;
|
|
195
195
|
provideExternalRuntime?: boolean;
|
|
196
|
+
asyncStartup?: boolean;
|
|
196
197
|
};
|
|
197
198
|
bridge?: {
|
|
198
199
|
/**
|