From fe2b79a772771d1ec1adde831b7c204c3a676334 Mon Sep 17 00:00:00 2001 From: rishabhr4 <118053976+rishabhr4@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:37:06 +0530 Subject: [PATCH] Update parser.js used optional chaining --- apps/generator/lib/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/generator/lib/parser.js b/apps/generator/lib/parser.js index ac1d327a8..54b2c54fa 100644 --- a/apps/generator/lib/parser.js +++ b/apps/generator/lib/parser.js @@ -63,7 +63,7 @@ function convertOldOptionsToNew(oldOptions, generator) { } const resolvers = []; - if (generator && generator.mapBaseUrlToFolder && generator.mapBaseUrlToFolder.url) { + if (generator?.mapBaseUrlToFolder?.url) { resolvers.push(...getMapBaseUrlToFolderResolvers(generator.mapBaseUrlToFolder)); } if (oldOptions.resolve) {