mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#376
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/192
Author: @yunus25jmi1
Created: 2/28/2026
Status: ❌ Closed
Base:
main← Head:fix/issue-190-space-grotesk-font-export📝 Commits (1)
f57b484fix: export Space_Grotesk from next/font/google (#190)📊 Changes
2 files changed (+12 additions, -1 deletions)
View changed files
📝
packages/vinext/src/shims/font-google.ts(+1 -0)📝
tests/font-google.test.ts(+11 -1)📄 Description
Summary
Fixes #190 - Adds named export for
Space_Groteskfont to resolve ESM static import error.Problem
Users importing
Space_Groteskfromnext/font/googleencounter:Root Cause
This is Pattern #2 (ESM/CJS Interop) from maintainer pattern classification. The dynamic Proxy fallback in
font-google.tsdoesn't satisfy ESM static analysis for commonly-used fonts. Popular fonts likeInterandJetBrains_Monoalready have explicit named exports;Space_Groteskwas missing.Solution
Added explicit named export matching the established pattern:
Changes
packages/vinext/src/shims/font-google.ts: +1 line (Space_Grotesk export)tests/font-google.test.ts: +11 lines (Space_Grotesk test + updated assertion)Testing
✅ Unit tests pass (Space_Grotesk function export verified)
✅ Integration tests pass (className, fontFamily, variable generation)
✅ Lint clean (0 warnings)
✅ Follows existing pattern (identical to 18 other font exports)
Security Audit
Comprehensive security review completed:
Compliance
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.