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

Should fail gracefully when exports cannot be parsed #101

Closed timfish closed 3 weeks ago

timfish commented 3 weeks ago

If exports cannot be parsed from source, iitm should fail gracefully and fall back to not wrapping modules.

iitm can fail to parse the source for a number of reasons: