Question 7 of 10Pro Only
Why is Rollup considered the best choice for bundling JavaScript libraries, and how do you configure it for npm publishing?
Sample answer preview
Rollup, created by Rich Harris, the creator of Svelte, is the reference bundler for JavaScript libraries thanks to its clean bundles and excellent tree shaking. Why Rollup excels for libraries. First, optimal tree shaking. Rollup pioneered tree shaking.
RolluplibraryESMCommonJSUMDtree shaking