Skip to content

Commit

Permalink
docs: Incorporating feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
David Shevitz 🔵 committed Jun 11, 2020
1 parent d6e7954 commit 12db3ac
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions aio/content/guide/build.md
Expand Up @@ -262,14 +262,16 @@ Each budget entry is a JSON object with the following properties:

</table>

{@a commonjs-dependencies }
## Allowing CommonJS dependencies
{@a commonjs }
## Configuring CommonJS dependencies

<div class="alert is-important">

It is recommended that you avoid depending on CommonJS modules in your Angular applications.
Depending on CommonJS modules can prevent bundlers and minifiers from optimizing your application, which results in larger bundle sizes.
Instead, it is recommended that you use <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import">ECMAScript modules</a> in your entire application.
For more information, see <a href="https://web.dev/commonjs-larger-bundles/">How CommonJS is making your bundles larger</a>.
Instead, it is recommended that you use [ECMAScript modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) in your entire application.
For more information, see [How CommonJS is making your bundles larger](https://web.dev/commonjs-larger-bundles/).

</div>

The Angular CLI outputs warnings if it detects that your browser application depends on CommonJS modules.
Expand Down

0 comments on commit 12db3ac

Please sign in to comment.