rspeedy-bundle-sizelisted
Install: claude install-skill sehyun0518/agent
> **📚 Lynx 레퍼런스.** rspeedy/Lynx 앱의 번들 크기를 분석하고 줄입니다.
> `vanilla-lynx`가 번들 작업을 이 스킬로 라우팅합니다. 규칙 팩이 아니라 조회 자료라
> `reactlynx-best-practices`·`vanilla-lynx`와 **함께** 씁니다.
<!-- vendored:begin -->
# Rspeedy Bundle Optimization
A measure-first workflow for shrinking the bundle of a rspeedy/Lynx app. The central discipline: **don't guess where the bytes are — measure, then attack the biggest lever first.** Most "optimize the bundle" requests fail by starting with micro-tree-shaking when the real weight is media assets or main-thread leakage.
## Verify against source — do not guess
The rspeedy / ReactLynx build behaves in non-obvious ways, and guessing is how you end up confidently wrong. **When you're unsure how the build, the layers, the ES targets, or stats/rsdoctor output actually behave, read the source — don't infer from naming or memory.** The whole toolchain is open source; clone or browse it and grep for the relevant plugin/util:
The toolchain layers as **Rspack → Rsbuild → Rspeedy** (each builds on the one before), so a behavior may live in any layer — follow it down:
- **rspeedy + ReactLynx plugins** (the `lynx-stack` monorepo): https://github.com/lynx-family/lynx-stack
- **rsbuild** (the Rsbuild layer rspeedy is built on): https://github.com/web-infra-dev/rsbuild
- **rspack** (the underlying bundler; stats/module types, layers, `output.environment`): https://github.com/web-infra-dev/rspack
- **rsdoctor**: https://github.com/web-infra-dev/rsdoctor
(Exact file paths