@ice/mf-runtime 1.0.1-beta.1 → 1.0.1
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/es2017/index.js +1 -1
- package/esm/index.js +1 -1
- package/package.json +1 -1
package/es2017/index.js
CHANGED
|
@@ -21,7 +21,7 @@ function generateUniqueId() {
|
|
|
21
21
|
export function initByMicroMods(microMods, hostName) {
|
|
22
22
|
const remotes = microMods.map((microMod)=>{
|
|
23
23
|
var _microMod_remoteEntry;
|
|
24
|
-
const isLegacy = !((_microMod_remoteEntry = microMod.remoteEntry) === null || _microMod_remoteEntry === void 0 ? void 0 : _microMod_remoteEntry.match(/\/mf
|
|
24
|
+
const isLegacy = !((_microMod_remoteEntry = microMod.remoteEntry) === null || _microMod_remoteEntry === void 0 ? void 0 : _microMod_remoteEntry.match(/\/mf\/(?:.*\/)?remoteEntry\.js$/));
|
|
25
25
|
const remote = {
|
|
26
26
|
name: microMod.moduleFederatedName,
|
|
27
27
|
entry: microMod.remoteEntry,
|
package/esm/index.js
CHANGED
|
@@ -21,7 +21,7 @@ function generateUniqueId() {
|
|
|
21
21
|
export function initByMicroMods(microMods, hostName) {
|
|
22
22
|
var remotes = microMods.map(function(microMod) {
|
|
23
23
|
var _microMod_remoteEntry;
|
|
24
|
-
var isLegacy = !((_microMod_remoteEntry = microMod.remoteEntry) === null || _microMod_remoteEntry === void 0 ? void 0 : _microMod_remoteEntry.match(/\/mf
|
|
24
|
+
var isLegacy = !((_microMod_remoteEntry = microMod.remoteEntry) === null || _microMod_remoteEntry === void 0 ? void 0 : _microMod_remoteEntry.match(/\/mf\/(?:.*\/)?remoteEntry\.js$/));
|
|
25
25
|
var remote = {
|
|
26
26
|
name: microMod.moduleFederatedName,
|
|
27
27
|
entry: microMod.remoteEntry,
|