Skip to content

fix(superdoc): resolve @superdoc/font-system in the dev server#3624

Merged
caio-pizzol merged 1 commit into
mainfrom
caio-pizzol/dev-server-font-system-alias
Jun 3, 2026
Merged

fix(superdoc): resolve @superdoc/font-system in the dev server#3624
caio-pizzol merged 1 commit into
mainfrom
caio-pizzol/dev-server-font-system-alias

Conversation

@caio-pizzol
Copy link
Copy Markdown
Contributor

pnpm dev couldn't boot the playground: Vite failed to resolve @superdoc/font-system, so the editor never mounted. That package lives under shared/, which the workspace alias helper (vite.sourceResolve) only maps for packages/**. The font-system imports were added recently and only the Vitest and CDN configs aliased it; the dev server (command === 'serve') was missed.

  • Extends the existing font-system source alias to also apply when isDev, so the dev server resolves it from shared/font-system/src.
  • Left out of getAliases and gated on isDev, so the vite-plugin-dts build is unaffected (an alias there emits unresolvable source paths).

Verified: pnpm dev boots on :9094, the editor mounts, and the SD-3330 fixture renders. This was a hard Vite resolution failure before the alias.

@caio-pizzol caio-pizzol requested a review from a team as a code owner June 3, 2026 16:40
@caio-pizzol caio-pizzol merged commit 2294380 into main Jun 3, 2026
27 checks passed
@caio-pizzol caio-pizzol deleted the caio-pizzol/dev-server-font-system-alias branch June 3, 2026 16:41
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants