From fae48620c8bc0d48aae48c17f9b2b2a42b6455d5 Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Wed, 15 Feb 2017 16:37:02 -0600 Subject: [PATCH] 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 --- src/webpack/ionic-environment-plugin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webpack/ionic-environment-plugin.ts b/src/webpack/ionic-environment-plugin.ts index d773b5bd..a0f2c148 100644 --- a/src/webpack/ionic-environment-plugin.ts +++ b/src/webpack/ionic-environment-plugin.ts @@ -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; }