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

Commit

Permalink
fix(deep-links): only provide deep links to webpack that contain the …
Browse files Browse the repository at this point in the history
…import used in code and the abs

only provide deep links to webpack that contain the import used in code and the absolute path w/
extension
  • Loading branch information
danbucholtz committed Feb 15, 2017
1 parent a7df816 commit fae4862
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/webpack/ionic-environment-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export function convertDeepLinkConfigToWebpackFormat(parsedDeepLinkConfigs: Hydr
parsedDeepLinkConfigs = [];
}
parsedDeepLinkConfigs.forEach(parsedDeepLinkConfig => {
dictionary[parsedDeepLinkConfig.modulePath] = parsedDeepLinkConfig.absolutePath;
if (parsedDeepLinkConfig.modulePath && parsedDeepLinkConfig.absolutePath) {
dictionary[parsedDeepLinkConfig.modulePath] = parsedDeepLinkConfig.absolutePath;
}
});
return dictionary;
}

0 comments on commit fae4862

Please sign in to comment.