Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsamson7 committed Nov 3, 2024
1 parent 1380f67 commit 20d278f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modulefederation/libs/portal/src/lib/portal-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export class PortalManager {
// construct lazy routes

const lazyRoutes: Routes = Object.values(modules)
.filter((module) => module.remoteEntry !== undefined)
.filter((module) => module.type == "microfrontend")
.map((module) => {
const key = module.name;
const feature = this.featureRegistry.getFeature(key);
Expand Down Expand Up @@ -375,9 +375,7 @@ export class PortalManager {

this.moduleRegistry.register(module); // will keep original

if (module.remoteEntry) {
module.type = 'microfrontend';

if (module.type == 'microfrontend') {
let remoteEntry = module.remoteEntry;
if ( module.remoteEntryName)
remoteEntry = remoteEntry + "/" + module.remoteEntryName
Expand Down

0 comments on commit 20d278f

Please sign in to comment.