diff --git a/.swcrc b/.swcrc index 298f73452a..120cb676a5 100644 --- a/.swcrc +++ b/.swcrc @@ -1,4 +1,5 @@ { + "$schema": "https://swc.rs/schema.json", "sourceMaps": true, "jsc": { "parser": { @@ -7,7 +8,7 @@ }, "transform": { "react": { - "runtime": "classic", + "runtime": "automatic", "refresh": true } } diff --git a/tsconfig.json b/tsconfig.json index 429fa55461..d20e9a2598 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,7 +25,7 @@ "skipLibCheck": true, "allowJs": true, "outDir": "out", - "jsx": "react", + "jsx": "react-jsx", "plugins": [{ "name": "typescript-plugin-css-modules"}] }, "include": [