brisa-build / brisa

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

fix(hot-reload): fix actions conflicts during hot-reload + change transpilation phase #633

Closed aralroca closed 1 week ago

aralroca commented 1 week ago

Fixes https://github.com/brisa-build/brisa/issues/118 Related https://github.com/brisa-build/brisa/issues/628 (first step) Related https://github.com/brisa-build/brisa/issues/556 (first step) Related https://github.com/brisa-build/brisa/issues/470 (first step)

In this PR I have changed:

Before:

process

Now:

now_process

Future (next PRs, but we have some blocks from new Bun APIs that are coming soon):

The multi-build of the current client pages is as workaround because IIFE was not supported in Bun. We need it to make the pages interactive during HTML streaming. But now Bun has supported IIFE, although it is experimental and there is no documentation yet, but this will probably improve build times considerably.

pkg-pr-new[bot] commented 1 week ago

Open in Stackblitz

brisa-adapter-vercel

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

brisa

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

brisa-tailwindcss

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

brisa-pandacss

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

create-brisa

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

www

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

commit: 9af082c