Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

remove redudent rejections #10

Closed
wants to merge 2 commits into from
Closed

Conversation

calvinmetcalf
Copy link

currently if you have 2 substitutions and one is a more specific version of the other (e.g. Buffer and Buffer.isBuffer or process and process.browser) then any match for the more specific one will also match the less specific one, which isn't a huge deal, unless the more specific one includes side effects that the less specific one doesn't have.

@Rich-Harris
Copy link
Contributor

Thanks – totally correct, those imports shouldn't happen. I found a slightly simpler way of doing it though, so I'll close this in favour of #11 🍺

@Rich-Harris
Copy link
Contributor

Released as 2.0.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants