Merge pull request #33125 from davidfestal/add-bundle-command

feat(cli): add `backstage-cli package bundle` command for plugin dynamic loading
This commit is contained in:
Patrik Oldsberg
2026-03-16 19:26:01 +01:00
committed by GitHub
34 changed files with 2635 additions and 70 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-dynamic-feature-service': patch
---
Fixed `resolvePackagePath` resolution for bundled dynamic plugins. When a plugin bundles its own copy of `@backstage/backend-plugin-api` inside `node_modules`, the `CommonJSModuleLoader` fallback now correctly resolves the plugin's `package.json` by name. Previously the fallback only applied when the resolution originated from the host application; it now also applies when originating from a bundled dependency, which is the case for plugins produced by the `backstage-cli package bundle` command.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli-module-build': minor
---
Added `package bundle` command to create self-contained plugin bundles for dynamic loading, to be used by the `backend-dynamic-feature-service`. Supports backend and frontend plugins, with optional `--pre-packed-dir` for batch bundling from a pre-built workspace.