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

Method clone

src/Bundle.ts:116–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

addSourceMethod · 0.95

Tested by

no test coverage detected