-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
base: main
Are you sure you want to change the base?
perf(worker): rebuild only when affected #20559
Conversation
/ecosystem-ci run |
commit: |
📝 Ran ecosystem CI on
✅ astro, quasar, ladle, analogjs, histoire, qwik, sveltekit, rakkas, one, marko, react-router, nuxt, storybook, vite-setup-catalogue, vite-plugin-react, vite-plugin-svelte, vite-plugin-vue, vite-plugin-rsc, vitepress, vitest, vite-plugin-pwa, vuepress, vite-plugin-cloudflare, unocss, waku |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👍
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