"매 ESM-first 의 module bundler 의 library-grade output 의 specialized.". Rich Harris 의 2015 의 의 originated, 매 tree-shaking 의 pioneer — 매 2026 의 Rollup 4.x 의 매 SWC/Oxc-powered, library 의 publishing (NPM packages, SDKs) 의 의 default choice 이며, Vite 의 production build 의 underlying engine.
매 핵심
매 정의
ESM-native bundler — import/export 의 first-class.
Tree-shaking 의 pioneer (2015) — dead code elimination via static analysis.
언제: NPM library publishing, multi-format output, clean ESM bundles, Vite production tuning.
언제 X: large application bundling (Vite/webpack), HMR-heavy dev (Vite), Node.js server (no bundling needed in 2026 ESM).
❌ 안티패턴
Bundling peer deps: react/react-dom 의 bundle 의 included — external 의 declare 의 필요.
CJS-only output 의 ESM-only consumer: 2026 의 ESM-first ecosystem — dual ESM+CJS output 의 ship.
Source map 의 omission: production debugging 의 impossible — sourcemap: true 의 default.
Plugin order 의 ignorance: nodeResolve before commonjs before typescript — order matters.
Vite app 의 직접 의 Rollup config: Vite 의 abstracts — vite.config.ts 의 build.rollupOptions 의 사용.
🧪 검증 / 중복
Verified (rollupjs.org, Rollup 4.x docs 2026, Vite documentation).