Skip to content

Commit 4a9514e

Browse files
alan-agius4AndrewKushnir
authored andcommitted
docs: remove speeding update ngcc section (angular#36049)
In version 9.1, this is no longer needed as in the CLI, NGCC async has been integrated which will run during `ng build/ng serve/ng test`. Reference: TOOL-1340 PR Close angular#36049
1 parent 63815b5 commit 4a9514e

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

aio/content/guide/ivy.md

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,6 @@ CLI commands run `ngcc` as needed when performing an Angular build.
4343

4444
For more information on how to publish libraries see [Publishing your Library](guide/creating-libraries#publishing-your-library).
4545

46-
{@a speeding-up-ngcc-compilation}
47-
### Speeding up ngcc compilation
48-
49-
The standalone `ngcc` program can run in parallel over your third party modules, making it more efficient than letting Angular CLI run it as needed.
50-
51-
You can run `ngcc` after each installation of node_modules by adding a `postinstall` [npm script](https://docs.npmjs.com/misc/scripts):
52-
53-
<code-example language="json" header="package.json">
54-
{
55-
"scripts": {
56-
"postinstall": "ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points"
57-
}
58-
}
59-
</code-example>
60-
61-
<div class="alert is-important">
62-
63-
The `postinstall` script will run on every installation of `node_modules`, including those performed by `ng update` and `ng add`.
64-
65-
If you perform multiple installs in a row, this can end up being slower than letting Angular CLI run `ngcc` on builds.
66-
67-
</div>
68-
6946
{@a maintaining-library-compatibility}
7047
### Maintaining library compatibility
7148

@@ -92,8 +69,9 @@ You can run `ngcc` after each installation of node_modules by adding a `postinst
9269

9370
<div class="alert is-important">
9471

95-
Don't use `--create-ivy-entry-points` as this will cause Node not to resolve the Ivy version of the packages correctly.
96-
72+
* The `postinstall` script will run on every installation of `node_modules`, including those performed by `ng update` and `ng add`.
73+
* Don't use `--create-ivy-entry-points` as this will cause Node not to resolve the Ivy version of the packages correctly.
74+
9775
</div>
9876

9977
{@a opting-out-of-angular-ivy}

0 commit comments

Comments
 (0)