@module-federation/bridge-react 2.3.1 → 2.3.3
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +13 -0
- package/dist/base.cjs.js +2 -2
- package/dist/base.es.js +2 -2
- package/dist/data-fetch-utils.cjs.js +1 -1
- package/dist/data-fetch-utils.es.js +2 -2
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +2 -2
- package/dist/{lazy-load-component-plugin-CqxENGBE.mjs → lazy-load-component-plugin-Bf_HsMyF.mjs} +1 -1
- package/dist/{lazy-load-component-plugin-ZC6dhtcT.js → lazy-load-component-plugin-DZDwZ0Kz.js} +1 -1
- package/dist/lazy-load-component-plugin.cjs.js +2 -2
- package/dist/lazy-load-component-plugin.es.js +2 -2
- package/dist/{prefetch-CFKA0dZg.mjs → prefetch-ByDYONsx.mjs} +14 -7
- package/dist/{prefetch-8e8pqiSo.js → prefetch-DYFX9hl9.js} +14 -7
- package/package.json +7 -7
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @module-federation/bridge-react@2.3.
|
|
2
|
+
> @module-federation/bridge-react@2.3.3 build /home/runner/work/core/core/packages/bridge/bridge-react
|
|
3
3
|
> vite build
|
|
4
4
|
|
|
5
5
|
[33mThe CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.[39m
|
|
@@ -30,8 +30,8 @@ computing gzip size...
|
|
|
30
30
|
[2mdist/[22m[36mdata-fetch-server-middleware.cjs.js [39m[1m[2m 5.79 kB[22m[1m[22m[2m │ gzip: 1.73 kB[22m
|
|
31
31
|
[2mdist/[22m[36mcreateHelpers-9B0ttrN_.js [39m[1m[2m 7.32 kB[22m[1m[22m[2m │ gzip: 1.95 kB[22m
|
|
32
32
|
[2mdist/[22m[36mbridge-base-IlvdqYIj.js [39m[1m[2m 7.70 kB[22m[1m[22m[2m │ gzip: 2.11 kB[22m
|
|
33
|
-
[2mdist/[22m[36mlazy-load-component-plugin-
|
|
34
|
-
[2mdist/[22m[36mprefetch-
|
|
33
|
+
[2mdist/[22m[36mlazy-load-component-plugin-DZDwZ0Kz.js [39m[1m[2m17.65 kB[22m[1m[22m[2m │ gzip: 4.21 kB[22m
|
|
34
|
+
[2mdist/[22m[36mprefetch-DYFX9hl9.js [39m[1m[2m32.08 kB[22m[1m[22m[2m │ gzip: 7.85 kB[22m
|
|
35
35
|
[2mdist/[22m[36mutils-CFTy4LVE.js [39m[1m[2m72.53 kB[22m[1m[22m[2m │ gzip: 15.19 kB[22m
|
|
36
36
|
[32m[36m[vite:dts][32m Start rollup declaration files...[39m
|
|
37
37
|
Analysis will use the bundled TypeScript version 5.8.2
|
|
@@ -60,7 +60,7 @@ Analysis will use the bundled TypeScript version 5.8.2
|
|
|
60
60
|
*** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
|
|
61
61
|
Analysis will use the bundled TypeScript version 5.8.2
|
|
62
62
|
*** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
|
|
63
|
-
[32m[36m[vite:dts][32m Declaration files built in
|
|
63
|
+
[32m[36m[vite:dts][32m Declaration files built in 46431ms.
|
|
64
64
|
[39m
|
|
65
65
|
[2mdist/[22m[36mlazy-load-component-plugin.es.js [39m[1m[2m 0.17 kB[22m[1m[22m[2m │ gzip: 0.15 kB[22m
|
|
66
66
|
[2mdist/[22m[36mplugin.es.js [39m[1m[2m 0.29 kB[22m[1m[22m[2m │ gzip: 0.18 kB[22m
|
|
@@ -79,7 +79,7 @@ Analysis will use the bundled TypeScript version 5.8.2
|
|
|
79
79
|
[2mdist/[22m[36mdata-fetch-server-middleware.es.js [39m[1m[2m 5.73 kB[22m[1m[22m[2m │ gzip: 1.76 kB[22m
|
|
80
80
|
[2mdist/[22m[36mbridge-base-EnVXD4Hr.mjs [39m[1m[2m 7.11 kB[22m[1m[22m[2m │ gzip: 1.92 kB[22m
|
|
81
81
|
[2mdist/[22m[36mcreateHelpers-D77sECmY.mjs [39m[1m[2m 7.27 kB[22m[1m[22m[2m │ gzip: 1.96 kB[22m
|
|
82
|
-
[2mdist/[22m[36mlazy-load-component-plugin-
|
|
83
|
-
[2mdist/[22m[36mprefetch-
|
|
82
|
+
[2mdist/[22m[36mlazy-load-component-plugin-Bf_HsMyF.mjs [39m[1m[2m17.79 kB[22m[1m[22m[2m │ gzip: 4.33 kB[22m
|
|
83
|
+
[2mdist/[22m[36mprefetch-ByDYONsx.mjs [39m[1m[2m32.10 kB[22m[1m[22m[2m │ gzip: 7.91 kB[22m
|
|
84
84
|
[2mdist/[22m[36mutils-D4k5eixv.mjs [39m[1m[2m71.78 kB[22m[1m[22m[2m │ gzip: 15.18 kB[22m
|
|
85
|
-
[32m✓ built in
|
|
85
|
+
[32m✓ built in 48.84s[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @module-federation/bridge-react
|
|
2
2
|
|
|
3
|
+
## 2.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @module-federation/sdk@2.3.3
|
|
8
|
+
|
|
9
|
+
## 2.3.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 1c02710: chore: lock deps
|
|
14
|
+
- @module-federation/sdk@2.3.2
|
|
15
|
+
|
|
3
16
|
## 2.3.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/base.cjs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const createHelpers = require("./createHelpers-9B0ttrN_.js");
|
|
4
|
-
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-
|
|
4
|
+
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-DZDwZ0Kz.js");
|
|
5
5
|
const lazyUtils = require("./utils-CFTy4LVE.js");
|
|
6
6
|
const dataFetchUtils = require("./data-fetch-utils.cjs.js");
|
|
7
|
-
const prefetch = require("./prefetch-
|
|
7
|
+
const prefetch = require("./prefetch-DYFX9hl9.js");
|
|
8
8
|
const createRemoteAppComponent = createHelpers.createRemoteAppComponentFactory(createHelpers.RemoteAppWrapper);
|
|
9
9
|
const createRemoteComponent = createHelpers.createDeprecatedRemoteComponentFactory(
|
|
10
10
|
createRemoteAppComponent
|
package/dist/base.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as createRemoteAppComponentFactory, a as createDeprecatedRemoteComponentFactory, R as RemoteAppWrapper } from "./createHelpers-D77sECmY.mjs";
|
|
2
2
|
import { b } from "./createHelpers-D77sECmY.mjs";
|
|
3
|
-
import { a, c, b as b2, l } from "./lazy-load-component-plugin-
|
|
3
|
+
import { a, c, b as b2, l } from "./lazy-load-component-plugin-Bf_HsMyF.mjs";
|
|
4
4
|
import { C, a as a2, E, c as c2, b as b3, d, g, r, s } from "./utils-D4k5eixv.mjs";
|
|
5
5
|
import { callDataFetch } from "./data-fetch-utils.es.js";
|
|
6
|
-
import { p } from "./prefetch-
|
|
6
|
+
import { p } from "./prefetch-ByDYONsx.mjs";
|
|
7
7
|
const createRemoteAppComponent = createRemoteAppComponentFactory(RemoteAppWrapper);
|
|
8
8
|
const createRemoteComponent = createDeprecatedRemoteComponentFactory(
|
|
9
9
|
createRemoteAppComponent
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const lazyUtils = require("./utils-CFTy4LVE.js");
|
|
4
|
-
const prefetch = require("./prefetch-
|
|
4
|
+
const prefetch = require("./prefetch-DYFX9hl9.js");
|
|
5
5
|
async function callDataFetch() {
|
|
6
6
|
const dataFetch = globalThis[lazyUtils.DATA_FETCH_FUNCTION];
|
|
7
7
|
if (dataFetch) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { x as DATA_FETCH_FUNCTION } from "./utils-D4k5eixv.mjs";
|
|
2
2
|
import { C, a, c, b, d, g, r } from "./utils-D4k5eixv.mjs";
|
|
3
|
-
import { d as dataFetchFunction } from "./prefetch-
|
|
4
|
-
import { i, p } from "./prefetch-
|
|
3
|
+
import { d as dataFetchFunction } from "./prefetch-ByDYONsx.mjs";
|
|
4
|
+
import { i, p } from "./prefetch-ByDYONsx.mjs";
|
|
5
5
|
async function callDataFetch() {
|
|
6
6
|
const dataFetch = globalThis[DATA_FETCH_FUNCTION];
|
|
7
7
|
if (dataFetch) {
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const createHelpers = require("./createHelpers-9B0ttrN_.js");
|
|
4
|
-
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-
|
|
4
|
+
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-DZDwZ0Kz.js");
|
|
5
5
|
const lazyUtils = require("./utils-CFTy4LVE.js");
|
|
6
6
|
const dataFetchUtils = require("./data-fetch-utils.cjs.js");
|
|
7
7
|
const React = require("react");
|
|
8
8
|
const ReactRouterDOM = require("react-router-dom");
|
|
9
9
|
const index = require("./index-DbjGCKOr.js");
|
|
10
|
-
const prefetch = require("./prefetch-
|
|
10
|
+
const prefetch = require("./prefetch-DYFX9hl9.js");
|
|
11
11
|
function _interopNamespaceDefault(e2) {
|
|
12
12
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
13
13
|
if (e2) {
|
package/dist/index.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { R as RemoteAppWrapper, c as createRemoteAppComponentFactory, a as createDeprecatedRemoteComponentFactory } from "./createHelpers-D77sECmY.mjs";
|
|
2
2
|
import { b } from "./createHelpers-D77sECmY.mjs";
|
|
3
|
-
import { a, c, b as b2, l } from "./lazy-load-component-plugin-
|
|
3
|
+
import { a, c, b as b2, l } from "./lazy-load-component-plugin-Bf_HsMyF.mjs";
|
|
4
4
|
import { C, a as a2, E, c as c2, b as b3, d, g, r, s } from "./utils-D4k5eixv.mjs";
|
|
5
5
|
import { callDataFetch } from "./data-fetch-utils.es.js";
|
|
6
6
|
import React__default, { forwardRef, useContext, useState, useEffect } from "react";
|
|
7
7
|
import * as ReactRouterDOM from "react-router-dom";
|
|
8
8
|
import { p as pathJoin, L as LoggerInstance } from "./index-Bs2NxD2z.mjs";
|
|
9
|
-
import { p } from "./prefetch-
|
|
9
|
+
import { p } from "./prefetch-ByDYONsx.mjs";
|
|
10
10
|
function e() {
|
|
11
11
|
const t = new PopStateEvent("popstate", { state: window.history.state });
|
|
12
12
|
window.dispatchEvent(t);
|
package/dist/{lazy-load-component-plugin-CqxENGBE.mjs → lazy-load-component-plugin-Bf_HsMyF.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as injectDataFetch, p as prefetch } from "./prefetch-
|
|
1
|
+
import { i as injectDataFetch, p as prefetch } from "./prefetch-ByDYONsx.mjs";
|
|
2
2
|
import { i as initDataFetchMap, j as isDataLoaderExpose, k as getDataFetchInfo, m as getDataFetchMapKey, l as logger, n as getDataFetchItem, o as DATA_FETCH_CLIENT_SUFFIX, p as MF_DATA_FETCH_TYPE, q as isCSROnly, M as MF_DATA_FETCH_STATUS, h as loadDataFetchModule, e as getDataFetchMap, t as isServerEnv, u as getDataFetchIdWithErrorMsgs, v as DATA_FETCH_ERROR_PREFIX, E as ERROR_TYPE, w as wrapDataFetchId, L as LOAD_REMOTE_ERROR_PREFIX, x as DATA_FETCH_FUNCTION, y as getLoadedRemoteInfos, f as fetchData$1, z as setDataFetchItemLoadedStatus, F as FS_HREF } from "./utils-D4k5eixv.mjs";
|
|
3
3
|
import React__default, { useRef, useState, Suspense, useEffect } from "react";
|
|
4
4
|
const autoFetchData = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-
|
|
4
|
-
require("./prefetch-
|
|
3
|
+
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-DZDwZ0Kz.js");
|
|
4
|
+
require("./prefetch-DYFX9hl9.js");
|
|
5
5
|
exports.default = lazyLoadComponentPlugin.lazyLoadComponentPlugin;
|
|
6
6
|
exports.lazyLoadComponentPlugin = lazyLoadComponentPlugin.lazyLoadComponentPlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l, l as l2 } from "./lazy-load-component-plugin-
|
|
2
|
-
import "./prefetch-
|
|
1
|
+
import { l, l as l2 } from "./lazy-load-component-plugin-Bf_HsMyF.mjs";
|
|
2
|
+
import "./prefetch-ByDYONsx.mjs";
|
|
3
3
|
export {
|
|
4
4
|
l as default,
|
|
5
5
|
l2 as lazyLoadComponentPlugin
|
|
@@ -546,7 +546,7 @@ function handleRemoteEntryLoaded(name, globalName, entry) {
|
|
|
546
546
|
});
|
|
547
547
|
return entryExports;
|
|
548
548
|
}
|
|
549
|
-
async function loadEntryScript({ name, globalName, entry, loaderHook, getEntryUrl }) {
|
|
549
|
+
async function loadEntryScript({ name, globalName, entry, remoteInfo, loaderHook, getEntryUrl }) {
|
|
550
550
|
const { entryExports: remoteEntryExports } = getRemoteEntryExports(name, globalName);
|
|
551
551
|
if (remoteEntryExports) return remoteEntryExports;
|
|
552
552
|
const url = getEntryUrl ? getEntryUrl(entry) : entry;
|
|
@@ -555,7 +555,8 @@ async function loadEntryScript({ name, globalName, entry, loaderHook, getEntryUr
|
|
|
555
555
|
createScriptHook: (url2, attrs) => {
|
|
556
556
|
const res = loaderHook.lifecycle.createScript.emit({
|
|
557
557
|
url: url2,
|
|
558
|
-
attrs
|
|
558
|
+
attrs,
|
|
559
|
+
remoteInfo
|
|
559
560
|
});
|
|
560
561
|
if (!res) return;
|
|
561
562
|
if (res instanceof HTMLScriptElement) return res;
|
|
@@ -590,6 +591,7 @@ async function loadEntryDom({ remoteInfo, remoteEntryExports, loaderHook, getEnt
|
|
|
590
591
|
entry,
|
|
591
592
|
globalName,
|
|
592
593
|
name,
|
|
594
|
+
remoteInfo,
|
|
593
595
|
loaderHook,
|
|
594
596
|
getEntryUrl
|
|
595
597
|
});
|
|
@@ -608,7 +610,8 @@ async function loadEntryNode({ remoteInfo, loaderHook }) {
|
|
|
608
610
|
loaderHook: { createScriptHook: (url, attrs = {}) => {
|
|
609
611
|
const res = loaderHook.lifecycle.createScript.emit({
|
|
610
612
|
url,
|
|
611
|
-
attrs
|
|
613
|
+
attrs,
|
|
614
|
+
remoteInfo
|
|
612
615
|
});
|
|
613
616
|
if (!res) return;
|
|
614
617
|
if ("url" in res) return res;
|
|
@@ -710,7 +713,8 @@ function preloadAssets(remoteInfo, host, assets, useLinkPreload = true) {
|
|
|
710
713
|
createLinkHook: (url, attrs) => {
|
|
711
714
|
const res = host.loaderHook.lifecycle.createLink.emit({
|
|
712
715
|
url,
|
|
713
|
-
attrs
|
|
716
|
+
attrs,
|
|
717
|
+
remoteInfo
|
|
714
718
|
});
|
|
715
719
|
if (res instanceof HTMLLinkElement) return res;
|
|
716
720
|
}
|
|
@@ -731,7 +735,8 @@ function preloadAssets(remoteInfo, host, assets, useLinkPreload = true) {
|
|
|
731
735
|
createLinkHook: (url, attrs) => {
|
|
732
736
|
const res = host.loaderHook.lifecycle.createLink.emit({
|
|
733
737
|
url,
|
|
734
|
-
attrs
|
|
738
|
+
attrs,
|
|
739
|
+
remoteInfo
|
|
735
740
|
});
|
|
736
741
|
if (res instanceof HTMLLinkElement) return res;
|
|
737
742
|
},
|
|
@@ -754,7 +759,8 @@ function preloadAssets(remoteInfo, host, assets, useLinkPreload = true) {
|
|
|
754
759
|
createLinkHook: (url, attrs) => {
|
|
755
760
|
const res = host.loaderHook.lifecycle.createLink.emit({
|
|
756
761
|
url,
|
|
757
|
-
attrs
|
|
762
|
+
attrs,
|
|
763
|
+
remoteInfo
|
|
758
764
|
});
|
|
759
765
|
if (res instanceof HTMLLinkElement) return res;
|
|
760
766
|
}
|
|
@@ -775,7 +781,8 @@ function preloadAssets(remoteInfo, host, assets, useLinkPreload = true) {
|
|
|
775
781
|
createScriptHook: (url, attrs) => {
|
|
776
782
|
const res = host.loaderHook.lifecycle.createScript.emit({
|
|
777
783
|
url,
|
|
778
|
-
attrs
|
|
784
|
+
attrs,
|
|
785
|
+
remoteInfo
|
|
779
786
|
});
|
|
780
787
|
if (res instanceof HTMLScriptElement) return res;
|
|
781
788
|
},
|
|
@@ -547,7 +547,7 @@ function handleRemoteEntryLoaded(name, globalName, entry) {
|
|
|
547
547
|
});
|
|
548
548
|
return entryExports;
|
|
549
549
|
}
|
|
550
|
-
async function loadEntryScript({ name, globalName, entry, loaderHook, getEntryUrl }) {
|
|
550
|
+
async function loadEntryScript({ name, globalName, entry, remoteInfo, loaderHook, getEntryUrl }) {
|
|
551
551
|
const { entryExports: remoteEntryExports } = getRemoteEntryExports(name, globalName);
|
|
552
552
|
if (remoteEntryExports) return remoteEntryExports;
|
|
553
553
|
const url = getEntryUrl ? getEntryUrl(entry) : entry;
|
|
@@ -556,7 +556,8 @@ async function loadEntryScript({ name, globalName, entry, loaderHook, getEntryUr
|
|
|
556
556
|
createScriptHook: (url2, attrs) => {
|
|
557
557
|
const res = loaderHook.lifecycle.createScript.emit({
|
|
558
558
|
url: url2,
|
|
559
|
-
attrs
|
|
559
|
+
attrs,
|
|
560
|
+
remoteInfo
|
|
560
561
|
});
|
|
561
562
|
if (!res) return;
|
|
562
563
|
if (res instanceof HTMLScriptElement) return res;
|
|
@@ -591,6 +592,7 @@ async function loadEntryDom({ remoteInfo, remoteEntryExports, loaderHook, getEnt
|
|
|
591
592
|
entry,
|
|
592
593
|
globalName,
|
|
593
594
|
name,
|
|
595
|
+
remoteInfo,
|
|
594
596
|
loaderHook,
|
|
595
597
|
getEntryUrl
|
|
596
598
|
});
|
|
@@ -609,7 +611,8 @@ async function loadEntryNode({ remoteInfo, loaderHook }) {
|
|
|
609
611
|
loaderHook: { createScriptHook: (url, attrs = {}) => {
|
|
610
612
|
const res = loaderHook.lifecycle.createScript.emit({
|
|
611
613
|
url,
|
|
612
|
-
attrs
|
|
614
|
+
attrs,
|
|
615
|
+
remoteInfo
|
|
613
616
|
});
|
|
614
617
|
if (!res) return;
|
|
615
618
|
if ("url" in res) return res;
|
|
@@ -711,7 +714,8 @@ function preloadAssets(remoteInfo, host, assets, useLinkPreload = true) {
|
|
|
711
714
|
createLinkHook: (url, attrs) => {
|
|
712
715
|
const res = host.loaderHook.lifecycle.createLink.emit({
|
|
713
716
|
url,
|
|
714
|
-
attrs
|
|
717
|
+
attrs,
|
|
718
|
+
remoteInfo
|
|
715
719
|
});
|
|
716
720
|
if (res instanceof HTMLLinkElement) return res;
|
|
717
721
|
}
|
|
@@ -732,7 +736,8 @@ function preloadAssets(remoteInfo, host, assets, useLinkPreload = true) {
|
|
|
732
736
|
createLinkHook: (url, attrs) => {
|
|
733
737
|
const res = host.loaderHook.lifecycle.createLink.emit({
|
|
734
738
|
url,
|
|
735
|
-
attrs
|
|
739
|
+
attrs,
|
|
740
|
+
remoteInfo
|
|
736
741
|
});
|
|
737
742
|
if (res instanceof HTMLLinkElement) return res;
|
|
738
743
|
},
|
|
@@ -755,7 +760,8 @@ function preloadAssets(remoteInfo, host, assets, useLinkPreload = true) {
|
|
|
755
760
|
createLinkHook: (url, attrs) => {
|
|
756
761
|
const res = host.loaderHook.lifecycle.createLink.emit({
|
|
757
762
|
url,
|
|
758
|
-
attrs
|
|
763
|
+
attrs,
|
|
764
|
+
remoteInfo
|
|
759
765
|
});
|
|
760
766
|
if (res instanceof HTMLLinkElement) return res;
|
|
761
767
|
}
|
|
@@ -776,7 +782,8 @@ function preloadAssets(remoteInfo, host, assets, useLinkPreload = true) {
|
|
|
776
782
|
createScriptHook: (url, attrs) => {
|
|
777
783
|
const res = host.loaderHook.lifecycle.createScript.emit({
|
|
778
784
|
url,
|
|
779
|
-
attrs
|
|
785
|
+
attrs,
|
|
786
|
+
remoteInfo
|
|
780
787
|
});
|
|
781
788
|
if (res instanceof HTMLScriptElement) return res;
|
|
782
789
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/bridge-react",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -127,10 +127,8 @@
|
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
"dependencies": {
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"@module-federation/bridge-shared": "2.3.1",
|
|
133
|
-
"@module-federation/sdk": "2.3.1"
|
|
130
|
+
"lru-cache": "10.4.3",
|
|
131
|
+
"@module-federation/sdk": "2.3.3"
|
|
134
132
|
},
|
|
135
133
|
"peerDependencies": {
|
|
136
134
|
"react": ">=16.9.0",
|
|
@@ -151,6 +149,7 @@
|
|
|
151
149
|
}
|
|
152
150
|
},
|
|
153
151
|
"devDependencies": {
|
|
152
|
+
"react-error-boundary": "^4.1.2",
|
|
154
153
|
"@testing-library/react": "15.0.7",
|
|
155
154
|
"@testing-library/jest-dom": "6.6.3",
|
|
156
155
|
"@types/react": "18.2.79",
|
|
@@ -167,8 +166,9 @@
|
|
|
167
166
|
"vite-plugin-dts": "^4.3.0",
|
|
168
167
|
"hono": "4.12.7",
|
|
169
168
|
"vitest": "1.6.0",
|
|
170
|
-
"@module-federation/runtime": "2.3.
|
|
171
|
-
"@module-federation/
|
|
169
|
+
"@module-federation/runtime": "2.3.3",
|
|
170
|
+
"@module-federation/bridge-shared": "2.3.3",
|
|
171
|
+
"@module-federation/runtime-core": "2.3.3"
|
|
172
172
|
},
|
|
173
173
|
"scripts": {
|
|
174
174
|
"dev": "vite",
|