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
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Thanks so much for taking a look @sun0day! That's what I see as well. Unfortunately it's not the expected behavior. The font files are in the manifest, but the manifest is not saying which files use those fonts. We need to know which pages use the fonts so that we know which pages need to preload them, but that information for some reason is missing.
I would expect the output to look something more like this:
Describe the bug
You can visit https://kit.svelte.dev/, which is supposed to render something like:
You can see in the network tab that these are referenced from a CSS file in our project:
And you can open up that file to see the references:
But these files are orphaned in the Vite manifest and so SvelteKit doesn't know which pages it needs to preload them for.
Here's the import chain:
#11943 looks a bit similar, but was talking about workers, so I wasn't exactly sure if it was the same
Reproduction
https://github.com/sveltejs/kit/tree/master/sites/kit.svelte.dev
Steps to reproduce
git clone [email protected]:sveltejs/kit.git
Edit
packages/kit/src/exports/vite/index.js
to comment out these two lines:Now run:
Open
.svelte-kit/output/client/vite-manifest.json
. See that the.woff2
files have no references to them.System Info
npmPackages: vite: ^4.4.9 => 4.4.9
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: