▍ file no. 001 / npm ▍weigh-in
preact TS
Fast 3kb React-compatible Virtual DOM library.
version 10.29.7 · entry
dist/preact.mjs · subpaths 12 · #preact#react#ui#user interface#virtual dom#vdom▍ weighed at
brotli q11 · rolldown + minify
wire weight · brotli
13.18 kB
verdict small
brotli is 34% of minified unpacks 2.9× on the wire
- minified
- 38.65 kB
- saved on the wire
- 25.47 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@>=5
▍ the roast
AI · freshly written
▍ incoming dispatch · priority: hot
the wire is humming…
- . main entry100%4.26 kB br· 11.34 kB min
- ./
compat87%3.69 kB br· 10.04 kB min - ./
debug76%3.25 kB br· 8.95 kB min - ./
hooks31%1.34 kB br· 3.47 kB min - ./
jsx-runtime20%864 B br· 1.73 kB min - ./
jsx-dev-runtime20%864 B br· 1.73 kB min - ./
test-utils9%380 B br· 892 B min - ./
compat/test-utils9%380 B br· 892 B min - ./
devtools4%191 B br· 306 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.