@@ -323,6 +323,30 @@ Currently the support for run-time snapshot is experimental in that:
323
323
a report in the [ Node.js issue tracker] [ ] and link to it in the
324
324
[ tracking issue for user-land snapshots] [ ] .
325
325
326
+ ### ` --build-snapshot-config `
327
+
328
+ <!-- YAML
329
+ added: REPLACEME
330
+ -->
331
+
332
+ > Stability: 1 - Experimental
333
+
334
+ Specifies the path to a JSON configuration file which configures snapshot
335
+ creation behavior.
336
+
337
+ The following options are currently supported:
338
+
339
+ * ` builder ` {string} Required. Provides the name to the script that is executed
340
+ before building the snapshot, as if [ ` --build-snapshot ` ] [ ] had been passed
341
+ with ` builder ` as the main script name.
342
+ * ` withoutCodeCache ` {boolean} Optional. Including the code cache reduces the
343
+ time spent on compiling functions included in the snapshot at the expense
344
+ of a bigger snapshot size and potentially breaking portability of the
345
+ snapshot.
346
+
347
+ When using this flag, additional script files provided on the command line will
348
+ not be executed and instead be interpreted as regular command line arguments.
349
+
326
350
### ` -c ` , ` --check `
327
351
328
352
<!-- YAML
@@ -2856,6 +2880,7 @@ done
2856
2880
[ `--allow-fs-read` ] : #--allow-fs-read
2857
2881
[ `--allow-fs-write` ] : #--allow-fs-write
2858
2882
[ `--allow-worker` ] : #--allow-worker
2883
+ [ `--build-snapshot` ] : #--build-snapshot
2859
2884
[ `--cpu-prof-dir` ] : #--cpu-prof-dir
2860
2885
[ `--diagnostic-dir` ] : #--diagnostic-dirdirectory
2861
2886
[ `--experimental-default-type=module` ] : #--experimental-default-typetype
0 commit comments