@module-federation/runtime 0.0.0-next-20240415222600 → 0.0.0-next-20240417205114

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
@@ -1567,6 +1567,7 @@ class FederationHost {
1567
1567
  ]);
1568
1568
  // Merge plugin
1569
1569
  this.options.plugins = this.options.plugins.reduce((res, plugin)=>{
1570
+ if (!plugin) return res;
1570
1571
  if (res && !res.find((item)=>item.name === plugin.name)) {
1571
1572
  res.push(plugin);
1572
1573
  }
package/dist/index.esm.js CHANGED
@@ -1565,6 +1565,7 @@ class FederationHost {
1565
1565
  ]);
1566
1566
  // Merge plugin
1567
1567
  this.options.plugins = this.options.plugins.reduce((res, plugin)=>{
1568
+ if (!plugin) return res;
1568
1569
  if (res && !res.find((item)=>item.name === plugin.name)) {
1569
1570
  res.push(plugin);
1570
1571
  }
package/dist/share.cjs.js CHANGED
@@ -657,7 +657,7 @@ function formatShare(shareArgs, from, name) {
657
657
  throw new Error(`Can not get shared '${name}'!`);
658
658
  });
659
659
  }
660
- var _shareArgs_version;
660
+ var _shareArgs_version, _shareArgs_scope;
661
661
  return _extends({
662
662
  deps: [],
663
663
  useIn: [],
@@ -674,7 +674,7 @@ function formatShare(shareArgs, from, name) {
674
674
  loaded: 'lib' in shareArgs ? true : undefined,
675
675
  version: (_shareArgs_version = shareArgs.version) != null ? _shareArgs_version : '0',
676
676
  scope: Array.isArray(shareArgs.scope) ? shareArgs.scope : [
677
- 'default'
677
+ (_shareArgs_scope = shareArgs.scope) != null ? _shareArgs_scope : 'default'
678
678
  ],
679
679
  strategy: shareArgs.strategy || 'version-first'
680
680
  });
package/dist/share.esm.js CHANGED
@@ -655,7 +655,7 @@ function formatShare(shareArgs, from, name) {
655
655
  throw new Error(`Can not get shared '${name}'!`);
656
656
  });
657
657
  }
658
- var _shareArgs_version;
658
+ var _shareArgs_version, _shareArgs_scope;
659
659
  return _extends({
660
660
  deps: [],
661
661
  useIn: [],
@@ -672,7 +672,7 @@ function formatShare(shareArgs, from, name) {
672
672
  loaded: 'lib' in shareArgs ? true : undefined,
673
673
  version: (_shareArgs_version = shareArgs.version) != null ? _shareArgs_version : '0',
674
674
  scope: Array.isArray(shareArgs.scope) ? shareArgs.scope : [
675
- 'default'
675
+ (_shareArgs_scope = shareArgs.scope) != null ? _shareArgs_scope : 'default'
676
676
  ],
677
677
  strategy: shareArgs.strategy || 'version-first'
678
678
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime",
3
- "version": "0.0.0-next-20240415222600",
3
+ "version": "0.0.0-next-20240417205114",
4
4
  "author": "zhouxiao <codingzx@gmail.com>",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.esm.js",
@@ -45,6 +45,6 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "@module-federation/sdk": "0.0.0-next-20240415222600"
48
+ "@module-federation/sdk": "0.0.0-next-20240417205114"
49
49
  }
50
50
  }