docs: add default AOT to migrating projects to Ivy (#30697)
Followup to https://github.com/angular/angular/pull/29380, https://github.com/angular/angular/pull/30238, https://github.com/angular/angular-cli/pull/14537. PR Close #30697
This commit is contained in:
parent
75cdda5f0a
commit
875eedbfb0
|
@ -32,4 +32,24 @@ To update an existing project to use Ivy, set the `enableIvy` option in the `ang
|
|||
}
|
||||
```
|
||||
|
||||
To stop using the Ivy compiler, set `enableIvy` to `false` in `tsconfig.app.json`, or remove it completely.
|
||||
AOT compilation with Ivy is faster and should be used by default. In the `angular.json` workspace configuration file, set the default build options for your project to always use AOT compilation.
|
||||
|
||||
```json
|
||||
{
|
||||
"projects": {
|
||||
"my-existing-project": {
|
||||
"architect": {
|
||||
"build": {
|
||||
"options": {
|
||||
...
|
||||
"aot": true,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
To stop using the Ivy compiler, set `enableIvy` to `false` in `tsconfig.app.json`, or remove it completely. Also remove `"aot": true` from your default build options if you didn't have it there before.
|
||||
|
Loading…
Reference in New Issue