As mroth mentioned, right now the JS build system is very difficult to reason about as we have a few overlapping tools with complex rulesets. We should clean this up.
For example, it's possible (and even likely) that we may not need to use both rollup and webpack, since they have overlapping functionality.