fix(cli): narrow protobufjs warning suppression to specific message

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2026-05-26 12:04:56 +02:00
parent a1971eace8
commit eca61bc02e
@@ -401,7 +401,11 @@ export async function createConfig(
// but webpack/rspack still statically analyzes the source and emits a
// "Critical dependency" warning. Safe to suppress.
// See https://github.com/protobufjs/protobuf.js/issues/2057
{ module: /@protobufjs[\\/]inquire/ },
{
module: /@protobufjs[\\/]inquire/,
message:
/Critical dependency: the request of a dependency is an expression/,
},
// 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.