Merge pull request #33802 from davidfestal/fix-bundle-cli-error-in-ci

fix(cli-module-build): ignore MF version warning for secondary entry points
This commit is contained in:
Patrik Oldsberg
2026-04-09 01:08:23 +02:00
committed by GitHub
2 changed files with 16 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli-module-build': patch
---
Suppressed false-positive Module Federation warning for shared dependencies that use secondary entry points (e.g. `@mui/material/styles`). These sub-path `package.json` files lack a `version` field, causing the bundler to emit "No version specified" warnings that fail CI builds.
@@ -394,5 +394,16 @@ export async function createConfig(
}),
},
plugins,
...(options.moduleFederationRemote && {
// TODO: remove this warning skipping as soon as the corresponding bundler limitation
// described in issue https://github.com/web-infra-dev/rspack/issues/13635 is fixed
// when PR: https://github.com/web-infra-dev/rspack/pull/13636 is merged.
ignoreWarnings: [
{
message:
/No version specified and unable to automatically determine one\. No version in description file/,
},
],
}),
};
}