Add fontsource packages to always be noExternal (#4073)

* Add fontsource packages to always be noExternal

* Adds a changesetp
This commit is contained in:
Matthew Phillips 2022-07-27 15:48:21 -04:00 committed by GitHub
parent 6fa6369678
commit 13b4f8ad88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixes use of @fontsource packages

View file

@ -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[] {