From e95f460f39fa047cbd2ca891ece34b41fb3566c2 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Wed, 17 Apr 2019 10:45:50 +0100 Subject: [PATCH] docs: remove aot step from Ivy opt-in (#29955) PR Close #29955 --- aio/content/guide/ivy.md | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/aio/content/guide/ivy.md b/aio/content/guide/ivy.md index 584f2ba410..1521064706 100644 --- a/aio/content/guide/ivy.md +++ b/aio/content/guide/ivy.md @@ -13,7 +13,6 @@ ng new shiny-ivy-app --enable-ivy The new project is automatically configured for Ivy. - The `enableIvy` option is set to `true` in `tsconfig.app.json`. -- The `"aot": true` option is added to your default build options. {@a updating} ## Updating an existing project to use Ivy @@ -48,27 +47,9 @@ const routes: Routes = [{ loadChildren: () => import('./lazy/lazy.module').then(m => m.LazyModule) }]; ``` -- 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, - } - } - } - } - } -} -``` ## Switching back to the current compiler To stop using the Ivy compiler you need to undo the steps taken when [updating to use Ivy](#updating). - Set `enableIvy` to false in `tsconfig.app.json`, or remove it completely. - Add `"experimentalImportFactories": true` to your default build options in `angular.json` to support the import statement in `loadChildren` outside Ivy. -- Remove `"aot": true` from your default build options if you didn't have it there before.