summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2021-06-19 15:14:43 +0100
committerGitHub <noreply@github.com>2021-06-19 16:14:43 +0200
commit2ea41d3ac159e4c2e998d13412dc19680b01a6ca (patch)
treec771d33f481c1bbc1b82f758ec96bfa5c342389c /cli/main.rs
parentb0c04a7941bb1bab0f135c39d484ac47dae14300 (diff)
fix(core/modules): Prepare modules only once per runtime (#11015)
This commit changes module loading implementation in "deno_core" to call "ModuleLoader::prepare" hook only once per entry point. This is done to avoid multiple type checking of the same code in case of duplicated dynamic imports. Relevant code in "cli/module_graph.rs" was updated as well.
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 9941d737a..950234a72 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -598,6 +598,7 @@ async fn create_module_graph_and_maybe_check(
lib,
maybe_config_file: program_state.maybe_config_file.clone(),
reload: program_state.flags.reload,
+ ..Default::default()
})?;
debug!("{}", result_info.stats);