Skip to content

Commit dd61314

Browse files
committed
fix(@ngtools/webpack): use outDir for i18n extraction in Angular v5
Fixes angular/angular#19198
1 parent 63c145d commit dd61314

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@ngtools/webpack/src/extract_i18n_plugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,11 @@ export class ExtractI18nPlugin implements Tapable {
106106

107107
this._compilerOptions = tsConfig.options;
108108
this._angularCompilerOptions = Object.assign(
109+
// kept for compatibility with Angular <v5.0.0-beta.7+
109110
{ genDir },
110111
this._compilerOptions,
111112
tsConfig.raw['angularCompilerOptions'],
112-
{ basePath }
113+
{ basePath, outDir: genDir }
113114
);
114115

115116
this._basePath = basePath;

0 commit comments

Comments
 (0)