From fb92e61cbb5a81db46cd69585b8d67bccf87d4b5 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 8 Aug 2024 07:41:13 -0400 Subject: [PATCH 1/3] fix: use react-jsx transform and support ES2021 types --- tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 1c61c9d..957cdf9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,8 +5,8 @@ "declaration": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, - "jsx": "react", - "lib": ["dom", "es6", "dom.iterable"], + "jsx": "react-jsx", + "lib": ["DOM", "ES6", "DOM.Iterable", "ES2021"], "isolatedModules": true, "module": "ES6", "moduleResolution": "node", From e145b0d23ac417e98a619029ea61006ebe219d8c Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 8 Aug 2024 09:41:18 -0400 Subject: [PATCH 2/3] chore: update lib to include esnext --- tsconfig.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 957cdf9..fb097b6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,11 @@ "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "jsx": "react-jsx", - "lib": ["DOM", "ES6", "DOM.Iterable", "ES2021"], + "lib": [ + "DOM", + "DOM.Iterable", + "ESNext" + ], "isolatedModules": true, "module": "ES6", "moduleResolution": "node", From 864f0f06916831e9144445303c02f30e9e3f792e Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 8 Aug 2024 09:58:54 -0400 Subject: [PATCH 3/3] fix: use ESNext for module --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index fb097b6..6c85fc7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,7 @@ "ESNext" ], "isolatedModules": true, - "module": "ES6", + "module": "ESNext", "moduleResolution": "node", "noFallthroughCasesInSwitch": true, "noImplicitAny": false,