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

Method constructor

src/Bundle.ts:47–53  ·  view source on GitHub ↗
(options: BundleOptions = {})

Source from the content-addressed store, hash-verified

45 declare indentExclusionRanges: ExclusionRange | ExclusionRange[] | undefined
46
47 constructor(options: BundleOptions = {}) {
48 this.intro = options.intro || ''
49 this.separator = options.separator !== undefined ? options.separator : '\n'
50 this.sources = []
51 this.uniqueSources = []
52 this.uniqueSourceIndexByFilename = {}
53 }
54
55 /**
56 * Adds the specified source to the bundle, which can either be a `MagicString` object directly,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected