brisa-build / brisa

The Web Platform Framework.
https://brisa.build
MIT License
452 stars 12 forks source link

fix: improve multi-save hot-reload time #641

Closed aralroca closed 6 days ago

aralroca commented 6 days ago

Fixes https://github.com/brisa-build/brisa/issues/640

This PR improves the time when saving many times in a row during hot-reload.

Before:

A semaphore flag was waiting for the previous process to finish before starting the new one. This might make sense when we improve it so that instead of recompiling the whole app, it is done only for the specific file. Now, it does not make sense.

Now:

When a new process enters, it kills the previous one.

pkg-pr-new[bot] commented 6 days ago

Open in Stackblitz

brisa-adapter-vercel

``` bun add https://pkg.pr.new/brisa-build/brisa/brisa-adapter-vercel@641 ```

brisa-pandacss

``` bun add https://pkg.pr.new/brisa-build/brisa/brisa-pandacss@641 ```

brisa

``` bun add https://pkg.pr.new/brisa-build/brisa@641 ```

brisa-tailwindcss

``` bun add https://pkg.pr.new/brisa-build/brisa/brisa-tailwindcss@641 ```

www

``` bun add https://pkg.pr.new/brisa-build/brisa/www@641 ```

create-brisa

``` bun add https://pkg.pr.new/brisa-build/brisa/create-brisa@641 ```

commit: c8b2bcc