diff --git a/src/child/child-require.ts b/src/child/child-require.ts index 2ee155221..cac676e2a 100644 --- a/src/child/child-require.ts +++ b/src/child/child-require.ts @@ -14,7 +14,7 @@ if (Array.isArray(_process._events.warning)) { _process._events.warning = onWarning; } -const messageMatch = /--(?:experimental-)?loader\b/; +const messageMatch = /(?:--(?:experimental-)?loader\b|\bCustom ESM Loaders\b)/; function onWarning(this: any, warning: Error, ...rest: any[]) { // Suppress warning about how `--loader` is experimental if (