Skip to content
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

[HMR] New page and routes without server restart #66

Closed
vintlucky777 opened this issue May 19, 2021 · 5 comments · Fixed by vitejs/vite#3500
Closed

[HMR] New page and routes without server restart #66

vintlucky777 opened this issue May 19, 2021 · 5 comments · Fixed by vitejs/vite#3500

Comments

@vintlucky777
Copy link

Currently if I have a server running, I can edit current pages and live reload works like a charm.
I can also add links into navigational component and they appear instantly.

However when I add new page files, these are not picked up until the server is restarted.
Is it possible to pick up pages and routes without restarting the server?

@brillout
Copy link
Member

I will have a look at it.

@brillout
Copy link
Member

The root cause is in Vite's source code. I'm working on a PR.

@brillout
Copy link
Member

PRs are done, now waiting on Vite's team to merge & release.

@brillout brillout added awaiting ⏳ and removed enhancement ✨ New feature or request labels May 20, 2021
@brillout brillout changed the title New page and routes without server restart [HMR] New page and routes without server restart May 21, 2021
@brillout
Copy link
Member

Both PR are merged. Vite releases on Monday.

@brillout
Copy link
Member

Released in 0.1.0-beta.45.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants