# What changed in unplugin-auto-import

> 8 changes in unplugin-auto-import 20 to 21 from its official release notes, upgrade guides and advisories: 2 breaking, 2 new APIs and options. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/unplugin-auto-import/

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

## unplugin-auto-import 21

### Breaking changes

- The package is now ESM-only, so developers must use it as an ESM package. (21.0.0) — [release notes](https://github.com/unplugin/unplugin-auto-import/releases/tag/v21.0.0)
- Support for Node.js versions below 20.19.0 is dropped. (21.0.0) — [release notes](https://github.com/unplugin/unplugin-auto-import/releases/tag/v21.0.0)

### Performance

- Picomatch matchers are precompiled once per context, improving performance. (21.1.0) — [release notes](https://github.com/unplugin/unplugin-auto-import/releases/tag/v21.1.0)

## unplugin-auto-import 20

### New APIs and options

- An option was added to preserve file extensions for .ts and .tsx files. (20.3.0) — [release notes](https://github.com/unplugin/unplugin-auto-import/releases/tag/v20.3.0)
- A React DOM preset was added for configuring auto-imports. (20.3.0) — [release notes](https://github.com/unplugin/unplugin-auto-import/releases/tag/v20.3.0)

### Behavior and default changes

- The React preset was updated, potentially changing the auto-imports it provides. (20.3.0) — [release notes](https://github.com/unplugin/unplugin-auto-import/releases/tag/v20.3.0)
- The @solidjs/router preset was updated, potentially changing the auto-imports it provides. (20.3.0) — [release notes](https://github.com/unplugin/unplugin-auto-import/releases/tag/v20.3.0)

### Fixes and other changes

- Types for @antfu/utils are now resolved in the generated dts output. (20.3.0) — [release notes](https://github.com/unplugin/unplugin-auto-import/releases/tag/v20.3.0)
