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

Method clone

src/Bundle.ts:132–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130 }
131
132 clone(): this {
133 const bundle = new Bundle({
134 intro: this.intro,
135 separator: this.separator,
136 })
137
138 this.sources.forEach((source) => {
139 bundle.addSource({
140 filename: source.filename,
141 content: source.content.clone(),
142 ignoreList: source.ignoreList,
143 indentExclusionRanges: source.indentExclusionRanges,
144 separator: source.separator,
145 })
146 })
147
148 return bundle as this
149 }
150
151 generateDecodedMap(options: BundleSourceMapOptions = {}): DecodedSourceMapOrMissingContent {
152 const names = []

Callers

nothing calls this directly

Calls 1

addSourceMethod · 0.95

Tested by

no test coverage detected