From f3d22ba07f15eb4387b7d7b00ed30641ebadc597 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Thu, 23 Sep 2021 21:39:05 +0800 Subject: [PATCH] chore: set `isolatedModules` to true To address the limitation of esbuild that features like `const enum` can't be supported --- template/config/typescript/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/template/config/typescript/tsconfig.json b/template/config/typescript/tsconfig.json index 767939c3..8c707192 100644 --- a/template/config/typescript/tsconfig.json +++ b/template/config/typescript/tsconfig.json @@ -5,6 +5,7 @@ "useDefineForClassFields": true, "module": "esnext", "moduleResolution": "node", + "isolatedModules": true, "strict": true, "jsx": "preserve", "sourceMap": true, -- 2.39.5