Skip to content

perf(worker): rebuild only when affected #20559

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

sapphi-red
Copy link
Member

Description

Instead of building the worker every time any file is changed (before this PR shouldTransformCachedModule returns true), this PR makes the worker plugin to track the watched files so that the worker is re-built only when the content is changed.

This PR was initiated by the fact that the usage of shouldTransformCachedModule makes it difficult to make the plugins performant (rolldown/rolldown#4389).

refs #11919, #14712

@sapphi-red sapphi-red added p2-nice-to-have Not breaking anything but nice to have (priority) feat: web workers labels Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: web workers p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant