@@ -28,7 +28,7 @@ export class ExtractI18nPlugin implements Tapable {
28
28
private _rootFilePath : string [ ] ;
29
29
private _compilerOptions : any = null ;
30
30
private _angularCompilerOptions : any = null ;
31
- //private _compilerHost: WebpackCompilerHost;
31
+ // private _compilerHost: WebpackCompilerHost;
32
32
private _compilerHost : ts . CompilerHost ;
33
33
private _program : ts . Program ;
34
34
@@ -94,12 +94,10 @@ export class ExtractI18nPlugin implements Tapable {
94
94
// By default messages will be generated in basePath
95
95
let genDir = basePath ;
96
96
97
- if ( options . hasOwnProperty ( 'genDir' ) ) {
97
+ if ( options . hasOwnProperty ( 'genDir' ) ) {
98
98
genDir = path . resolve ( process . cwd ( ) , options . genDir ) ;
99
99
}
100
100
101
- console . log ( genDir ) ;
102
-
103
101
this . _compilerOptions = tsConfig . options ;
104
102
this . _angularCompilerOptions = Object . assign (
105
103
{ genDir } ,
@@ -111,7 +109,7 @@ export class ExtractI18nPlugin implements Tapable {
111
109
this . _basePath = basePath ;
112
110
this . _genDir = genDir ;
113
111
114
- //this._compilerHost = new WebpackCompilerHost(this._compilerOptions, this._basePath);
112
+ // this._compilerHost = new WebpackCompilerHost(this._compilerOptions, this._basePath);
115
113
this . _compilerHost = ts . createCompilerHost ( this . _compilerOptions , true ) ;
116
114
this . _program = ts . createProgram (
117
115
this . _rootFilePath , this . _compilerOptions , this . _compilerHost ) ;
@@ -136,8 +134,9 @@ export class ExtractI18nPlugin implements Tapable {
136
134
137
135
private _make ( compilation : any , cb : ( err ?: any , request ?: any ) => void ) {
138
136
this . _compilation = compilation ;
139
- if ( this . _compilation . _ngToolsWebpackXi18nPluginInstance ) {
140
- return cb ( new Error ( 'An @ngtools/webpack xi18n plugin already exist for this compilation.' ) ) ;
137
+ if ( this . _compilation . _ngToolsWebpackXi18nPluginInstance ) {
138
+ return cb ( new Error ( 'An @ngtools/webpack xi18n plugin already exist for ' +
139
+ 'this compilation.' ) ) ;
141
140
}
142
141
143
142
this . _compilation . _ngToolsWebpackXi18nPluginInstance = this ;
0 commit comments