We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f82c91 commit 29cfed5Copy full SHA for 29cfed5
1 file changed
packages/plugin-vite/src/plugins/dev_server.ts
@@ -29,9 +29,11 @@ export function devServer(): Plugin[] {
29
// Don't cache in dev
30
url.searchParams.delete(ASSET_CACHE_BUST_KEY);
31
32
- // Check if it's a vite url
+ // Check if it's a vite url or a node_modules asset (e.g. fonts
33
+ // referenced from CSS in npm packages)
34
if (
35
IGNORE_URLS.test(url.pathname) ||
36
+ url.pathname.startsWith("/node_modules/") ||
37
server.environments.client.moduleGraph.urlToModuleMap.has(
38
url.pathname,
39
) ||
0 commit comments