Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 1e8f57a

Browse files
committed
refactor(webpack): account for null deep link config
1 parent 49d7970 commit 1e8f57a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/webpack/ionic-environment-plugin.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,11 @@ export class IonicEnvironmentPlugin {
8383

8484
export function convertDeepLinkConfigToWebpackFormat(parsedDeepLinkConfigs: HydratedDeepLinkConfigEntry[]) {
8585
const dictionary: { [index: string]: string} = { };
86+
if (!parsedDeepLinkConfigs) {
87+
parsedDeepLinkConfigs = [];
88+
}
8689
parsedDeepLinkConfigs.forEach(parsedDeepLinkConfig => {
8790
dictionary[parsedDeepLinkConfig.modulePath] = parsedDeepLinkConfig.absolutePath;
8891
});
8992
return dictionary;
90-
}
93+
}

0 commit comments

Comments
 (0)