Arthur Neuman
Arthur Neuman
Because webview-bun currently blocks the event loop. Async functions are never resolved by the scheduler. You can see my PR here which fixes this issue https://github.com/tr1ckydev/webview-bun/pull/36 If you want to...
Yes, specifically when trying to run Vite build from its JS API. I'll try to set up a minimum repro for you tomorrow morning, but if you know how to...
Minimal Reproduction with Vite observation: ```ts // index.ts import { getText } from './macro' with { type: 'macro' } console.log(await getText()) ``` ```ts // macro.ts import { build } from...
> Hmm, your vite repo works for me on macos (arm too) > ``` > bun ./index.ts > vite v6.3.5 building for production... > ✓ 1 modules transformed. > dist/index.html...
I made a fork that utilizes Complexicon's fork: https://github.com/exoRift/webview-bun
> Thanks @exoRift. I tried your fork, but doesn't seem to do the trick for binding async functions? > > A simple test is changing the `examples/bind.ts` by adding `async`...
> > Did you make sure to use runNonBlocking? > > Ah, thanks for that, it seems to work @exoRift! > > A minor note: Seems to flush logs only...
Are there plans for this?