bundle/roast
magic-string@1.4.2
← new
▍ file no. 001 / npm ▍weigh-in

magic-string TS

Modify strings, generate sourcemaps

version 1.4.2 · entry dist/index.mjs · #string#string manipulation#sourcemap#templating#transpilation
▍ weighed at
brotli q11 · rolldown + minify
wire weight · brotli
7.58 kB
verdict small
brotli is 26% of minified unpacks 3.8× on the wire
minified
29.04 kB
saved on the wire
21.47 kB
▍field notes
side effects
none (tree-shakeable)
module formats
ESM only
exports map
present
types
bundled (own .d.ts)
peer deps
none
▍ the roast
AI · freshly written
▍ incoming dispatch · priority: hot
the wire is humming…
▍ dependencies
1 direct click to expand · hover for details
· @jridgewell/sourcemap-codec @1.6.0
▍ see also
outbound
▍another case
drop a package

Got a heavier sin to confess? Roast another package — or share this one to make a friend reconsider their dep tree.