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

magic-string TS

Modify strings, generate sourcemaps

version 1.2.2 · entry dist/index.mjs · #string#string manipulation#sourcemap#templating#transpilation
weighed at
brotli q11 · rolldown + minify
wire weight · brotli
6.00 kB
verdict small
brotli is 27% of minified unpacks 3.7× on the wire
minified
22.51 kB
saved on the wire
16.51 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.5.5
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.