code: function _monkeyPatchConfigure(compiler, complete, options) {
    var configurePath = path.join(compiler.dir, 'configure.py');
    var snapshotPath = options.startupSnapshot;
  
    if (snapshotPath != null) {
      _log('monkey patching configure file');
      snapshotPath = path.join(process.cwd(), snapshotPath);
      return _monkeypatch(
        configurePath,
        function(content) {
          return ~content.indexOf('v8_embed_script');
        },
        function(content, next) {
          next(
            null,
            content.replace(
              'def configure_v8(o):',
              `def configure_v8(o):
    o['variables']['v8_embed_script'] = r'${snapshotPath}'
    o['variables']['v8_warmup_script'] = r'${snapshotPath}'`,
            ),
          );
        },
        complete,
      );
    } else {
      _log('not  patching configure file');
    }
  
    return complete();
  }
docs: patch the configure file to allow for custom startup snapshots