Subwaytime / vite-aliases

Alias auto generation for Vite
https://www.npmjs.com/package/vite-aliases
MIT License
213 stars 13 forks source link

Chokidar file system watcher never stopped. #37

Closed Qocotzxin closed 2 years ago

Qocotzxin commented 2 years ago

While using vitest to run my suite of tests I found an issue where, once the test run had finished, it couldn't properly shut down. After some research I found out the problem was this library. Another user took a look into this plugin source code and found that the chokidar fs watcher was never stopping which prevented vitest from closing.

Leaving the related issue here for background.

Thanks!

Subwaytime commented 2 years ago

Hey there! Thanks for the Report, ill look into it. chokidar is hooked into the dev-servermode of vite, so there might be changes to vitestthat arent the same as in vite.