New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: vite-node watch mode #890
Conversation
✔️ Deploy Preview for vitest-dev ready! 🔨 Explore the source changes: 686093a 🔍 Inspect the deploy log: https://app.netlify.com/sites/vitest-dev/deploys/62326c639f698e0009e0b32d 😎 Browse the preview: https://deploy-preview-890--vitest-dev.netlify.app |
When will this be release? Is there a way for me to use it now? Eager to try this out! |
I think I need to improve the update process |
packages/vite-node/src/cli.ts
Outdated
console.log(dim(`[update] ${path}`)) | ||
// because module don't had `import.meta.hot.accept` | ||
// only can refresh all module | ||
runner.moduleCache.clear() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think at least we should keep the cache of node_modules.
@antfu Should we add unit tests in the test directory for vite-node? |
fix: #889
don't close server when watch mode is open.And delete the moduleCache when the module refresh.