Using Rollup for bundling?
During the hackathon, I recall @r03ert0 expressed interest in using rollup as a bundler. Compared with webpack, there are certtainly less things that needs to be configured. I had recently had a very positive experience with rollup.
I am bringing this issue up, because while there are advantages of using a bundler such as rollup, there may be significant short falls as well:
Pro:
- using classes and ES-latest syntax
- code splitting
- better maintainability
- easier to write unit tests
- addresses https://github.com/r03ert0/microdraw/issues/149
- easier to implement poly fills (should the need arises)
- edit: may also address https://github.com/r03ert0/microdraw/issues/59
Con:
- one more tool, one more place things can break
- potentially 1 more tool maintainers need to learn to debug (though this could be partially taken care of by npm script)
I have a ~2 x 20 hr flight coming up, and if there are interest, I will be more than happy to produce a prototype.
hello!
sorry for the late answer...
I'm happy to decide on a bundler. Right now we're using extend if I remember well, which is far from ideal (it's simple, though).
I haven't tried rollup, but i have tried webpack (get's complex quickly) and parcel.
Parcel is really nice. Maybe have a look and we discuss again?
Coincidentally, I am just deploying a personal app built with Parcel, and am having a great experience doing it.
We can gradually migrate the files.