unstale

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 init

@unstale/cli on npm

unplugin-fonts 29 changes

Breaking changes 2

  • The CommonJS export was dropped; developers using it need to migrate to the supported exports.

    2.0.0release notes

  • The Fontsource variable standard and stylesheet import path were updated.

    2.0.0release notes

New APIs and options 2

  • Custom font weights can now be passed as a range.

    2.0.0release notes

  • An option to inline @font-face rules was added to improve LCP.

    2.0.0release notes

Behavior and default changes 1

  • Font fallback metrics were added to reduce layout shift.

    2.0.0release notes

Tooling 4

  • A bun loader was added, allowing unplugin-fonts to be used with bun.

    2.0.0release notes

  • A rolldown loader was added, allowing unplugin-fonts to be used with rolldown.

    2.0.0release notes

  • An rspack loader was added, allowing unplugin-fonts to be used with rspack.

    2.0.0release notes

  • Vite 8 is supported.

    2.0.0release notes