--- id: wiki-2026-0508-tree-shaking-번들-크기-최적화 title: Tree Shaking (번들 크기 최적화) category: 10_Wiki/Topics status: duplicate canonical_id: tree-shaking duplicate_of: "[[Tree Shaking]]" aliases: [] source_trust_level: A confidence_score: 0.9 verification_status: redirected tags: [duplicate, bundling, optimization, esm] last_reinforced: 2026-05-10 github_commit: pending --- # Tree Shaking (번들 크기 최적화) > **이 문서는 [[Tree Shaking]] 의 중복본입니다.** Canonical 문서로 redirect. ## 핵심 요약 (specialization) - Tree shaking 매 ESM static analysis 기반 dead-code elimination. - 매 `sideEffects: false` (package.json) 의 bundler 의 aggressive prune 허용. - 매 named import + ESM-only library + 매 minifier (terser/swc) 의 조합 — 매 최대 효과. - Vite/Rollup/esbuild/webpack 5 의 모두 지원 — 매 2026 default. ## 🔗 Graph - 부모: [[Tree Shaking]] (canonical) - Adjacent: [[ESM]] · [[Bundler]] · [[Code Splitting]] ## 🕓 변경 이력 | 날짜 | 변경 | |---|---| | 2026-05-08 | Phase 1 | | 2026-05-10 | 중복 처리 — Tree Shaking canonical 문서로 redirect |