Skip to content

Commit

Permalink
Add Bun
Browse files Browse the repository at this point in the history
  • Loading branch information
steelywing committed Apr 11, 2024
1 parent 22f1961 commit 2932108
Showing 1 changed file with 38 additions and 18 deletions.
56 changes: 38 additions & 18 deletions docs/Programming/JavaScript/Bundler.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,65 @@

## WebPack

[WebPack](https://webpack.js.org/)

- For JS, CSS, HTML
- Popular
- Slow
- Complex configuration
- Written in JavaScript

## Parcel

- For JS, CSS, HTML
- Zero configuration
- Slow
- Written in JavaScript

## Parcel 2

- Built on [SWC](https://swc.rs/) (Rust based)
- For JS, CSS, HTML
- Zero configuration
- Not stable
- Written in JavaScript

## Rollup

[Rollup](https://rollupjs.org/)

- For JS
- Plugin for JSX
- Faster
- Faster than WebPack
- Support `import` ES6, CommonJS, ...
- Support output format: AMD, CommonJS, ES, IIFE, UMD, SystemJS
- Written in JavaScript

## ESBuild

[ESBuild](https://esbuild.github.io/)

- For JS, JSX
- Extremely fast
- Written in Go

## Bun

[Bun](https://bun.sh/)

- For TS, JS, JSX
- Extremely fast
- Written in Zig
- Use JavaScriptCore (WebKit) as JS engine

## Vite

- For JS, CSS, HTML
[Vite](https://vitejs.dev/)

- For TS, JS, CSS, HTML
- Faster
- Vite use [Rollup](#rollup) for `vite build`
- Vite use [ESBuild](#esbuild) for `vite dev`

## Parcel

[Parcel](https://parceljs.org/)

- For JS, CSS, HTML
- Zero configuration
- Slow
- Written in JavaScript

## Parcel 2

[Parcel](https://parceljs.org/)

- Built on [SWC](https://swc.rs/) (Rust based)
- For JS, CSS, HTML
- Zero configuration
- Not stable
- Written in JavaScript

0 comments on commit 2932108

Please sign in to comment.