Introduction to module bundling
The build process for a library has many similarities with applications. We want to take a single entry point, which contains our components, and bundle them together into an output file. When building applications, the target environment is a web browser. Webpack is a popular module bundler that helps bundle a wide variety of assets into an output that browsers can understand.
For libraries the target environment is often another development environment, not a browser. This changes the type of assets we can produce and the tools required to build them. In this course we will be using RollupJS as our module bundler.
The module system that Node.js has used historically
Universal Module Definition (UMD)
Allows many different module formats to interact with your library
Can work in server and browser environments
Unable to tree-shake