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

Method constructor

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

Source from the content-addressed store, hash-verified

71 declare indentExclusionRanges: ExclusionRange | ExclusionRange[] | undefined
72
73 constructor(options: BundleOptions = {}) {
74 this.intro = options.intro || ''
75 this.separator = options.separator !== undefined ? options.separator : '\n'
76 this.sources = []
77 this.uniqueSources = []
78 this.uniqueSourceIndexByFilename = new Map()
79 }
80
81 /**
82 * 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