-
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