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

Method insertLeft

benchmark/data-min.js:368–377  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

366 );
367 }
368 insertLeft(t, e) {
369 return (
370 c.insertLeft ||
371 (console.warn(
372 'magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead',
373 ),
374 (c.insertLeft = !0)),
375 this.appendLeft(t, e)
376 );
377 }
378 insertRight(t, e) {
379 return (
380 c.insertRight ||

Callers

nothing calls this directly

Calls 1

appendLeftMethod · 0.95

Tested by

no test coverage detected