diff --git a/src/apis.ts b/src/apis.ts index e3758ba3b..6a5d0b401 100644 --- a/src/apis.ts +++ b/src/apis.ts @@ -73,6 +73,13 @@ export function registerMicroApps( customProps: props, }); }); + + // only show same name warn info + apps.forEach((app) => { + if (microApps.some((registeredApp) => registeredApp.name === app.name)) { + console.warn(`Each app only needs to be registered once by ${app.name}`); + } + }); } const appConfigPromiseGetterMap = new Map>();