fix(cli-module-build): ignore MF version warning for secondary entry points

Signed-off-by: David Festal <dfestal@redhat.com>
This commit is contained in:
David Festal
2026-04-08 14:01:43 +02:00
parent 1e8899a65f
commit f52a296a53
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/,
},
],
}),
};
}