--build-snapshot-config
¥Stability: 1 - Experimental
指定配置快照创建行为的 JSON 配置文件的路径。
¥Specifies the path to a JSON configuration file which configures snapshot creation behavior.
目前支持以下选项:
¥The following options are currently supported:
-
builder
<string> 必需的。为构建快照之前执行的脚本提供名称,就好像--build-snapshot
已通过builder
作为主脚本名称一样。¥
builder
<string> Required. Provides the name to the script that is executed before building the snapshot, as if--build-snapshot
had been passed withbuilder
as the main script name. -
withoutCodeCache
<boolean> 可选的。包含代码缓存可以减少编译快照中包含的函数所花费的时间,但代价是快照大小更大,并可能破坏快照的可移植性。¥
withoutCodeCache
<boolean> Optional. Including the code cache reduces the time spent on compiling functions included in the snapshot at the expense of a bigger snapshot size and potentially breaking portability of the snapshot.
使用此标志时,命令行上提供的其他脚本文件将不会被执行,而是被解释为常规命令行参数。
¥When using this flag, additional script files provided on the command line will not be executed and instead be interpreted as regular command line arguments.