You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for custom module resolution conditions in tsconfig.jsonΒ #53213
Switch target between "dev" and "prod" may be an unnecessary demand, but switch between something like "server" and "client", or "node" and "dom" may be impossible without this feature.
Activity
pilaoda commentedon Mar 12, 2023
https://webpack.js.org/guides/package-exports/#conditions-custom
Since packages like webpack already support such custom conditions, I think there is no reason that typescript should abandon this feature.
npenin commentedon Apr 4, 2023
Even though it is hard to find in the doc, the feature already exists: https://www.typescriptlang.org/tsconfig#customConditions
pilaoda commentedon Apr 4, 2023
Great job! I guess this issue is created on version 4.9 which does't support this feature. Any way, Thanks!