MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / constructor

Method constructor

benchmark/data.js:833–839  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

831const hasOwnProp = Object.prototype.hasOwnProperty;
832class Bundle {
833 constructor(options = {}) {
834 this.intro = options.intro || '';
835 this.separator = options.separator !== void 0 ? options.separator : '\n';
836 this.sources = [];
837 this.uniqueSources = [];
838 this.uniqueSourceIndexByFilename = {};
839 }
840 addSource(source) {
841 if (source instanceof MagicString) {
842 return this.addSource({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected