fix(build): emptyOutDir should happen for watch rebuilds#22207
fix(build): emptyOutDir should happen for watch rebuilds#22207sapphi-red merged 3 commits intovitejs:mainfrom
Conversation
|
Why choose not to run it for optimization? It lends Rollup's plugin interface so it should prioritize compatibility IMO, and optimizations come additively. |
|
I assumed there's a significant performance difference. @IWANABETHATGUY Would you elaborate the rationale behind the decision? |
|
I forgot to mention but we still need to use |
|
Some notes:
|
Ok yeah that makes sense to me, not blocking this PR then.
Thanks, I think all that makes sense to me. It is indeed rare for the options hook to change between watch reruns, and should be fine if it's "cached" between runs. |
Rollup seems to run
optionshook for rebuilds, but Rolldown doesn't seem to.fixes #22205
refs rolldown/rolldown#9053