From 86a948730fe00841f694c0ec35c3eb3e9ba03efe Mon Sep 17 00:00:00 2001 From: Andrea Scartabelli Date: Tue, 9 Jul 2024 14:25:40 +0200 Subject: [PATCH] explorer: Updated vite build target to support top-level await --- explorer/vite.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/explorer/vite.config.js b/explorer/vite.config.js index 8ed8c5777c..d7024ccbad 100644 --- a/explorer/vite.config.js +++ b/explorer/vite.config.js @@ -17,6 +17,9 @@ export default defineConfig(({ mode }) => { process.env.PUBLIC_APP_VERSION = APP_VERSION; return { + build: { + target: ["es2022", "edge89", "firefox89", "chrome89", "safari15"], + }, define: { CONFIG: { LOCAL_STORAGE_APP_KEY: process.env.npm_package_name,