Skip to content

Commit

Permalink
Fix error because of top-level await
Browse files Browse the repository at this point in the history
Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari14" + 3 overrides)
  • Loading branch information
Zikoat committed Aug 2, 2024
1 parent de46769 commit 4d65e5a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
export default {
import { defineConfig } from "vite";

export default defineConfig({
base: "/infinite-minesweeper/",
build: {
target: "esnext",
},
resolve: {
alias: {
crypto: "src/empty.ts",
},
},
};
});

0 comments on commit 4d65e5a

Please sign in to comment.