josStorer / RWKV-Runner

A RWKV management and startup tool, full automation, only 8MB. And provides an interface compatible with the OpenAI API. RWKV is a large language model that is fully open source and available for commercial use.
https://www.rwkv.com
MIT License
5.31k stars 502 forks source link

patch: fix build error "[vite-plugin-top-level-await] Bindings not found" #340

Open beenotung opened 6 months ago

beenotung commented 6 months ago

top-level await is supported by current browser, we may just skip this plugin.

(I install the dependencies with pnpm instead of npm, not sure if it is related)

josStorer commented 5 months ago

According to https://caniuse.com/mdn-javascript_operators_await_top_level, it seems that browser versions from 2021 and later have support for top-level await. I think the scope is too narrow, I would like to keep the current version to support more browser versions, because the webui of rwkv-runner needs to consider its use by ordinary users, some of whom may have older devices.