Add fontsource packages to always be noExternal (#4073)
* Add fontsource packages to always be noExternal * Adds a changesetp
This commit is contained in:
parent
6fa6369678
commit
13b4f8ad88
2 changed files with 7 additions and 0 deletions
5
.changeset/clever-nails-pump.md
Normal file
5
.changeset/clever-nails-pump.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fixes use of @fontsource packages
|
|
@ -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[] {
|
||||
|
|
Loading…
Reference in a new issue