@module-federation/webpack-bundler-runtime 0.6.3 → 0.6.5

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
@@ -314,6 +314,9 @@ function initContainerEntry(options) {
314
314
  if (webpackRequire.federation.attachShareScopeMap) {
315
315
  webpackRequire.federation.attachShareScopeMap(webpackRequire);
316
316
  }
317
+ if (typeof webpackRequire.federation.prefetch === 'function') {
318
+ webpackRequire.federation.prefetch();
319
+ }
317
320
  // @ts-ignore
318
321
  return webpackRequire.I(name, initScope);
319
322
  }
package/dist/index.esm.js CHANGED
@@ -292,6 +292,9 @@ function initContainerEntry(options) {
292
292
  if (webpackRequire.federation.attachShareScopeMap) {
293
293
  webpackRequire.federation.attachShareScopeMap(webpackRequire);
294
294
  }
295
+ if (typeof webpackRequire.federation.prefetch === 'function') {
296
+ webpackRequire.federation.prefetch();
297
+ }
295
298
  // @ts-ignore
296
299
  return webpackRequire.I(name, initScope);
297
300
  }
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "@module-federation/webpack-bundler-runtime",
4
- "version": "0.6.3",
4
+ "version": "0.6.5",
5
5
  "license": "MIT",
6
6
  "description": "Module Federation Runtime for webpack",
7
7
  "keywords": [
@@ -107,5 +107,6 @@ export interface Federation {
107
107
  };
108
108
  attachShareScopeMap?: typeof attachShareScopeMap;
109
109
  hasAttachShareScopeMap?: boolean;
110
+ prefetch?: () => void;
110
111
  }
111
112
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "@module-federation/webpack-bundler-runtime",
4
- "version": "0.6.3",
4
+ "version": "0.6.5",
5
5
  "license": "MIT",
6
6
  "description": "Module Federation Runtime for webpack",
7
7
  "keywords": [
@@ -20,8 +20,8 @@
20
20
  "module": "./dist/index.esm.js",
21
21
  "types": "./dist/index.cjs.d.ts",
22
22
  "dependencies": {
23
- "@module-federation/runtime": "0.6.3",
24
- "@module-federation/sdk": "0.6.3"
23
+ "@module-federation/runtime": "0.6.5",
24
+ "@module-federation/sdk": "0.6.5"
25
25
  },
26
26
  "exports": {
27
27
  ".": {
@@ -49,6 +49,6 @@
49
49
  }
50
50
  },
51
51
  "devDependencies": {
52
- "@module-federation/runtime": "0.6.3"
52
+ "@module-federation/runtime": "0.6.5"
53
53
  }
54
54
  }