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:
Filipe Silva 2019-05-28 15:32:42 +01:00 committed by Igor Minar
parent 75cdda5f0a
commit 875eedbfb0
1 changed files with 21 additions and 1 deletions

View File

@ -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.