|
|
@@ -1,3 +1,4 @@
|
|
|
+import topLevelAwait from 'vite-plugin-top-level-await';
|
|
|
import { fileURLToPath, URL } from "node:url";
|
|
|
import { defineConfig, loadEnv } from "vite";
|
|
|
import vue from "@vitejs/plugin-vue";
|
|
|
@@ -35,6 +36,7 @@ export default defineConfig(({ mode }) => {
|
|
|
}
|
|
|
},
|
|
|
build: {
|
|
|
+ target: "esnext",
|
|
|
outDir: "dist",
|
|
|
assetsDir: "static/assets",
|
|
|
chunkSizeWarningLimit: 2000,
|
|
|
@@ -60,6 +62,7 @@ export default defineConfig(({ mode }) => {
|
|
|
}
|
|
|
},
|
|
|
plugins: [
|
|
|
+ topLevelAwait(),
|
|
|
vue({
|
|
|
template: {
|
|
|
compilerOptions: {
|