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

fix: CommonJs bare specifier resolution #96

Closed timfish closed 3 weeks ago

timfish commented 1 month ago

Closes #95

I've also made the getExports functions return Set<string> instead of string[] as this saves a load of unnecessary allocations.

I've also run this through the additional module tests in #93 and get the same results.