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

Method constructor

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

Source from the content-addressed store, hash-verified

46 declare indentExclusionRanges: ExclusionRange | ExclusionRange[] | undefined
47
48 constructor(options: BundleOptions = {}) {
49 this.intro = options.intro || ''
50 this.separator = options.separator !== undefined ? options.separator : '\n'
51 this.sources = []
52 this.uniqueSources = []
53 this.uniqueSourceIndexByFilename = {}
54 }
55
56 /**
57 * 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