vite icon indicating copy to clipboard operation
vite copied to clipboard

fix: properly close optimizer on server restart

Open patak-cat opened this issue 4 years ago • 1 comments

Description

Possible fix for #9986


What is the purpose of this pull request?

  • [x] Bug fix
  • [ ] New Feature
  • [ ] Documentation update
  • [ ] Other

patak-cat avatar Sep 07 '22 15:09 patak-cat

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.

IanVS avatar Sep 07 '22 17:09 IanVS