Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use React's "automatic" runtime instead of "classic"
- https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html - https://swc.rs/docs/configuration/compilation#jsctransformreactruntime > "Use `runtime: automatic` to use a JSX runtime module (e.g. `react/jsx-runtime` introduced in React 17)." (Note that with the new jsx transform, you can now use jsx/tsx in a file without importing React. TS knows this now, too. Feel free to take its suggestion.) (The $schema key added to .swcrc just adds better hints when editing the JSON config, it's unrelated to the runtime change.)
- Loading branch information