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

Method clone

src/Bundle.ts:117–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 }
116
117 clone(): this {
118 const bundle = new Bundle({
119 intro: this.intro,
120 separator: this.separator,
121 })
122
123 this.sources.forEach((source) => {
124 bundle.addSource({
125 filename: source.filename,
126 content: source.content.clone(),
127 ignoreList: source.ignoreList,
128 indentExclusionRanges: source.indentExclusionRanges,
129 separator: source.separator,
130 })
131 })
132
133 return bundle as this
134 }
135
136 generateDecodedMap(options: SourceMapOptions = {}): DecodedSourceMapOrMissingContent {
137 const names = []

Callers

nothing calls this directly

Calls 1

addSourceMethod · 0.95

Tested by

no test coverage detected