-
Notifications
You must be signed in to change notification settings - Fork 13.4k
jsxRuntime pragma does not workΒ #59340
Copy link
Copy link
Closed
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.
Milestone
Metadata
Metadata
Assignees
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.
Type
Fields
Give feedbackNo fields configured for issues without a type.
π Search Terms
jsxRuntime
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?jsx=4&ts=5.6.0-dev.20240717#code/PQKgBAAgVgzgHgJQK4DsAuBLAtgUzAYwBsBDGGDfMEYAKBzgAcB7AJzQKZRnYAkdDCTAOqtCAEzABeMAAoAlFIB8YADwALAIyK+ApmADuosSuCbFAbiA
π» Code
π Actual behavior
The
jsxRuntimepragma is not respected and function emit follows thejsxoption in the TSConfig.For example, with
"jsx": "react-jsx", the function is emitted asπ Expected behavior
The
jsxRuntimepragma is respected and the function is emitted asAdditional information about the issue
The code above is copied verbatim from the TSConfig Reference