| What it is | Use Node-style require() in the browser by bundling your dependencies | A bundler for javascript and friends | An extremely fast bundler for the web | ES module bundler for JavaScript libraries and apps, with tree shaking |
| Features | - bundles CommonJS require() calls into one browser script
- resolves npm packages with Node's module lookup
- transforms and plugins
- standalone UMD bundles
- source maps with --debug
- browser shims for Node core modules
| - ES modules, CommonJS and AMD
- code splitting and lazy-loaded chunks
- loaders
- plugin system
- dependencies resolved at compile time
| - extreme speed without a cache
- JavaScript, CSS, TypeScript and JSX built in
- CLI, JavaScript and Go APIs
- bundles ESM and CommonJS modules
- bundles CSS including CSS modules
- tree shaking, minification and source maps
- local server and watch mode
- plugin API with resolve and load callbacks
- All 9 features
| - Bundles ES modules into one file for a library or app
- Tree shaking removes code that isn't used
- Outputs ES modules, CommonJS, AMD, UMD and IIFE
- Command line with a config file, or a JavaScript API
- Official plugins for CommonJS, node resolution, TypeScript, Babel, aliases and Terser
|