Merge pull request #32521 from backstage/rugvip/no-multi

frontend-plugin-api: deprecate support for multiple attachment points
This commit is contained in:
Patrik Oldsberg
2026-01-27 13:52:57 +01:00
committed by GitHub
31 changed files with 450 additions and 338 deletions
@@ -165,6 +165,12 @@ export function resolveAppTree(
if (spec.id === rootNodeId) {
rootNode = node;
} else if (Array.isArray(spec.attachTo)) {
// eslint-disable-next-line no-console
console.warn(
`Extension '${spec.id}' is using multiple attachment points which is deprecated and will be removed in a future release. ` +
`Use a Utility API instead to share functionality across multiple locations. ` +
`See https://backstage.io/docs/frontend-system/architecture/27-sharing-extensions for migration guidance.`,
);
let foundFirstParent = false;
for (const origAttachTo of spec.attachTo) {
let attachTo = origAttachTo;