summaryrefslogtreecommitdiff
path: root/cli/cache.rs
diff options
context:
space:
mode:
authorWilliam Tetlow <9057181+williamtetlow@users.noreply.github.com>2022-02-15 12:33:46 +0000
committerGitHub <noreply@github.com>2022-02-15 18:03:46 +0530
commit7b893bd57f2f013c4a11e1e9f0ba435a3cfc96c0 (patch)
tree41bc082445edd7c18ec2586050db110a8393c747 /cli/cache.rs
parent760f4c9e2427e87815a8e59b0807693c8dcb623a (diff)
feat(cli): Replace bundling with eszip in deno compile (#13563)
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Diffstat (limited to 'cli/cache.rs')
-rw-r--r--cli/cache.rs16
1 files changed, 10 insertions, 6 deletions
diff --git a/cli/cache.rs b/cli/cache.rs
index 1075230d1..8bd40fc8a 100644
--- a/cli/cache.rs
+++ b/cli/cache.rs
@@ -164,7 +164,7 @@ impl Loader for FetchCacher {
Err(err)
},
|file| {
- Ok(Some(LoadResponse {
+ Ok(Some(LoadResponse::Module {
specifier: file.specifier,
maybe_headers: file.maybe_headers,
content: file.source,
@@ -288,11 +288,15 @@ impl Loader for MemoryCacher {
specifier_str = specifier_str[3..].to_string();
}
}
- let response = self.sources.get(&specifier_str).map(|c| LoadResponse {
- specifier: specifier.clone(),
- maybe_headers: None,
- content: c.to_owned(),
- });
+ let response =
+ self
+ .sources
+ .get(&specifier_str)
+ .map(|c| LoadResponse::Module {
+ specifier: specifier.clone(),
+ maybe_headers: None,
+ content: c.to_owned(),
+ });
Box::pin(future::ready(Ok(response)))
}
}