You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Astro 3 with fontsource (version 4), fonts are not included in the bundled css.
The component does not seem to be recognised as an Astro component:
It does seem like the component is just ignored by Astro.
There is also a weird behaviour with a []unfonts.css that is trying to be included as a style tag (see below). When reading the documentation I was under the impression that when using fontsource, no font-face tags or other CSS would be bundled...
... however, i see the same issue when running your examples/astro-project:
To me, this seems like 3 related issues:
no link tags are included when using fontsource with your Astro setup
a non-existing css file is attempted to be included when using fontsource and your Astro setup
project does not support Astro 3 (alternatively, documentation does not state that project does not support Astro 3)
Reproduction steps
for issues 1 and 2:
1. run the example Astro project
2. inspect in the browser
3. you will see no link tag to the font file
4. you sill see a style tag with [missing symbol]unfonts.css
5. go to network tab
6. see failed request to same unfonts.css
for issue 3:
1. update example Astro project to Astro 3. Alternatively, try to use this package in an Astro 3 project
2. try to build project and Astro / Vite / typescript should complain about the missing component
2. observe fonts not being applied or loaded
3. verify that the bundled css includes no font-face tags
4. further verify that no requests are tried for the used font
4.
Relevant log output
No response
What browsers are you seeing the problem on?
No response
What is your operating system?
No response
The text was updated successfully, but these errors were encountered:
Demo URL
No response
What happened?
When using Astro 3 with fontsource (version 4), fonts are not included in the bundled css.
The component does not seem to be recognised as an Astro component:
It does seem like the component is just ignored by Astro.
There is also a weird behaviour with a []unfonts.css that is trying to be included as a style tag (see below). When reading the documentation I was under the impression that when using fontsource, no font-face tags or other CSS would be bundled...
... however, i see the same issue when running your
examples/astro
-project:To me, this seems like 3 related issues:
Reproduction steps
Relevant log output
No response
What browsers are you seeing the problem on?
No response
What is your operating system?
No response
The text was updated successfully, but these errors were encountered: