k-g-a / jest-node-exports-resolver

MIT License
25 stars 7 forks source link

Respect conditions if present #8

Closed vpzomtrrfrt closed 2 years ago

vpzomtrrfrt commented 2 years ago

See also https://github.com/facebook/jest/pull/11859

There's probably a better way to do this, but this works for my use case at least. Should fix #5

piranna commented 2 years ago

Hi @vpzomtrrfrt, your changes inspired me to how to aproach the problem and I think I've fixed it at https://github.com/k-g-a/jest-node-exports-resolver/commit/900da2e7eac05090b569e5614bf0b6b6838443de, now conditions are properly enforced and work in (one of) my use cases. Can you update to version 1.1.3 and confirm that it works for you too? If not, please update your PR and I'll merge it :-)

vpzomtrrfrt commented 2 years ago

Yes, the latest release appears to work

piranna commented 2 years ago

Yes, the latest release appears to work

Great, good to know :-)