diff --git a/src/webpack/ionic-environment-plugin.ts b/src/webpack/ionic-environment-plugin.ts index cc5d0391..d773b5bd 100644 --- a/src/webpack/ionic-environment-plugin.ts +++ b/src/webpack/ionic-environment-plugin.ts @@ -1,16 +1,18 @@ +import { getParsedDeepLinkConfig } from '../util/helpers'; import { BuildContext, HydratedDeepLinkConfigEntry } from '../util/interfaces'; import { Logger } from '../logger/logger'; import { getInstance } from '../util/hybrid-file-system-factory'; import { createResolveDependenciesFromContextMap } from './util'; export class IonicEnvironmentPlugin { - constructor(private context: BuildContext, private parsedDeepLinkConfigs: HydratedDeepLinkConfigEntry[]) { + constructor(private context: BuildContext) { } apply(compiler: any) { compiler.plugin('context-module-factory', (contextModuleFactory: any) => { - const webpackDeepLinkModuleDictionary = convertDeepLinkConfigToWebpackFormat(this.parsedDeepLinkConfigs); + const deepLinkConfig = getParsedDeepLinkConfig(); + const webpackDeepLinkModuleDictionary = convertDeepLinkConfigToWebpackFormat(deepLinkConfig); contextModuleFactory.plugin('after-resolve', (result: any, callback: Function) => { if (!result) { return callback(); diff --git a/src/webpack/ionic-webpack-factory.ts b/src/webpack/ionic-webpack-factory.ts index 5b2fc14b..05baea4f 100644 --- a/src/webpack/ionic-webpack-factory.ts +++ b/src/webpack/ionic-webpack-factory.ts @@ -1,11 +1,11 @@ import { getIonicDependenciesCommonChunksPlugin, getNonIonicDependenciesCommonChunksPlugin } from './common-chunks-plugins'; import { IonicEnvironmentPlugin } from './ionic-environment-plugin'; import { provideCorrectSourcePath } from './source-mapper'; -import { getContext, getParsedDeepLinkConfig } from '../util/helpers'; +import { getContext } from '../util/helpers'; export function getIonicEnvironmentPlugin() { const context = getContext(); - return new IonicEnvironmentPlugin(context, getParsedDeepLinkConfig()); + return new IonicEnvironmentPlugin(context); } export function getSourceMapperFunction(): Function {