Skip to content

feat(worker): remove worker chunk if it's detected that it's not referenced#22473

Draft
sapphi-red wants to merge 1 commit into
vitejs:mainfrom
sapphi-red:feat/worker-remove-worker-chunk-if-its-detected-that-its-not-referenced
Draft

feat(worker): remove worker chunk if it's detected that it's not referenced#22473
sapphi-red wants to merge 1 commit into
vitejs:mainfrom
sapphi-red:feat/worker-remove-worker-chunk-if-its-detected-that-its-not-referenced

Conversation

@sapphi-red
Copy link
Copy Markdown
Member

Took a stab with AI if the idea I mentioned can be implemented.

But on second thought, it is possible to remove in this case as the unused dynamic chunk itself is removed and that is analyzable. (in normal cases, it's difficult because the code might be transformed further and is difficult to detect)
#22362 (comment)

I haven't read through the code yet.

refs #22362

@sapphi-red sapphi-red added p2-nice-to-have Not breaking anything but nice to have (priority) feat: web workers labels May 18, 2026
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