▍ file no. 001 / npm ▍weigh-in
preact TS
Fast 4kb React-compatible Virtual DOM library.
version 11.0.2 · entry
dist/preact.mjs · subpaths 12 · #preact#react#ui#user interface#virtual dom#vdom▍ weighed at
brotli q11 · rolldown + minify
wire weight · brotli
13.53 kB
verdict small
brotli is 35% of minified unpacks 2.9× on the wire
- minified
- 39.18 kB
- saved on the wire
- 25.65 kB
▍field notes
- side effects
- not declared
- module formats
- ESM + CJS
- exports map
- present
- types
- bundled (own .d.ts)
- peer deps
- preact-render-to-string@>=6.7.0
▍ the roast
AI · freshly written
▍ incoming dispatch · priority: hot
the wire is humming…
- . main entry100%4.42 kB br· 11.69 kB min
- ./
debug81%3.58 kB br· 9.79 kB min - ./
compat79%3.51 kB br· 9.50 kB min - ./
hooks31%1.39 kB br· 3.50 kB min - ./
jsx-runtime17%762 B br· 1.53 kB min - ./
jsx-dev-runtime17%762 B br· 1.53 kB min - ./
test-utils9%385 B br· 914 B min - ./
compat/test-utils9%385 B br· 914 B min - ./
devtools5%215 B br· 305 B min - ./
compat/server4%167 B br· 523 B min - ./
compat/client4%161 B br· 278 B min - ./
compat/scheduler3%142 B br· 296 B min - ./
compat/jsx-runtime1%51 B br· 54 B min
▍dependencies
deps-free certified standalone
transitive cost
zero.
preact ships on its own — no transitive weight, no shared deps to dedupe, no peer pressure. a rare bird.
▍ 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.