summaryrefslogtreecommitdiff
path: root/cli/tsc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tsc.rs')
-rw-r--r--cli/tsc.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/tsc.rs b/cli/tsc.rs
index e3c7d9d84..d78485fd3 100644
--- a/cli/tsc.rs
+++ b/cli/tsc.rs
@@ -612,6 +612,7 @@ impl TsCompiler {
"inlineSourceMap": true,
// TODO(lucacasonato): enable this by default in 1.5.0
"isolatedModules": unstable,
+ "importsNotUsedAsValues": if unstable { "error" } else { "remove" },
"jsx": "react",
"lib": lib,
"module": "esnext",
@@ -1248,6 +1249,7 @@ pub async fn runtime_compile(
"esModuleInterop": true,
// TODO(lucacasonato): enable this by default in 1.5.0
"isolatedModules": unstable,
+ "importsNotUsedAsValues": if unstable { "error" } else { "remove" },
"jsx": "react",
"module": "esnext",
"sourceMap": true,