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

Closed timfish closed 6 months ago

timfish commented 6 months 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 6 months ago

Closing in favour of #85 which removes more redundant code