Guide143.7K views2,997 votes0 replies4,393 following
Build a Tree‑Shakable Rollup Library with Preserved ES Module Structure
Configure Rollup with format es and preserveModules true to emit a directory of ES files that mirrors your source, enabling downstream tree‑shaking without bundling the whole library.