unplugin/docs/index.md
Alistair Smith f674d582bc
feat: support bun plugin (#539)
* loose start for bun plugin

* implement bun

* support emitFile()

* fix Bun cases in integration test

* add bun to other test files

* remove bun-types-no-globals from github

* restore bun-types-no-globals from npm @^1.2

* bun does not yet support .onEnd, so for now we shouldn't fake it with brittle workarounds

* add Bun in the documentation

* some missing bun references in docs

* support multiple plugins

* use Bun namespace instead of importing module that won't necessarily exist

* Bun is a cute pink color!

* fix the transform hook

* fix for virtual modules

* tidy up

* setup bun in ci

* revert unplugin require path

* ignore bun in test-out folders

* update tests

* support onEnd

* remove

* implement guessLoader(), bun also now supports onEnd()

* don't eat errors/warnings

* we dont need to outdir for bun in this test

* bun writebundle test

* Update to bun@1.2.22 (supports onEnd and onResolve)

* use onStart()

* define onStart() in mocks

* onStart

* ci: run vitest in Bun so we can run bun's tests

* Bun error message if building outside of Bun

* skip bun specific tests when not running in bun

* refactor

* allow only

* ci: fix typecheck

---------

Co-authored-by: Kevin Deng <sxzz@sxzz.moe>
2025-11-03 18:30:00 +08:00

1.8 KiB

layout sidebar hero features
home false
name text tagline image actions
Unplugin The Unified<br>Plugin System Supports Vite, Rollup, webpack, esbuild, Bun, and every framework built on top of them.
light dark alt
/logo_light.svg /logo_dark.svg Unplugin
theme text link
brand Getting Started /guide/
theme text link
alt Showcase /showcase/
theme text link
alt View on GitHub https://github.com/unjs/unplugin
title details link icon
Vite Next Generation Frontend Tooling. https://vite.dev/
src
/features/vitejs.svg
title details link icon
Rollup Next Generation ES module bundler. https://rollupjs.org/
src
/features/rollup.svg
title details link icon
webpack A static module bundler for modern JavaScript applications. https://webpack.js.org/
src
/features/webpack.svg
title details link icon
esbuild An extremely fast bundler for the web. https://esbuild.github.io/
src
/features/esbuild.svg
title details link icon
Rspack A fast Rust-based web bundler. https://www.rspack.dev/
src
/features/rspack.png
title details link icon
Farm Extremely fast web build tool written in Rust https://www.farmfe.org/
src
/features/farm.png
title details link icon
Rolldown Fast Rust bundler for JavaScript with Rollup-compatible API https://rolldown.rs/
src
/features/rolldown.svg
title details link icon
Bun All-in-one JavaScript runtime & toolkit https://bun.com/
src
/features/bun.svg
title details link icon
More More supported bundlers... /guide/#supported-hooks
src
/features/more.svg