mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
`useJit` and `missingTranslation` have been deprecated since v13 and are unused in Ivy. They can be safely removed. PR Close #49672 |
||
|---|---|---|
| .. | ||
| BUILD.bazel | ||
| index.ts | ||
| README.md | ||
| util.ts | ||
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,
};