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
72 stars 27 forks source link

fix: `node:` prefixed build-in modules with `include`/`exclude` #149

Closed timfish closed 4 months ago

timfish commented 4 months ago

@trentm found a bug in node: prefixed built-in modules when using include and exclude: https://github.com/nodejs/import-in-the-middle/pull/146#issuecomment-2253093908

This PR fixes that bug and adds some tests for it.