[GH-ISSUE #244] Vite can’t tree‑shake unused next/font/google exports because generated module has top‑level function calls #63

Closed
opened 2026-05-06 12:36:55 +02:00 by BreizhHardware · 0 comments

Originally created by @hyoban on GitHub (Mar 4, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/244

Sorry. This was a mistake in #57.

var init_font_google_generated = __esmMin((() => {
	init_font_google_base();
	createFontLoader("ABeeZee");
	createFontLoader("Abel");
	createFontLoader("Abhaya Libre");
	createFontLoader("Aboreto");
	createFontLoader("Abril Fatface");
	createFontLoader("Abyssinica SIL");
	createFontLoader("Aclonica");
	// ....
}));
Originally created by @hyoban on GitHub (Mar 4, 2026). Original GitHub issue: https://github.com/cloudflare/vinext/issues/244 Sorry. This was a mistake in #57. ```js var init_font_google_generated = __esmMin((() => { init_font_google_base(); createFontLoader("ABeeZee"); createFontLoader("Abel"); createFontLoader("Abhaya Libre"); createFontLoader("Aboreto"); createFontLoader("Abril Fatface"); createFontLoader("Abyssinica SIL"); createFontLoader("Aclonica"); // .... })); ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#63
No description provided.