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

我通过vite配置解决了这个问题【I solved this problem through Vite configuration】 #60

Open
xiangxiangsu opened this issue Nov 6, 2024 · 1 comment

Comments

@xiangxiangsu
Copy link

在vite.config.ts中添加如下配置处理:【Add the following configuration processing in vitenfig.ts:】

esbuild: {
    supported: {
      "top-level-await": true,
    },
  },
@superrnovae
Copy link

superrnovae commented Nov 27, 2024

It seems like vite brought the support for top level awaits. Not sure in which version it started working ootb, but I've noticed I no longer needed to include this plugin in my project to avoid build errors.

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

No branches or pull requests

2 participants