microdraw icon indicating copy to clipboard operation
microdraw copied to clipboard

Using Rollup for bundling?

Open xgui3783 opened this issue 6 years ago • 2 comments

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.

xgui3783 avatar Jun 19 '19 11:06 xgui3783

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?

r03ert0 avatar Aug 24 '19 12:08 r03ert0

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.

xgui3783 avatar Aug 24 '19 13:08 xgui3783