Implementing build step with Microbundle
Firstly, we're going to keep this simple and stupid by implementing the build step with a very handy tool named Microbundle, which abstracts away all the complexity of Babel, TypeScript and Rollup under one simple
We can begin by setting
sideEffects: false in
package.json to ensure our library is marked as tree-shakable.
Then let's set up Microbundle. Its setup is pretty straightforward.