jsxFactory import showing as unused when TSX is configured via tsconfig and only contains fragments #60459
Labels
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
π Search Terms
TSX unused fragment jsxFactory
π Version & Regression Information
This is the behavior in every version I tried, and I reviewed the FAQ for entries about "jsx"
β― Playground Link
https://www.typescriptlang.org/dev/bug-workbench/?noUnusedLocals=true&jsxFactory=element&jsxFragmentFactory=fragment#code/PTAEAECsGcA8C5QCcCmBDAxgFwFAgjLAGKZYD2SAnoigDYoC2KAdrvlHEUmgOZOslsFaqABm3PizZhwzMgFVmAV2goAJgBkyGNLWg48M0QEt6zNE0THmalLAB0WODmMMADhSygA3nUZSAGjEJfiwAX2CyBlAAcntgQhiAbgMMMmZoMnp7WjIeAAoAHgA+Ll5QwuBigEoUwwgTMwsUREJHfTsPJC9RJWZsY3TQP1D86p8wg07PMT6BofFyqTGJ0CA
π» Code
Workbench Repro
π Actual behavior
π Expected behavior
element
is used in the generated output so should not be found as unused.Generated output:
Additional information about the issue
Using pragmas instead of tsconfig works as expected so hopefully it's not a big gap to align these
Workbench Repro
The text was updated successfully, but these errors were encountered: