From 186a972db738c7fd5d90a7cf096d5d6a326f6c3d Mon Sep 17 00:00:00 2001 From: tresabhi Date: Sat, 9 Sep 2023 02:56:34 +0000 Subject: [PATCH] feat: added compatibility for next js --- scripts/build.js | 1 + tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build.js b/scripts/build.js index c777447a5..73d7336c3 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -19,6 +19,7 @@ files.forEach(async (file) => { '.ttf': 'file', }, format: 'cjs', + jsx: 'transform', bundle: true, sourcemap: true, diff --git a/tsconfig.json b/tsconfig.json index f66c402f5..247c2639e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,7 @@ "skipLibCheck": true, "noEmit": true, "resolveJsonModule": true, - "jsx": "react-jsx", + "jsx": "preserve", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "incremental": true,