nodejs / import-in-the-middle

Like `require-in-the-middle`, but for ESM import
https://www.npmjs.com/package/import-in-the-middle
Apache License 2.0
52 stars 20 forks source link

feat: Add environment variable to disable warnings #112

Closed timfish closed 1 week ago

timfish commented 2 weeks ago

This PR adds a DISABLE_IITM_WARNINGS environment variable that can be set to disable the logging of warnings when we fail to wrap a module.

timfish commented 1 week ago

I think it would be better to use Node's built-in mechanism for this

Yep, seems like a better approach!

timfish commented 1 week ago

Closing in favour of #114