code: function bundle (parser, options) {
    // console.log('Bundling $ref pointers in %s', parser.$refs._root$Ref.path);
  
    // Build an inventory of all $ref pointers in the JSON Schema
    var inventory = [];
    crawl(parser, "schema", parser.$refs._root$Ref.path + "#", "#", 0, inventory, parser.$refs, options);
  
    // Remap all $ref pointers
    remap(inventory);
  }
docs: Bundles all external JSON references into the main JSON schema, thus resulting in a schema that
  only has *internal* references, not any *external* references.
  This method mutates the JSON schema object, adding new references and re-mapping existing ones.
  
  @param {$RefParser} parser
  @param {$RefParserOptions} options