@nx/js:tsc "external" configuration deprecated #26439
danielsharvey
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
Hi community, 🆘 What's the alternative solution about this? I have a nx workspace Currently everything works as I have the Does this mean that we need to bundle our apps and libs with a different than |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
external
configuration for the@nx/js:tsc
executor is marked as deprecated. It was marked that way in a seemingly unrelated PR #22856.The discussion:
A related issue from my perspective is the recently added declarations/typings support added to the
@nx/esbuild/esbuild
executor (see #21084 and #20688).Under the hood, the esbuild declarations support is achieved using tsc, and as it currently standard the
external
configuration provided to esbuild is not mirrored in the declarations build by the executor using tsc (a limitation that can result in inconsistent between the esbuild output and declarations output).I'm keen to know the Nx teams thoughts on the direction moving forward here. On one hand, we have external support being marked as deprecated on the other we have new features in the "tsc" space.
To my mind, tsc support (and generating declarations using tsc) is intimately connected with the library dependency graphs that are core to Nx.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions