summaryrefslogtreecommitdiff
path: root/cli/emit.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-10-24 15:48:48 -0400
committerGitHub <noreply@github.com>2024-10-24 19:48:48 +0000
commiteedf243b5ea98d22649bb0445444719a2fc12c59 (patch)
tree8f31d76e6223c195afb848f42d1ec7b9115bc7e1 /cli/emit.rs
parentea641897c92e3975dd102b31c1419720df358d12 (diff)
perf(compile): pass module source data from binary directly to v8 (#26494)
This changes denort to pass a static reference of the moude source bytes found in the binary to v8 instead of copying it.
Diffstat (limited to 'cli/emit.rs')
-rw-r--r--cli/emit.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/emit.rs b/cli/emit.rs
index b3f4a4477..ad200af05 100644
--- a/cli/emit.rs
+++ b/cli/emit.rs
@@ -60,6 +60,7 @@ impl Emitter {
continue;
};
+ // todo(https://github.com/denoland/deno_media_type/pull/12): use is_emittable()
let is_emittable = matches!(
module.media_type,
MediaType::TypeScript