Web - Bundler
Table of Contents
About
A bundler is a web build tool that
- from a javascript entry file
- get all dependent files
- performs the build operations configured.
- and outputs only one file: the bundle
They may allow:
- multiple entry points
- an HTML as entry point
- a css file as entry point
but the goal remains the same:
- they takes a lot of file
- and outputs less files (generally one but they may output more than one)
Bundler vs Task Runner
The difference with a task runner is that they work on the file tree (dependency graph) and not on a list of files
task runner can still bundle but only on a collection of file, not based on a dependency tree
List
- Webpack used by React (34000)
- https://esbuild.github.io/ (used by remix built in go)
- parcel (13141)
- Rollup + Terser