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.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/global_state.rs b/cli/global_state.rs
index 38aff2093..fd4cf8047 100644
--- a/cli/global_state.rs
+++ b/cli/global_state.rs
@@ -124,13 +124,14 @@ impl ThreadSafeGlobalState {
pub fn fetch_compiled_module(
self: &Self,
module_specifier: &ModuleSpecifier,
+ maybe_referrer: Option<ModuleSpecifier>,
) -> impl Future<Output = Result<CompiledModule, ErrBox>> {
let state1 = self.clone();
let state2 = self.clone();
self
.file_fetcher
- .fetch_source_file_async(&module_specifier)
+ .fetch_source_file_async(&module_specifier, maybe_referrer)
.and_then(move |out| match out.media_type {
msg::MediaType::Unknown => state1.js_compiler.compile_async(&out),
msg::MediaType::Json => state1.json_compiler.compile_async(&out),