Skip to content

refactor(@angular/build): remove unused exports - #34651

Merged
dgp1130 merged 1 commit into
angular:mainfrom
MeAkib:refactor/build-unused-exports
Nov 6, 2026
Merged

dgp1130 merged 1 commit into
angular:mainfrom
MeAkib:refactor/build-unused-exports

Conversation

@MeAkib

@MeAkib MeAkib commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Remove the export keyword from four symbols that are only referenced within their defining file: calculateThresholds and checkThresholds, whose external callers moved to checkBudgets in 4d27c38; augmentAppWithServiceWorkerCore, which is only called by the exported wrapper functions; and getEntryPointName, whose external call sites were removed in 75abe2c. The two threshold functions also leave the unsupported private entry point, which re-exports the bundle calculator module; neither @angular-devkit/build-angular nor @angular/cli references them, and both still compile. The public API golden is unchanged.

Remove the `export` keyword from four symbols that are only referenced within
their defining file: `calculateThresholds` and `checkThresholds`, whose
external callers moved to `checkBudgets` in 4d27c38;
`augmentAppWithServiceWorkerCore`, which is only called by the exported
wrapper functions; and `getEntryPointName`, whose external call sites were
removed in 75abe2c. The two threshold functions also leave the unsupported
`private` entry point, which re-exports the bundle calculator module; neither
`@angular-devkit/build-angular` nor `@angular/cli` references them, and both
still compile. The public API golden is unchanged.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request restricts the visibility of several utility functions across the codebase—specifically getEntryPointName, calculateThresholds, checkThresholds, and augmentAppWithServiceWorkerCore—by removing their export keywords to make them internal to their respective modules. There are no review comments to address, and I have no feedback to provide.

@MeAkib
MeAkib force-pushed the refactor/build-unused-exports branch from 142ce9e to f54bd49 Compare November 4, 2026 09:45
@alan-agius4 alan-agius4 added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker labels Nov 4, 2026
@dgp1130 dgp1130 closed this Nov 4, 2026
@dgp1130 dgp1130 reopened this Nov 4, 2026
@dgp1130
dgp1130 merged commit 07bdf88 into angular:main Nov 6, 2026
50 checks passed
@dgp1130

dgp1130 commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

This PR was merged into the repository. The changes were merged into the following branches:

@MeAkib
MeAkib deleted the refactor/build-unused-exports branch November 7, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants