summaryrefslogtreecommitdiff
path: root/cli/tsc.rs
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2020-09-08 15:28:42 +0200
committerGitHub <noreply@github.com>2020-09-08 15:28:42 +0200
commit6ff939553216125ce058a070d91b7eb430cc4665 (patch)
tree794d50667d09ce852646f33dcab5b8ad21f31a41 /cli/tsc.rs
parent241d2281045b7edef93b069a739eee54bf9f1640 (diff)
feat(unstable): enable isolatedModules by default (#7327)
Diffstat (limited to 'cli/tsc.rs')
-rw-r--r--cli/tsc.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tsc.rs b/cli/tsc.rs
index 0e2e19a9c..ae2db6978 100644
--- a/cli/tsc.rs
+++ b/cli/tsc.rs
@@ -621,6 +621,8 @@ impl TsCompiler {
"esModuleInterop": true,
"incremental": true,
"inlineSourceMap": true,
+ // TODO(lucacasonato): enable this by default in 1.5.0
+ "isolatedModules": unstable,
"jsx": "react",
"lib": lib,
"module": "esnext",
@@ -1252,6 +1254,8 @@ pub async fn runtime_compile(
"allowNonTsExtensions": true,
"checkJs": false,
"esModuleInterop": true,
+ // TODO(lucacasonato): enable this by default in 1.5.0
+ "isolatedModules": unstable,
"jsx": "react",
"module": "esnext",
"sourceMap": true,