Skip to content

fix(@angular/build): ignore virtual esbuild paths with (disabled):#33205

Merged
clydin merged 1 commit into
angular:mainfrom
clydin:fix/issue-33160
May 14, 2026
Merged

fix(@angular/build): ignore virtual esbuild paths with (disabled):#33205
clydin merged 1 commit into
angular:mainfrom
clydin:fix/issue-33160

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented May 14, 2026

Virtual files generated by esbuild for disabled browser fields leak into the watch list, causing spurious rebuilds in watch mode.

Previously, only paths where the suffix was a Node.js builtin module were ignored. Now, any path containing (disabled): is ignored as it represents a virtual file that doesn't exist on disk.

Fixes #33160

Virtual files generated by esbuild for disabled browser fields leak into the
watch list, causing spurious rebuilds in watch mode.

Previously, only paths where the suffix was a Node.js builtin module were
ignored. Now, any path containing `(disabled):` is ignored as it represents
a virtual file that doesn't exist on disk.

Fixes angular#33160
@clydin clydin added the target: patch This PR is targeted for the next patch release label May 14, 2026
Copy link
Copy Markdown

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

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 simplifies the isInternalBundlerFile logic in bundler-context.ts by treating any path containing the (disabled): prefix as a virtual esbuild entry. This change allows for the removal of the builtinModules import from node:module and cleans up unused imports from esbuild. I have no feedback to provide as there were no review comments.

@clydin clydin requested a review from alan-agius4 May 14, 2026 14:53
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label May 14, 2026
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels May 14, 2026
@clydin clydin merged commit b06849a into angular:main May 14, 2026
38 checks passed
@clydin
Copy link
Copy Markdown
Member Author

clydin commented May 14, 2026

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

@fipil
Copy link
Copy Markdown

fipil commented May 15, 2026

I'm happy for the fix, thanks!

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.

Dev server triggers spurious rebuild due to browser-field disabled files leaking into watchFiles

3 participants