refactor(compiler): remove option useDebug
(#18778)
BREAKING CHANGE: the option `useDebug` for the compiler has been removed as it had no effect and was deprecated since v4. PR Close #18778
This commit is contained in:
parent
b8a3736275
commit
499d05ddee
@ -96,10 +96,6 @@ export class Compiler {
|
|||||||
* @experimental
|
* @experimental
|
||||||
*/
|
*/
|
||||||
export type CompilerOptions = {
|
export type CompilerOptions = {
|
||||||
/**
|
|
||||||
* @deprecated since v4 this option has no effect anymore.
|
|
||||||
*/
|
|
||||||
useDebug?: boolean,
|
|
||||||
useJit?: boolean,
|
useJit?: boolean,
|
||||||
defaultEncapsulation?: ViewEncapsulation,
|
defaultEncapsulation?: ViewEncapsulation,
|
||||||
providers?: StaticProvider[],
|
providers?: StaticProvider[],
|
||||||
|
@ -330,8 +330,7 @@ export class TestBed implements Injector {
|
|||||||
|
|
||||||
const compilerFactory: TestingCompilerFactory =
|
const compilerFactory: TestingCompilerFactory =
|
||||||
this.platform.injector.get(TestingCompilerFactory);
|
this.platform.injector.get(TestingCompilerFactory);
|
||||||
this._compiler =
|
this._compiler = compilerFactory.createTestingCompiler(this._compilerOptions);
|
||||||
compilerFactory.createTestingCompiler(this._compilerOptions.concat([{useDebug: true}]));
|
|
||||||
this._compiler.loadAotSummaries(this._aotSummaries);
|
this._compiler.loadAotSummaries(this._aotSummaries);
|
||||||
this._moduleOverrides.forEach((entry) => this._compiler.overrideModule(entry[0], entry[1]));
|
this._moduleOverrides.forEach((entry) => this._compiler.overrideModule(entry[0], entry[1]));
|
||||||
this._componentOverrides.forEach(
|
this._componentOverrides.forEach(
|
||||||
|
@ -157,7 +157,6 @@ export class JitCompilerFactory implements CompilerFactory {
|
|||||||
private _defaultOptions: CompilerOptions[];
|
private _defaultOptions: CompilerOptions[];
|
||||||
constructor(defaultOptions: CompilerOptions[]) {
|
constructor(defaultOptions: CompilerOptions[]) {
|
||||||
const compilerOptions: CompilerOptions = {
|
const compilerOptions: CompilerOptions = {
|
||||||
useDebug: isDevMode(),
|
|
||||||
useJit: true,
|
useJit: true,
|
||||||
defaultEncapsulation: ViewEncapsulation.Emulated,
|
defaultEncapsulation: ViewEncapsulation.Emulated,
|
||||||
missingTranslation: MissingTranslationStrategy.Warning,
|
missingTranslation: MissingTranslationStrategy.Warning,
|
||||||
|
@ -76,9 +76,6 @@ interface Options extends ts.CompilerOptions {
|
|||||||
// Print extra information while running the compiler
|
// Print extra information while running the compiler
|
||||||
trace?: boolean;
|
trace?: boolean;
|
||||||
|
|
||||||
/** @deprecated since v4 this option has no effect anymore. */
|
|
||||||
debug?: boolean;
|
|
||||||
|
|
||||||
// Whether to enable support for <template> and the template attribute (true by default)
|
// Whether to enable support for <template> and the template attribute (true by default)
|
||||||
enableLegacyTemplate?: boolean;
|
enableLegacyTemplate?: boolean;
|
||||||
|
|
||||||
|
1
tools/public_api_guard/core/core.d.ts
vendored
1
tools/public_api_guard/core/core.d.ts
vendored
@ -195,7 +195,6 @@ export declare abstract class CompilerFactory {
|
|||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export declare type CompilerOptions = {
|
export declare type CompilerOptions = {
|
||||||
/** @deprecated */ useDebug?: boolean;
|
|
||||||
useJit?: boolean;
|
useJit?: boolean;
|
||||||
defaultEncapsulation?: ViewEncapsulation;
|
defaultEncapsulation?: ViewEncapsulation;
|
||||||
providers?: StaticProvider[];
|
providers?: StaticProvider[];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user