In node >= 16, the default behaviour of promises is to throw if not caught, resulting in hard-rejection being essentially entirely useless now, and just increasing the installed size of a project using this package; sadly specifying hardRejection:false does not result in the hard-rejection package being excluded from the installed packages when running a project with meow in it. Most tree-shaking tools (all that I know of) are unable to figure out that that option makes the package unnecessary, even despite of sideEffects:false.
In node >= 16, the default behaviour of promises is to throw if not caught, resulting in
hard-rejection
being essentially entirely useless now, and just increasing the installed size of a project using this package; sadly specifyinghardRejection:false
does not result in thehard-rejection
package being excluded from the installed packages when running a project with meow in it. Most tree-shaking tools (all that I know of) are unable to figure out that that option makes the package unnecessary, even despite of sideEffects:false.