From: Haoqun Jiang Date: Thu, 23 Sep 2021 13:39:05 +0000 (+0800) Subject: chore: set `isolatedModules` to true X-Git-Tag: v3.0.0-beta.4~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3d22ba07f15eb4387b7d7b00ed30641ebadc597;p=thirdparty%2Fvuejs%2Fcreate-vue.git chore: set `isolatedModules` to true To address the limitation of esbuild that features like `const enum` can't be supported --- 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,