Skip to content

Commit

Permalink
fix: Top-level await is not available in the configured target enviro…
Browse files Browse the repository at this point in the history
…nment
  • Loading branch information
simply-none committed Jan 16, 2024
1 parent 37dd883 commit f66273d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { fileURLToPath, URL } from "node:url";

import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vueJsx from '@vitejs/plugin-vue-jsx'
import vueJsx from "@vitejs/plugin-vue-jsx";

import AutoImport from "unplugin-auto-import/vite";
import Components from "unplugin-vue-components/vite";
Expand All @@ -28,6 +28,7 @@ export default defineConfig({
pure: ["console.log", "console.info"],
},
build: {
target: "esnext",
// sourcemap: true,
assetsDir: "static/img/",
reportCompressedSize: true,
Expand Down

0 comments on commit f66273d

Please sign in to comment.