Skip to content

fix: hot reload on demo#87

Merged
giuliana-gladeye merged 1 commit into
mainfrom
fix/MIC-1-hot-reloading
May 25, 2026
Merged

fix: hot reload on demo#87
giuliana-gladeye merged 1 commit into
mainfrom
fix/MIC-1-hot-reloading

Conversation

@giuliana-gladeye
Copy link
Copy Markdown
Collaborator

This branch includes fix for linear ticket "Equality's hot-reloading is broken"

Issue:
After upgrading to Astro 6 (Vite 7), editing UI components or their styles no longer hot-reloaded, meaning changes only appeared after a manual pnpm build. Vite 7's per-environment resolution stopped applying resolve.alias in the SSR environment, so server-rendered docs components loaded the built dist/ output instead of ../ui/src.

Fix:
Replaced the @eqtylab/equality alias (plus redundant ssr.noExternal) in packages/demo/astro.config.mjs with two small Vite plugins: a resolveId hook that pins the package to its source in every environment (incl. SSR), and a watcher plugin that adds the out of root ../ui/src to Vite's dev watcher. Edits to UI components/styles now trigger an auto-reload in the dev server.

@giuliana-gladeye giuliana-gladeye merged commit 93149f2 into main May 25, 2026
1 check passed
@giuliana-gladeye giuliana-gladeye deleted the fix/MIC-1-hot-reloading branch May 25, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant