vite
vite copied to clipboard
feat: add `environment::listen`
Description
The upside of this approach is that this makes the implementation of environments cleaner IMO.
Run & review this pull request in StackBlitz Codeflow.
I tried this API here: https://github.com/sapphi-red/daienjo-architecture/blob/966c60a5a94dcc388ba163ddbe9f2ba3435b2cbb/environment-pkgs/workerd/index.ts#L89-L290
I had to pass in hot always even if it might be false later. I'm making hot noop when it should be hot: false. (previous code)
Other than that, the API worked fine.
Thanks for exploring the different options for the API @sapphi-red!