rollup-plugin-gleam

Vite compatible Rollup plugin for Gleam language

Workaround for Vite crashes on compile error Vite does not implement `watchChanges` hook correctly. It crashes when an error is thrown during the hook instead of displaying an error message like other hooks. Due to this, everytime Gleam compiler exits with non-zero code, Vite server shuts down. That makes this plugin almost unusable during development. I could file a bug report on Vite side, but considering the speed of merge process and supporting older versions, I decided to ditch the `watchChanges` hook.

Changes

4 changed files (+44/-59)