diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-11-19 16:19:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-19 16:19:35 -0500 |
commit | 46b6037644c761369e689704f8e7b857959da155 (patch) | |
tree | a863a8ad6f91a8907d96f50215105a478c6d53ff /cli/args | |
parent | c55e936be03a3a023330789f903e2fbd12f4a308 (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/args')
-rw-r--r-- | cli/args/flags.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 262bc0468..85b8abefe 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -1909,10 +1909,10 @@ On the first invocation with deno will download the proper binary and cache it i Arg::new("include") .long("include") .help( - cstr!("Includes an additional module in the compiled executable's module graph. + cstr!("Includes an additional module or local data file in the compiled executable. <p(245)>Use this flag if a dynamically imported module or a web worker main module - fails to load in the executable. This flag can be passed multiple times, - to include multiple additional modules.</>", + fails to load in the executable or to embed a file in the executable. This flag can + be passed multiple times, to include multiple additional modules.</>", )) .action(ArgAction::Append) .value_hint(ValueHint::FilePath) |