From ff8d7cfc754bc5250289ecf5012c5598d8c4d84b Mon Sep 17 00:00:00 2001 From: "Saulius.Skliutas" <24278440+saskliutas@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:52:23 +0200 Subject: [PATCH] Update vite config --- app/frontend/vite.config.mts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/frontend/vite.config.mts b/app/frontend/vite.config.mts index 6fd77e0..9fa1028 100644 --- a/app/frontend/vite.config.mts +++ b/app/frontend/vite.config.mts @@ -22,19 +22,18 @@ export default defineConfig(({ mode }) => { src: "./node_modules/@itwin/*/lib/public/*", dest: ".", }, - { src: "public/locales", dest: "locales" }, ], }), - monacoEditorPlugin.default({}), + monacoEditorPlugin.default({ + languageWorkers: ["json"], + }), ], server: { port: 3000, strictPort: true, }, - esbuild: { - supported: { - "top-level-await": true, // browsers can handle top-level-await features - }, + build: { + target: "es2022", }, css: { preprocessorOptions: { @@ -67,7 +66,6 @@ function verifyEnvironmentVariables(mode: string): void { } if ((env.DEPLOYMENT_TYPE !== "dev" && !env.OAUTH_CLIENT_ID) || env.OAUTH_CLIENT_ID === "spa-xxxxxxxxxxxxxxxxxxxxxxxxx") { - // eslint-disable-next-line no-console throw new Error(`Environment variable OAUTH_CLIENT_ID has not been set. Instructions in .env file \ will guide you through the setup process.`); }