At first, I was like “yes, Rollup is meant to work with ES6” so you are pretty much forced to transpile your code. Which, if you care about the size of your bundles, may add more overhead than you are willing to accept.
Right after, though, I had an epiphany. I realized you don’t actually need ES6 and Babel to use Rollup, do you? Rollup actually just needs to understand your dependency graph, and for that it relies on the new import statement, brought in by ES6. But that is literally it!
All of this may sound obvious to you, but if you are like me and haven’t thought about it, here is how it works:
Boom. Your final bundle(s) will be regular ES5 code!
Why should you care you ask?
I read each and every comment, contribute to the conversation with your thoughts!