diff options
Diffstat (limited to 'cli/module_loader.rs')
-rw-r--r-- | cli/module_loader.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/module_loader.rs b/cli/module_loader.rs index 21ceee109..e6329a0ec 100644 --- a/cli/module_loader.rs +++ b/cli/module_loader.rs @@ -653,16 +653,16 @@ impl ModuleLoader for CliModuleLoader { maybe_referrer: Option<&ModuleSpecifier>, is_dynamic: bool, requested_module_type: RequestedModuleType, - ) -> Pin<Box<deno_core::ModuleSourceFuture>> { + ) -> deno_core::ModuleLoadResponse { // NOTE: this block is async only because of `deno_core` interface // requirements; module was already loaded when constructing module graph // during call to `prepare_load` so we can load it synchronously. - Box::pin(deno_core::futures::future::ready(self.load_sync( + deno_core::ModuleLoadResponse::Sync(self.load_sync( specifier, maybe_referrer, is_dynamic, requested_module_type, - ))) + )) } fn prepare_load( |