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

Method append

src/Bundle.ts:125–132  ·  view source on GitHub ↗
(str: string, options?: BundleOptions)

Source from the content-addressed store, hash-verified

123 }
124
125 append(str: string, options?: BundleOptions): this {
126 this.addSource({
127 content: new MagicString(str),
128 separator: (options && options.separator) || '',
129 })
130
131 return this
132 }
133
134 clone(): this {
135 const bundle = new Bundle({

Callers 15

eslint.config.jsFile · 0.45
append.test.tsFile · 0.45
misc.test.tsFile · 0.45
indent.test.tsFile · 0.45
buildFunction · 0.45
trim.test.tsFile · 0.45
clone.test.tsFile · 0.45
append.test.tsFile · 0.45
length.test.tsFile · 0.45
indent.test.tsFile · 0.45

Calls 1

addSourceMethod · 0.95

Tested by 1

buildFunction · 0.36