diff options
Diffstat (limited to 'cli/module_loader.rs')
-rw-r--r-- | cli/module_loader.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/module_loader.rs b/cli/module_loader.rs index 593868687..91227802a 100644 --- a/cli/module_loader.rs +++ b/cli/module_loader.rs @@ -382,7 +382,9 @@ impl<TGraphContainer: ModuleGraphContainer> let code_cache = if module_type == ModuleType::JavaScript { self.shared.code_cache.as_ref().map(|cache| { - let code_hash = FastInsecureHasher::hash(&code); + let code_hash = FastInsecureHasher::new_deno_versioned() + .write_hashable(&code) + .finish(); let data = cache .get_sync(specifier, code_cache::CodeCacheType::EsModule, code_hash) .map(Cow::from) |