Skip to content

Commit

Permalink
Update parser.js
Browse files Browse the repository at this point in the history
used optional chaining
  • Loading branch information
rishabhr4 committed Oct 3, 2024
1 parent 52c6796 commit fe2b79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/generator/lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fe2b79a

Please sign in to comment.