@module-federation/webpack-bundler-runtime 0.1.18 → 0.1.20

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.
@@ -36,6 +36,10 @@ function _async_to_generator(fn) {
36
36
  });
37
37
  };
38
38
  }
39
+ function _type_of(obj) {
40
+ "@swc/helpers - typeof";
41
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
42
+ }
39
43
  function _ts_generator(thisArg, body) {
40
44
  var f, y, t, g, _ = {
41
45
  label: 0,
@@ -297,11 +301,11 @@ var createContainer = function(federationOptions) {
297
301
  };
298
302
  __webpack_require__.f = {};
299
303
  __webpack_require__.g = function() {
300
- if (typeof globalThis === 'object') return globalThis;
304
+ if ((typeof globalThis === "undefined" ? "undefined" : _type_of(globalThis)) === 'object') return globalThis;
301
305
  try {
302
306
  return _this || new Function('return this')();
303
307
  } catch (e) {
304
- if (typeof window === 'object') return window;
308
+ if ((typeof window === "undefined" ? "undefined" : _type_of(window)) === 'object') return window;
305
309
  }
306
310
  }();
307
311
  //@ts-ignore
@@ -32,6 +32,10 @@ function _async_to_generator(fn) {
32
32
  });
33
33
  };
34
34
  }
35
+ function _type_of(obj) {
36
+ "@swc/helpers - typeof";
37
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
38
+ }
35
39
  function _ts_generator(thisArg, body) {
36
40
  var f, y, t, g, _ = {
37
41
  label: 0,
@@ -293,11 +297,11 @@ var createContainer = function(federationOptions) {
293
297
  };
294
298
  __webpack_require__.f = {};
295
299
  __webpack_require__.g = function() {
296
- if (typeof globalThis === 'object') return globalThis;
300
+ if ((typeof globalThis === "undefined" ? "undefined" : _type_of(globalThis)) === 'object') return globalThis;
297
301
  try {
298
302
  return _this || new Function('return this')();
299
303
  } catch (e) {
300
- if (typeof window === 'object') return window;
304
+ if ((typeof window === "undefined" ? "undefined" : _type_of(window)) === 'object') return window;
301
305
  }
302
306
  }();
303
307
  //@ts-ignore
package/dist/index.cjs.js CHANGED
@@ -303,7 +303,9 @@ function initContainerEntry(options) {
303
303
  name: webpackRequire.federation.initOptions.name,
304
304
  remotes: []
305
305
  }, remoteEntryInitOptions));
306
- federationInstance.initShareScopeMap(name, shareScope);
306
+ federationInstance.initShareScopeMap(name, shareScope, {
307
+ hostShareScopeMap: (remoteEntryInitOptions === null || remoteEntryInitOptions === void 0 ? void 0 : remoteEntryInitOptions.shareScopeMap) || {}
308
+ });
307
309
  if (webpackRequire.federation.attachShareScopeMap) {
308
310
  webpackRequire.federation.attachShareScopeMap(webpackRequire);
309
311
  }
package/dist/index.esm.js CHANGED
@@ -281,7 +281,9 @@ function initContainerEntry(options) {
281
281
  name: webpackRequire.federation.initOptions.name,
282
282
  remotes: []
283
283
  }, remoteEntryInitOptions));
284
- federationInstance.initShareScopeMap(name, shareScope);
284
+ federationInstance.initShareScopeMap(name, shareScope, {
285
+ hostShareScopeMap: (remoteEntryInitOptions === null || remoteEntryInitOptions === void 0 ? void 0 : remoteEntryInitOptions.shareScopeMap) || {}
286
+ });
285
287
  if (webpackRequire.federation.attachShareScopeMap) {
286
288
  webpackRequire.federation.attachShareScopeMap(webpackRequire);
287
289
  }
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.1.18",
4
+ "version": "0.1.20",
5
5
  "license": "MIT",
6
6
  "description": "Module Federation Runtime for webpack",
7
7
  "keywords": [
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.1.18",
4
+ "version": "0.1.20",
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.1.18",
24
- "@module-federation/sdk": "0.1.18"
23
+ "@module-federation/runtime": "0.1.20",
24
+ "@module-federation/sdk": "0.1.20"
25
25
  },
26
26
  "exports": {
27
27
  ".": {
@@ -49,6 +49,6 @@
49
49
  }
50
50
  },
51
51
  "devDependencies": {
52
- "@module-federation/runtime": "0.1.18"
52
+ "@module-federation/runtime": "0.1.20"
53
53
  }
54
54
  }