From 096d7c1a7609935cdd030fbf60e32af0e013fad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20My=C5=9Bliwiec?= Date: Mon, 16 Nov 2020 14:09:47 +0100 Subject: [PATCH] fix(): fix app name wrapping logic --- lib/compiler/helpers/get-value-or-default.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/compiler/helpers/get-value-or-default.ts b/lib/compiler/helpers/get-value-or-default.ts index b94cc43fa..508d32429 100644 --- a/lib/compiler/helpers/get-value-or-default.ts +++ b/lib/compiler/helpers/get-value-or-default.ts @@ -15,9 +15,13 @@ export function getValueOrDefault( return origValue as T; } if (configuration.projects && configuration.projects[appName]) { + // Wrap the application name in double-quotes to prevent splitting it + // into separate chunks + appName = appName && !appName.includes('"') ? `"${appName}"` : appName; + const perAppValue = getValueOfPath( configuration, - `projects."${appName}".`.concat(propertyPath), + `projects.${appName}.`.concat(propertyPath), ); if (perAppValue !== undefined) { return perAppValue as T;