Skip to content
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

fix(webpack): use new watcher for webpack build coordination plugin #18822

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

FrozenPandaz
Copy link
Collaborator

@FrozenPandaz FrozenPandaz commented Aug 24, 2023

Current Behavior

The webpack incremental builds build all of the libs once for every file that changes which can be a lot of files when switching branches.

Also, the webpack incremental builds use chokidar to watch for file changes.

Expected Behavior

The webpack incremental builds only build all of the libs once when many files change at once such as when changing branches.

Also, the webpack incremental builds use the logic from the nx watch command and use the daemon file watcher instead of chokidar

Related Issue(s)

Fixes #

@vercel
Copy link

vercel bot commented Aug 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 24, 2023 6:23pm

@@ -48,60 +49,77 @@ class BatchCommandRunner {
return this.process();
}

async process() {
private async process() {
Copy link
Member

Choose a reason for hiding this comment

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

At this point enqueue is just process, can we move the body into enqueue and remove process?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Github hid it but enqueue also adds projects and files into pending

@FrozenPandaz FrozenPandaz merged commit c175f9b into nrwl:master Aug 25, 2023
3 checks passed
@FrozenPandaz FrozenPandaz deleted the fix-webpack-watch branch August 25, 2023 13:06
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants