From 51de4f7b16719472dd5ed4cc3bc69bc27f049ccc Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 5 May 2020 16:08:02 +0200 Subject: [PATCH] refactor(@ngtools/webpack): remove deprecated isSupported method BREAKING CHANGE: `isSupported` method has been removed from `AngularCompilerPlugin` as it has become redundant with peer dependencies. Note: this change only effects direct `@ngtools/webpack` users and not the application developers. --- packages/ngtools/webpack/src/angular_compiler_plugin.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/ngtools/webpack/src/angular_compiler_plugin.ts b/packages/ngtools/webpack/src/angular_compiler_plugin.ts index 17a166d4348c..c2ed7981f93c 100644 --- a/packages/ngtools/webpack/src/angular_compiler_plugin.ts +++ b/packages/ngtools/webpack/src/angular_compiler_plugin.ts @@ -24,7 +24,6 @@ import { Program, SOURCE, UNKNOWN_ERROR_CODE, - VERSION, createCompilerHost, createProgram, formatDiagnostics, @@ -156,11 +155,6 @@ export class AngularCompilerPlugin { return tsProgram ? tsProgram.getTypeChecker() : null; } - /** @deprecated From 8.0.2 */ - static isSupported() { - return VERSION && parseInt(VERSION.major) >= 8; - } - private _setupOptions(options: AngularCompilerPluginOptions) { time('AngularCompilerPlugin._setupOptions'); this._logger = options.logger || createConsoleLogger();