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:
@@ -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/,
|
||||
},
|
||||
],
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user