-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support customConditions
in tsconfig.json
#574
Labels
Comments
Feature requests are reserved for sponsors, but I'll accept this for you @colinhacks! This should be trivial to support for ESM, but it may be challenging with the CJS resolver as it doesn't seem to offer a way to accept conditions: |
This comment has been minimized.
This comment has been minimized.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Acknowledgements
Minimal reproduction URL
This is actually a feature request sorry :(
It would be cool if
tsx
automatically readcustomConditions
fromtsconfig.json
and passed it tonode
using--conditions
.Problem & expected behavior (under 200 words)
"Repro" is https://github.com/colinhacks/live-typescript-monorepo
I'm using custom export conditions in my TypeScript monorepo (described in more detail here). Since
tsconfig.json
already supports thecustomConditions
compiler option for specifying custom export conditions, it would be cool iftsx
could read that and incorporate it into module resolution automatically.Bugs are expected to be fixed by those affected by it
Compensating engineering work financially will speed up resolution
The text was updated successfully, but these errors were encountered: