summaryrefslogtreecommitdiff
path: root/cli/global_state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/global_state.rs')
-rw-r--r--cli/global_state.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/global_state.rs b/cli/global_state.rs
index 129ab276a..c9383bd88 100644
--- a/cli/global_state.rs
+++ b/cli/global_state.rs
@@ -138,6 +138,18 @@ impl GlobalState {
.compile(state1.clone(), &out, target_lib)
.await
} else {
+ if let Some(types_url) = out.types_url.clone() {
+ let types_specifier = ModuleSpecifier::from(types_url);
+ state1
+ .file_fetcher
+ .fetch_source_file(
+ &types_specifier,
+ Some(module_specifier.clone()),
+ )
+ .await
+ .ok();
+ };
+
state1.js_compiler.compile(out).await
}
}