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

Method clone

src/Bundle.ts:117–132  ·  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 separator: source.separator,
128 })
129 })
130
131 return bundle as this
132 }
133
134 generateDecodedMap(options: SourceMapOptions = {}): DecodedSourceMapOrMissingContent {
135 const names = []

Callers

nothing calls this directly

Calls 1

addSourceMethod · 0.95

Tested by

no test coverage detected