c372faf7Workaround 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.
Shota FUJI
authored at
Shota FUJI
comitted at
562838aaComment on Vite's watchChange bug
Vite's docs does not state `watchChange` so it's better to avoid the
hook entirely though.
Shota FUJI
authored at
Shota FUJI
comitted at
2c889fe7Fix Gleam compilation runs twice for single file change
I assumed Rollup/Vite's `addWatchFile` do deduplication, like `Set`,
but it turned out they don't.
Shota FUJI
authored at
Shota FUJI
comitted at
bb206486Fix package and type definition can't be imported
The `types` field is for projects using `moduleResolution` other than
`NodeNext`.
Shota FUJI
authored at
Shota FUJI
comitted at
656a1bf7Change tsconfig.build.json to JSONC
To reduce the number of top-level files.
`.jsonc` file extension is actually most accurate for tsconfig file: it
allows comments regardless of a file extension.
Shota FUJI
authored at
Shota FUJI
comitted at
fa8e4294Change dprint config file from JSON to JSONC
To reduce the number of top-level files. JSONC can include comment
header.
Shota FUJI
authored at
Shota FUJI
comitted at
2f08880bInitial commit
I want each commits to be atomic and perfect. That's why this commit is
so big...
Shota FUJI
authored at
Shota FUJI
comitted at