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

Commit fae4862

Browse files
committed
fix(deep-links): only provide deep links to webpack that contain the 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
1 parent a7df816 commit fae4862

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/webpack/ionic-environment-plugin.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ export function convertDeepLinkConfigToWebpackFormat(parsedDeepLinkConfigs: Hydr
8787
parsedDeepLinkConfigs = [];
8888
}
8989
parsedDeepLinkConfigs.forEach(parsedDeepLinkConfig => {
90-
dictionary[parsedDeepLinkConfig.modulePath] = parsedDeepLinkConfig.absolutePath;
90+
if (parsedDeepLinkConfig.modulePath && parsedDeepLinkConfig.absolutePath) {
91+
dictionary[parsedDeepLinkConfig.modulePath] = parsedDeepLinkConfig.absolutePath;
92+
}
9193
});
9294
return dictionary;
9395
}

0 commit comments

Comments
 (0)