This repository was archived by the owner on May 1, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1+ import { getParsedDeepLinkConfig } from '../util/helpers' ;
12import { BuildContext , HydratedDeepLinkConfigEntry } from '../util/interfaces' ;
23import { Logger } from '../logger/logger' ;
34import { getInstance } from '../util/hybrid-file-system-factory' ;
45import { createResolveDependenciesFromContextMap } from './util' ;
56
67export class IonicEnvironmentPlugin {
7- constructor ( private context : BuildContext , private parsedDeepLinkConfigs : HydratedDeepLinkConfigEntry [ ] ) {
8+ constructor ( private context : BuildContext ) {
89 }
910
1011 apply ( compiler : any ) {
1112
1213 compiler . plugin ( 'context-module-factory' , ( contextModuleFactory : any ) => {
13- const webpackDeepLinkModuleDictionary = convertDeepLinkConfigToWebpackFormat ( this . parsedDeepLinkConfigs ) ;
14+ const deepLinkConfig = getParsedDeepLinkConfig ( ) ;
15+ const webpackDeepLinkModuleDictionary = convertDeepLinkConfigToWebpackFormat ( deepLinkConfig ) ;
1416 contextModuleFactory . plugin ( 'after-resolve' , ( result : any , callback : Function ) => {
1517 if ( ! result ) {
1618 return callback ( ) ;
Original file line number Diff line number Diff line change 11import { getIonicDependenciesCommonChunksPlugin , getNonIonicDependenciesCommonChunksPlugin } from './common-chunks-plugins' ;
22import { IonicEnvironmentPlugin } from './ionic-environment-plugin' ;
33import { provideCorrectSourcePath } from './source-mapper' ;
4- import { getContext , getParsedDeepLinkConfig } from '../util/helpers' ;
4+ import { getContext } from '../util/helpers' ;
55
66export function getIonicEnvironmentPlugin ( ) {
77 const context = getContext ( ) ;
8- return new IonicEnvironmentPlugin ( context , getParsedDeepLinkConfig ( ) ) ;
8+ return new IonicEnvironmentPlugin ( context ) ;
99}
1010
1111export function getSourceMapperFunction ( ) : Function {
You can’t perform that action at this time.
0 commit comments