mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
f0da7c2e44
`useJit` and `missingTranslation` have been deprecated since v13 and are unused in Ivy. They can be safely removed. PR Close #49672
Compiler Options migrations
CompilerOptions.useJit and CompilerOptions.missingTranslation config options are unused in Ivy and have no effects. They can be safely removed.
Before
import {ViewEncapsulation, MissingTranslationStrategy, CompilerOptions} from '@angular/core';
const compilerOptions: CompilerOptions = {
defaultEncapsulation: ViewEncapsulation.None,
preserveWhitespaces: true,
useJit: true,
missingTranslation: MissingTranslationStrategy.Ignore,
};
After
import {ViewEncapsulation, CompilerOptions} from '@angular/core';
const compilerOptions: CompilerOptions = {
defaultEncapsulation: ViewEncapsulation.None,
preserveWhitespaces: true,
};