summaryrefslogtreecommitdiff
path: root/cli/factory.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-11-19 16:19:35 -0500
committerGitHub <noreply@github.com>2024-11-19 16:19:35 -0500
commit46b6037644c761369e689704f8e7b857959da155 (patch)
treea863a8ad6f91a8907d96f50215105a478c6d53ff /cli/factory.rs
parentc55e936be03a3a023330789f903e2fbd12f4a308 (diff)
feat(compile): ability to embed local data files (#26934)
``` > deno compile --allow-read=. --include data-file.txt main.js ``` This only applies to files on the filesystem. For remote modules, that's going to have to wait for `import ... from "./data.txt" with { "type": "bytes" }` or whatever it will be.
Diffstat (limited to 'cli/factory.rs')
-rw-r--r--cli/factory.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/factory.rs b/cli/factory.rs
index 7949a83a5..98149982f 100644
--- a/cli/factory.rs
+++ b/cli/factory.rs
@@ -884,6 +884,7 @@ impl CliFactory {
let cli_options = self.cli_options()?;
Ok(DenoCompileBinaryWriter::new(
self.cjs_tracker()?,
+ self.cli_options()?,
self.deno_dir()?,
self.emitter()?,
self.file_fetcher()?,