Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

beenotung
Copy link
Contributor

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants