From 4d65e5ad3fd25eac69543f3e374e7607fa3c9ae8 Mon Sep 17 00:00:00 2001 From: Zikoat Date: Fri, 2 Aug 2024 18:00:53 +0200 Subject: [PATCH] Fix error because of top-level await Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari14" + 3 overrides) --- vite.config.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vite.config.js b/vite.config.js index 9790e94..c764206 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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", }, }, -}; +});