From a9c34255e07272fb037bb5dfe29ff8ac556c3a9d Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Wed, 6 Dec 2023 10:20:51 +0200 Subject: [PATCH] Added default value for DISABLE_SOURCE_MAPS (#7228) --- cvat-ui/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvat-ui/webpack.config.js b/cvat-ui/webpack.config.js index ba7e176e7751..c5850cea0df8 100644 --- a/cvat-ui/webpack.config.js +++ b/cvat-ui/webpack.config.js @@ -13,7 +13,7 @@ module.exports = (env) => { const defaultAppConfig = path.join(__dirname, 'src/config.tsx'); const defaultPlugins = ['plugins/sam']; - const sourceMapsDisabled = process.env.DISABLE_SOURCE_MAPS.toLocaleLowerCase() === 'true'; + const sourceMapsDisabled = (process.env.DISABLE_SOURCE_MAPS || 'false').toLocaleLowerCase() === 'true'; const appConfigFile = process.env.UI_APP_CONFIG ? process.env.UI_APP_CONFIG : defaultAppConfig; const pluginsList = process.env.CLIENT_PLUGINS ? [...defaultPlugins, ...process.env.CLIENT_PLUGINS.split(':')] .map((s) => s.trim()).filter((s) => !!s) : defaultPlugins;