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: Incorrect exports #87

Closed timfish closed 1 month ago

timfish commented 1 month ago

Closes #68, Closes #77, Closes #62, Closes #60...

We need to mimic the behaviour of Node ESM resolution and my testing so far without the loader suggests that:

Ideally we should have tests that ensure that module exports are identical both with and without the loader hook because currently this isn't the case.

To accomplish the above:

timfish commented 1 month ago

Closing in favour of #85 which removes more redundant code