You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bootstrap: implement --snapshot-blob and --snapshot-main
This patch introduces --snapshot-main and --snapshot-blob options
for creating and using user land snapshots. At the time of the
creation of this patch, user land CJS modules and ESM are not
yet supported in the snapshot, but a subset of builtins should
already work (in particular modules loaded during bootstrap
are shipped in the built-in snapshot, so they should work
in user land snapshot as well), and support for more builtins
are being added.
To generate a snapshot using main.js as entry point and write
the snapshot blob to snapshot.blob:
$ node --snapshot-main main.js --snapshot-blob snapshot.blob
To restore application state from snapshot.blob:
$ node --snapshot-blob snapshot.blob
0 commit comments