From d4807df2e9277f3ea5aac8b982af5e114d06f912 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Wed, 7 Jan 2026 17:21:44 +0100 Subject: [PATCH] add v8 snapshot instructions into the README --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index a854ad00..478a28ed 100644 --- a/README.md +++ b/README.md @@ -211,6 +211,23 @@ env. But you can directly use the zig command: `zig build run`. +#### Embed v8 snapshot + +Lighpanda uses v8 snapshot. By default, it is created on startup but you can +embed it by using the following commands: + +Generate the snapshot. +``` +zig build snapshot_creator -- src/snapshot.bin +``` + +Build using the snapshot binary. +``` +zig build -Dsnapshot_path=../../snapshot.bin +``` + +See [#1279](https://github.com/lightpanda-io/browser/pull/1279) for more details. + ## Test ### Unit Tests