Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/vite-dev-error-overlay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inlang/paraglide-js": minor
---

Show compilation and config errors in Vite's development overlay, including in newly opened tabs. Once compilation and config loading recover, the plugin requests a page reload to clear the overlay. The dev server keeps serving the last compiled output, as before.
6 changes: 6 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ When things go wrong:
as if there had never been a config. Recreating any config file is picked
up again.

In Vite development mode, compilation and config errors also appear in the
Vite's error overlay, including in tabs opened while an error is pending.
After both compilation and config loading recover, the plugin requests a page
reload to clear the overlay. This reload discards client state and can occur
alongside Vite's normal file updates.

One limitation: esbuild does not support registering additional watch
files, so config changes require an esbuild process restart.

Expand Down
Loading
Loading