From 6dc69256cad457d08a918b918fa21df608201c27 Mon Sep 17 00:00:00 2001 From: Elena Grednikova Date: Tue, 15 Aug 2023 15:54:37 +0200 Subject: [PATCH] Fix vite config --- vite.config.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 5823494d..609b5d8e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -21,9 +21,7 @@ export const getBaseConfig = ({ plugins = [], build = {}, test = {} }) => }), ...plugins, ], - define: { - global: {}, - }, + define: command === 'build' ? {} : { global: {} }, build: { commonjsOptions: { defaultIsModuleExports(id) {