# What changed in unplugin

> 15 changes in unplugin 2 to 3 from its official release notes, upgrade guides and advisories: 4 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-10-25. HTML: https://unstale.sh/npm/unplugin/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## unplugin 3

### Breaking changes

- String filters are no longer allowed for resolveId. (3.4.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v3.4.0)

### New APIs and options

- Adds an adapter for using unplugin with Rsbuild. (3.3.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v3.3.0)

### Behavior and default changes

- Bun sanitizes plugin names when creating namespaces. (3.2.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v3.2.0)

### Fixes and other changes

- Missing optional peer dependencies were added. (3.4.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v3.4.0)
- Optional peer types are declared. (3.2.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v3.2.0)
- Bun now consumes plugin.bun. (3.2.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v3.2.0)
- Bun supports per-plugin loader resolution and respects the loader returned from the load hook. (3.2.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v3.2.0)

## unplugin 2

### Breaking changes

- The esbuild `meta.build` API is dropped. (2.0.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v2.0.0)
- Node 16 support is dropped, so developers need a newer Node.js version. (2.0.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v2.0.0)
- Webpack 4 support is dropped. (2.0.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v2.0.0)

### Tooling

- Vite 6 is supported. (2.0.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v2.0.0)

### Fixes and other changes

- Compatibility with esbuild versions before 0.14.3 is fixed. (2.0.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v2.0.0)
- Serialized communication between JavaScript and Rust is fixed. (2.0.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v2.0.0)
- Fixes the issue where `Plugin.__vfs` is undefined in rspack. (2.0.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v2.0.0)
- Webpack is imported lazily. (2.0.0) — [release notes](https://github.com/unjs/unplugin/releases/tag/v2.0.0)
