@module-federation/node 0.0.0-next-20240311023539 → 0.0.0-next-20240318025655
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/README.md +2 -3
- package/dist/package.json +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -152,7 +152,7 @@ revalidate().then((shouldReload) => {
|
|
|
152
152
|
});
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
###
|
|
155
|
+
### Overriding default http chunk fetch
|
|
156
156
|
|
|
157
157
|
```js
|
|
158
158
|
const chunkFetcher = globalThis.webpackChunkLoad || globalThis.fetch || fetchPolyfill;
|
|
@@ -165,8 +165,7 @@ chunkFetcher(url)
|
|
|
165
165
|
});
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
|
|
169
|
-
of webpack scope, like in express server- you can override the default chunk fetcher by setting the globalThis.webpackChunkLoad variable.
|
|
168
|
+
If you want to use your own custom fetch, or add fetch headers, either in the entrypoint of webpack or outside of webpack scope, like in express server you can override the default chunk fetcher by setting the `globalThis.webpackChunkLoad` variable.
|
|
170
169
|
|
|
171
170
|
```js
|
|
172
171
|
globalThis.webpackChunkLoad = async (url) => {
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"public": true,
|
|
3
3
|
"name": "@module-federation/node",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.15",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"upath": "2.0.1",
|
|
57
57
|
"url": "0.11.3",
|
|
58
58
|
"webpack-sources": "3.2.3",
|
|
59
|
-
"@module-federation/managers": "0.0.
|
|
60
|
-
"@module-federation/manifest": "0.0.
|
|
59
|
+
"@module-federation/managers": "0.0.17",
|
|
60
|
+
"@module-federation/manifest": "0.0.17"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"next": "^12||^13",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"public": true,
|
|
3
3
|
"name": "@module-federation/node",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-20240318025655",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/src/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"encoding": "^0.1.13",
|
|
43
43
|
"node-fetch": "2.7.0",
|
|
44
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
45
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
44
|
+
"@module-federation/enhanced": "0.0.0-next-20240318025655",
|
|
45
|
+
"@module-federation/sdk": "0.0.0-next-20240318025655",
|
|
46
46
|
"@module-federation/utilities": "3.0.6",
|
|
47
|
-
"@module-federation/runtime": "0.0.0-next-
|
|
47
|
+
"@module-federation/runtime": "0.0.0-next-20240318025655"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"next": "^12||^13",
|