Open colinlienard opened 1 week ago
Thanks for the PR
This is blocked until we add condition support to the CJS resolver though. Since tsx aims to consolidate ESM and CJS, we want to avoid introducing discrepancies between them.
I tried adding support for CJS, but it seems quite challenging. Do you have any ideas on how to make it work? @privatenumber
Add support for customConditions in ESM.
For example, if a tsconfig contains this:
passing the condition as an arg to the CLI would not be needed anymore:
But this is only for ESM as explained here: https://github.com/privatenumber/tsx/issues/574#issuecomment-2156442343
Related to #574