summaryrefslogtreecommitdiff
path: root/cli/build.rs
diff options
context:
space:
mode:
authorMathias Lafeldt <mathias.lafeldt@gmail.com>2024-05-02 00:00:32 +0200
committerGitHub <noreply@github.com>2024-05-01 22:00:32 +0000
commitee122c5af6b8251329c213b4042a6d71ff5d9b71 (patch)
treeffd463f955d1daa09e5d273a2462f1301b8b789c /cli/build.rs
parent505130d813eeb6381bf12ad92a3e9d688ed518a3 (diff)
feat(runtime): allow adding custom extensions to snapshot (#23569)
This makes `create_runtime_snapshot` more useful for embedders who add their own extension(s) to the runtime in build scripts. --------- Signed-off-by: Matt Mastracci <matthew@mastracci.com> Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'cli/build.rs')
-rw-r--r--cli/build.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/build.rs b/cli/build.rs
index 81bd4edda..3b4bfa8a8 100644
--- a/cli/build.rs
+++ b/cli/build.rs
@@ -346,6 +346,7 @@ fn create_cli_snapshot(snapshot_path: PathBuf) {
deno_runtime::snapshot::create_runtime_snapshot(
snapshot_path,
snapshot_options,
+ vec![],
);
}