likes
comments
collection
share

Top-level await is not available in the configured

作者站长头像
站长
· 阅读数 269

Vite2打包报 Top-level await is not available in the configured target environment

直接上方案

在vite.config.ts的加上下面build: { target: "es2019",}或者build: { target: "esnext",}或者build: { target: ['edge90','chrome90','firefox90','safari15','esnext'],}