Thanks for the review :)
So, about rollup. Of course, I know that rollup without plugins won’t add anything to your code. And I wrote that the only case in whose I approve to use rollup — it’s when you want to build your library into a single file to be included as <script>
. I don’t see any wrong assumptions there but sorry if it was not so understandable.
About ES6 imports/exports. You should understand that JavaScript is not only frontend when Webpack and Babel are almost always in project. It’s also Node.js that doesn’t support imports/exports. Even if we’ll have support in future, we also have these:
And there are no way to use your library in Node v4 without babel. How many developers use babel on backend?..
Certainly, ES6 imports/exports give us some optimizations. But we’re talking about maximum compability and minimum size. And ES6 is not an ally. Not yet.