summaryrefslogtreecommitdiff
path: root/deno_typescript
diff options
context:
space:
mode:
Diffstat (limited to 'deno_typescript')
-rw-r--r--deno_typescript/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/deno_typescript/lib.rs b/deno_typescript/lib.rs
index 25e5a7fd0..54d9b1d3b 100644
--- a/deno_typescript/lib.rs
+++ b/deno_typescript/lib.rs
@@ -148,6 +148,11 @@ pub fn compile_bundle(
let config_json = serde_json::json!({
"compilerOptions": {
"declaration": true,
+ // In order to help ensure there are no type directed emits in the code
+ // which interferes with transpiling only, the setting
+ // `"importsNotUsedAsValues"` set to `"error"` will help ensure that items
+ // that are written as `import type` are caught and are treated as errors.
+ "importsNotUsedAsValues": "error",
// Emit the source alongside the sourcemaps within a single file;
// requires --inlineSourceMap or --sourceMap to be set.
// "inlineSources": true,