npm / unplugin-fonts
unplugin-fonts
What changed in unplugin-fonts 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
2 breaking2 new APIs and options1 behavior and defaults4 tooling
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initunplugin-fonts 29 changes
Breaking changes 2
The CommonJS export was dropped; developers using it need to migrate to the supported exports.
The Fontsource variable standard and stylesheet import path were updated.
New APIs and options 2
Custom font weights can now be passed as a range.
An option to inline @font-face rules was added to improve LCP.
Behavior and default changes 1
Font fallback metrics were added to reduce layout shift.
Tooling 4
A bun loader was added, allowing unplugin-fonts to be used with bun.
A rolldown loader was added, allowing unplugin-fonts to be used with rolldown.
An rspack loader was added, allowing unplugin-fonts to be used with rspack.
Vite 8 is supported.