File tree 6 files changed +8
-2
lines changed
packages/angular_devkit/build_angular/src
6 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
// TODO: cleanup this file, it's copied as is from Angular CLI.
10
10
11
- // tslint:disable-next-line:no-implicit-dependencies
12
- import * as ts from 'typescript' ;
11
+ import { logging } from '@angular-devkit/core' ;
12
+ import * as ts from 'typescript' ; // tslint:disable-line:no-implicit-dependencies
13
13
import {
14
14
AssetPatternObject ,
15
15
Budget ,
@@ -74,6 +74,7 @@ export interface WebpackTestOptions extends BuildOptions {
74
74
75
75
export interface WebpackConfigOptions < T = BuildOptions > {
76
76
root : string ;
77
+ logger : logging . Logger ;
77
78
projectRoot : string ;
78
79
sourceRoot ?: string ;
79
80
buildOptions : T ;
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ function _createAotPlugin(
81
81
nameLazyFiles : buildOptions . namedChunks ,
82
82
forkTypeChecker : buildOptions . forkTypeChecker ,
83
83
contextElementDependencyConstructor : require ( 'webpack/lib/dependencies/ContextElementDependency' ) ,
84
+ logger : wco . logger ,
84
85
...options ,
85
86
} ;
86
87
return new AngularCompilerPlugin ( pluginOptions ) ;
Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ export class BrowserBuilder implements Builder<BrowserBuilderSchema> {
132
132
133
133
wco = {
134
134
root : getSystemPath ( root ) ,
135
+ logger : this . context . logger ,
135
136
projectRoot : getSystemPath ( projectRoot ) ,
136
137
buildOptions : options ,
137
138
tsConfig,
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ export class ExtractI18nBuilder implements Builder<ExtractI18nBuilderOptions> {
118
118
119
119
wco = {
120
120
root : getSystemPath ( root ) ,
121
+ logger : this . context . logger ,
121
122
projectRoot : getSystemPath ( projectRoot ) ,
122
123
// TODO: use only this.options, it contains all flags and configs items already.
123
124
buildOptions : options ,
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ export class KarmaBuilder implements Builder<KarmaBuilderSchema> {
139
139
140
140
wco = {
141
141
root : getSystemPath ( root ) ,
142
+ logger : this . context . logger ,
142
143
projectRoot : getSystemPath ( projectRoot ) ,
143
144
sourceRoot : sourceRoot && getSystemPath ( sourceRoot ) ,
144
145
// TODO: use only this.options, it contains all flags and configs items already.
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ export class ServerBuilder implements Builder<BuildWebpackServerSchema> {
83
83
84
84
wco = {
85
85
root : getSystemPath ( root ) ,
86
+ logger : this . context . logger ,
86
87
projectRoot : getSystemPath ( projectRoot ) ,
87
88
// TODO: use only this.options, it contains all flags and configs items already.
88
89
buildOptions : {
You can’t perform that action at this time.
0 commit comments