]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
chore: set `isolatedModules` to true
authorHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 23 Sep 2021 13:39:05 +0000 (21:39 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 23 Sep 2021 13:39:05 +0000 (21:39 +0800)
To address the limitation of esbuild that features like `const enum`
can't be supported

template/config/typescript/tsconfig.json

index 767939c3bb1df20d280400c5aa1a18d8d46cfa15..8c7071924e521e87d4c260773a63e1843793e2f9 100644 (file)
@@ -5,6 +5,7 @@
     "useDefineForClassFields": true,
     "module": "esnext",
     "moduleResolution": "node",
+    "isolatedModules": true,
     "strict": true,
     "jsx": "preserve",
     "sourceMap": true,