Uh oh!
There was an error while loading. Please reload this page.
Add support for the @jsxruntime pragma - #59500
Conversation
Jake Bailey (jakebailey)
commented
Aug 1, 2024
That was changed in https://github.com/microsoft/TypeScript-Website/pull/3064/files; we could just remove this line. Not sure if something like esbuild supports this either? |
Andrew Branch (andrewbranch)
commented
Aug 1, 2024
Where do the values "classic" and "automatic" come from? |
I actually think I just missed a typo in the docs; shouldn't they have been |
Wesley Wigham (weswigham)
commented
Aug 1, 2024
They come from the babel transform.
Nope. They're what they are to match what babel supports, nothing more, nothing less. We're not the originators of these pragmas. |
Not sure who updated the docs to imply we supported it, but we didn't, and haven't since our initial implementation of the new jsx transform. As I said in that PR, supporting it, if we'd like to, is fairly easy. Since it seems like it was assumed we did, here we are.
Fixes#59340