Skip to content

Commit

Permalink
Update child-require.ts (#1701)
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode authored Mar 29, 2022
1 parent 98f30e8 commit 511e0e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/child/child-require.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 511e0e7

Please sign in to comment.