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' ;
1
2
import { BuildContext , HydratedDeepLinkConfigEntry } from '../util/interfaces' ;
2
3
import { Logger } from '../logger/logger' ;
3
4
import { getInstance } from '../util/hybrid-file-system-factory' ;
4
5
import { createResolveDependenciesFromContextMap } from './util' ;
5
6
6
7
export class IonicEnvironmentPlugin {
7
- constructor ( private context : BuildContext , private parsedDeepLinkConfigs : HydratedDeepLinkConfigEntry [ ] ) {
8
+ constructor ( private context : BuildContext ) {
8
9
}
9
10
10
11
apply ( compiler : any ) {
11
12
12
13
compiler . plugin ( 'context-module-factory' , ( contextModuleFactory : any ) => {
13
- const webpackDeepLinkModuleDictionary = convertDeepLinkConfigToWebpackFormat ( this . parsedDeepLinkConfigs ) ;
14
+ const deepLinkConfig = getParsedDeepLinkConfig ( ) ;
15
+ const webpackDeepLinkModuleDictionary = convertDeepLinkConfigToWebpackFormat ( deepLinkConfig ) ;
14
16
contextModuleFactory . plugin ( 'after-resolve' , ( result : any , callback : Function ) => {
15
17
if ( ! result ) {
16
18
return callback ( ) ;
Original file line number Diff line number Diff line change 1
1
import { getIonicDependenciesCommonChunksPlugin , getNonIonicDependenciesCommonChunksPlugin } from './common-chunks-plugins' ;
2
2
import { IonicEnvironmentPlugin } from './ionic-environment-plugin' ;
3
3
import { provideCorrectSourcePath } from './source-mapper' ;
4
- import { getContext , getParsedDeepLinkConfig } from '../util/helpers' ;
4
+ import { getContext } from '../util/helpers' ;
5
5
6
6
export function getIonicEnvironmentPlugin ( ) {
7
7
const context = getContext ( ) ;
8
- return new IonicEnvironmentPlugin ( context , getParsedDeepLinkConfig ( ) ) ;
8
+ return new IonicEnvironmentPlugin ( context ) ;
9
9
}
10
10
11
11
export function getSourceMapperFunction ( ) : Function {
You can’t perform that action at this time.
0 commit comments