vite
vite copied to clipboard
fix: properly close optimizer on server restart
Description
Possible fix for #9986
What is the purpose of this pull request?
- [x] Bug fix
- [ ] New Feature
- [ ] Documentation update
- [ ] Other
This does seem to avoid the ENOENT issue reported in https://github.com/vitejs/vite/issues/9986 in my reproduction. However, I'm not sure that it solves the root cause that was triggering the error in the first place, which seems to happen when I have multiple versions of some dependencies in my node_modules. But, I'll try to isolate down that case and make a new issue, and I think this is a good change to make regardless.