3 ms·
Isn't Rollup used mainly for libraries? The big selling point of Webpack is the plugin system to transform and store non-JS files in your bundle, which Rollup d
by 1_player 9y ago
Isn't Rollup used mainly for libraries? The big selling point of Webpack is the plugin system to transform and store non-JS files in your bundle, which Rollup doesn't have, as far as I can tell.
- rich_harris 9y agoRollup has a powerful plugin interface that lets you transform and load files of any kind — see here for a (possibly non-exhaustive) list: https://github.com/rollup/rollup/wiki/Plugins https://github.com/rollup/rollup/wiki/Plugins Historically Rollup has indeed been more widely adopted among library authors (React, Vue, D3, Three.js, Leaflet, Moment, etc), though there's no reason it can't be used for apps — lots of us are doing just that.
- dmitriid 9y ago> JS module loader with tree shaking and async loader that works out of the box and yet > Rollup has a powerful plugin interface that lets you transform and load files of any kind — see here for a (possibly non-exhaustive) list So yes, it is primarily aimed at libraries, and "out of the box" flies out of the window when you move to apps.
- rich_harris 9y agoI don't follow your logic. What are you saying?