Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

added .tsx to compiler options

Blue Mouse64d74df14afe
diff --git a/package.json b/package.json
index c6ac5d593..b9d580208 100644
--- a/package.json
+++ b/package.json
@@ -107,7 +107,8 @@
{
"extensions": [
".js",
- ".jsx"
+ ".jsx",
+ ".tsx"
]
}
],
diff --git a/tsconfig.json b/tsconfig.json
index 0030ae41c..7ffe32bae 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -13,7 +13,7 @@
/* Language and Environment */
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
- // "jsx": "preserve", /* Specify what JSX code is generated. */
+ "jsx": "react", /* Specify what JSX code is generated. */
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */