Skip to content

fix(@angular/build): avoid attempting to watch bundler internal files #30249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

clydin
Copy link
Member

@clydin clydin commented May 5, 2025

The internal bundler (esbuild) may use virtual files to represent added content to the output files. This includes names such as <define:???> and <runtime> to reference object define values and runtime code, respectively. It may also use paths that end with (disabled):<node_builtin_name> where <node_builtin_name> is one of Node.js' builtin modules. All these cases are now handled by the file watching system and will not be attempted to be watched. Previously these virtual files would be considered removed by the file watching system as they do not actually exist on the file system.

Closes #30197

The internal bundler (`esbuild`) may use virtual files to represent added
content to the output files. This includes names such as `<define:???>` and
`<runtime>` to reference object define values and runtime code, respectively.
It may also use paths that end with `(disabled):<node_builtin_name>` where
`<node_builtin_name>` is one of Node.js' builtin modules. All these cases
are now handled by the file watching system and will not be attempted to
be watched. Previously these virtual files would be considered removed by
the file watching system as they do not actually exist on the file system.
@clydin clydin added the target: rc This PR is targeted for the next release-candidate label May 5, 2025
@clydin clydin marked this pull request as ready for review May 5, 2025 18:32
@clydin clydin requested a review from alan-agius4 May 5, 2025 18:32
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label May 6, 2025
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: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit tests using esbuild + Vite will rebuild during initial test run when using a large dependency
2 participants