# What changed in unplugin-fonts

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

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

## unplugin-fonts 2

### Breaking changes

- The CommonJS export was dropped; developers using it need to migrate to the supported exports. (2.0.0) — [release notes](https://github.com/stafyniaksacha/unplugin-fonts/releases/tag/v2.0.0)
- The Fontsource variable standard and stylesheet import path were updated. (2.0.0) — [release notes](https://github.com/stafyniaksacha/unplugin-fonts/releases/tag/v2.0.0)

### New APIs and options

- Custom font weights can now be passed as a range. (2.0.0) — [release notes](https://github.com/stafyniaksacha/unplugin-fonts/releases/tag/v2.0.0)
- An option to inline @font-face rules was added to improve LCP. (2.0.0) — [release notes](https://github.com/stafyniaksacha/unplugin-fonts/releases/tag/v2.0.0)

### Behavior and default changes

- Font fallback metrics were added to reduce layout shift. (2.0.0) — [release notes](https://github.com/stafyniaksacha/unplugin-fonts/releases/tag/v2.0.0)

### Tooling

- A bun loader was added, allowing unplugin-fonts to be used with bun. (2.0.0) — [release notes](https://github.com/stafyniaksacha/unplugin-fonts/releases/tag/v2.0.0)
- A rolldown loader was added, allowing unplugin-fonts to be used with rolldown. (2.0.0) — [release notes](https://github.com/stafyniaksacha/unplugin-fonts/releases/tag/v2.0.0)
- An rspack loader was added, allowing unplugin-fonts to be used with rspack. (2.0.0) — [release notes](https://github.com/stafyniaksacha/unplugin-fonts/releases/tag/v2.0.0)
- Vite 8 is supported. (2.0.0) — [release notes](https://github.com/stafyniaksacha/unplugin-fonts/releases/tag/v2.0.0)
