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: Allow passing of `include` or `exclude` list via `module.register()` #124

Closed timfish closed 3 days ago

timfish commented 4 days ago

This PR adds the ability to pass an array of modules or URLs to include or exclude from wrapping via the data property passed as the third argument of module.register().

Since import-in-the-middle has issues that we don't know how to solve, it makes sense to allow a way to work around these issues so it can still be used.