Files
meteor/tools/node-process-warnings.js
denihs dce340b444 - remove module-alias
- create a new way to filter node warnings
- bump BUNDLE_VERSION
2024-10-29 13:41:04 -04:00

21 lines
713 B
JavaScript

process.on("warning", (warn) => {
if (warn.message.includes("punycode")) {
/*
* A warning was introduced in Node 22:
*
* "The `punycode` module is deprecated. Please use a userland alternative instead."
*
* The problem is that punycode is deeply integrated in the Node system. It's not a
* simple direct dependency.
*
* Check these issues for more details:
* https://github.com/mathiasbynens/punycode.js/issues/137
* https://stackoverflow.com/questions/68774489/punycode-is-deprecated-in-npm-what-should-i-replace-it-with/78946745
*
* This warning was, besides being annoying, breaking our tests.
*/
return;
}
console.warn(warn);
});