@@ -79,9 +79,6 @@ export interface AngularCompilerPluginOptions {
79
79
skipCodeGeneration ?: boolean ;
80
80
hostReplacementPaths ?: { [ path : string ] : string } | ( ( path : string ) => string ) ;
81
81
forkTypeChecker ?: boolean ;
82
- // TODO: remove singleFileIncludes for 2.0, this is just to support old projects that did not
83
- // include 'polyfills.ts' in `tsconfig.spec.json'.
84
- singleFileIncludes ?: string [ ] ;
85
82
i18nInFile ?: string ;
86
83
i18nInFormat ?: string ;
87
84
i18nOutFile ?: string ;
@@ -116,7 +113,6 @@ export class AngularCompilerPlugin {
116
113
// TS compilation.
117
114
private _compilerOptions : CompilerOptions ;
118
115
private _rootNames : string [ ] ;
119
- private _singleFileIncludes : string [ ] = [ ] ;
120
116
private _program : ( ts . Program | Program ) | null ;
121
117
private _compilerHost : WebpackCompilerHost & CompilerHost ;
122
118
private _moduleResolutionCache : ts . ModuleResolutionCache ;
@@ -203,17 +199,13 @@ export class AngularCompilerPlugin {
203
199
basePath = path . resolve ( process . cwd ( ) , options . basePath ) ;
204
200
}
205
201
206
- if ( options . singleFileIncludes !== undefined ) {
207
- this . _singleFileIncludes . push ( ...options . singleFileIncludes ) ;
208
- }
209
-
210
202
// Parse the tsconfig contents.
211
203
const config = readConfiguration ( this . _tsConfigPath ) ;
212
204
if ( config . errors && config . errors . length ) {
213
205
throw new Error ( formatDiagnostics ( config . errors ) ) ;
214
206
}
215
207
216
- this . _rootNames = config . rootNames . concat ( ... this . _singleFileIncludes ) ;
208
+ this . _rootNames = config . rootNames ;
217
209
this . _compilerOptions = { ...config . options , ...options . compilerOptions } ;
218
210
this . _basePath = config . options . basePath || basePath || '' ;
219
211
@@ -351,7 +343,7 @@ export class AngularCompilerPlugin {
351
343
// When a new root name (like a lazy route) is added, it won't be available from
352
344
// following imports on the existing files, so we need to get the new list of root files.
353
345
const config = readConfiguration ( this . _tsConfigPath ) ;
354
- this . _rootNames = config . rootNames . concat ( ... this . _singleFileIncludes ) ;
346
+ this . _rootNames = config . rootNames ;
355
347
356
348
// Update the forked type checker with all changed compilation files.
357
349
// This includes templates, that also need to be reloaded on the type checker.
0 commit comments