# What changed in esbuild-plugin-replace

> 6 changes in esbuild-plugin-replace 2 from its official release notes, upgrade guides and advisories: 2 breaking. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/esbuild-plugin-replace/

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

## esbuild-plugin-replace 2

### Breaking changes

- The build output format changed to ESM/CJS. (2.0.0) — [release notes](https://github.com/naecoo/esbuild-plugin-replace/releases/tag/v2.0.0)
- The minimum supported Node.js version is now 18. (2.0.0) — [release notes](https://github.com/naecoo/esbuild-plugin-replace/releases/tag/v2.0.0)

### Tooling

- The plugin supports the latest esbuild version (0.28.x). (2.0.0) — [release notes](https://github.com/naecoo/esbuild-plugin-replace/releases/tag/v2.0.0)
- TypeScript support was added, with auto-generated type definitions. (2.0.0) — [release notes](https://github.com/naecoo/esbuild-plugin-replace/releases/tag/v2.0.0)

### Fixes and other changes

- The include option now properly takes precedence over exclude. (2.0.0) — [release notes](https://github.com/naecoo/esbuild-plugin-replace/releases/tag/v2.0.0)
- Regex escaping for special characters was fixed. (2.0.0) — [release notes](https://github.com/naecoo/esbuild-plugin-replace/releases/tag/v2.0.0)
