8000 docs: use lighter lodash isEqual import in equality example by guidettj · Pull Request #67644 · angular/angular · GitHub
[go: up one dir, main page]

Skip to content

docs: use lighter lodash isEqual import in equality example#67644

Open
guidettj wants to merge 1 commit intoangular:mainfrom
guidettj:docs/optimize-lodash-import
Open

docs: use lighter lodash isEqual import in equality example#67644
guidettj wants to merge 1 commit intoangular:mainfrom
guidettj:docs/optimize-lodash-import

Conversation

@guidettj
Copy link
@guidettj guidettj commented Mar 12, 2026

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

The documentation currently imports the whole Lodash library in the example:

import _ from 'lodash';

This increases the bundle size unnecessarily (~70 kB gzipped).

Issue Number: N/A

What is the new behavior?

The example now imports only the needed function:

import isEqual from 'lodash/isEqual';

This reduces the bundle impact while keeping the example functional.

Does this PR introduce a breaking change?

  • Yes
  • No

@google-cla
Copy link
google-cla bot commented Mar 12, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@pullapprove pullapprove bot requested a review from kirjs March 12, 2026 16:22
@angular-robot angular-robot bot added the area: docs Related to the documentation label Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Related to the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0