diff --git a/.changeset/clever-nails-pump.md b/.changeset/clever-nails-pump.md new file mode 100644 index 000000000000..e363c78f5524 --- /dev/null +++ b/.changeset/clever-nails-pump.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fixes use of @fontsource packages diff --git a/packages/astro/src/core/create-vite.ts b/packages/astro/src/core/create-vite.ts index 0855112ea600..7b3a8070f72b 100644 --- a/packages/astro/src/core/create-vite.ts +++ b/packages/astro/src/core/create-vite.ts @@ -34,6 +34,8 @@ const ALWAYS_NOEXTERNAL = new Set([ // Handle recommended nanostores. Only @nanostores/preact is required from our testing! // Full explanation and related bug report: https://github.com/withastro/astro/pull/3667 '@nanostores/preact', + // fontsource packages are CSS that need to be processed + '@fontsource/*', ]); function getSsrNoExternalDeps(projectRoot: URL): string[] {