Is a bundler such as rollup needed when creating a react component library? I.e. if all I have is a simple project with Buttons/Checkboxes etc. as typescript files which are then published on npm, doesn’t running tsc with a proper config turn all of it into a dist bundle?
What is the advantage of rollup then? I read that tree shaking might be it, but if the js files live in their own directories, doesn’t the below import a single component, too?
Import { Button } from ‘myLibrary/buttons’