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) {