antfu-collective / vitesse

🏕 Opinionated Vite + Vue Starter Template
https://vitesse.netlify.app/
MIT License
8.79k stars 932 forks source link

Consider using `unplugin-vue-router` #510

Closed Dimava closed 10 months ago

Dimava commented 10 months ago

Clear and concise description of the problem

https://github.com/hannoeru/vite-plugin-pages says:

Vue

🚨Important Notes🚨

We recommend Vue user using unplugin-vue-router instead of this plugin.

unplugin-vue-router is a unplugin library created by @posva, same auther as vue-router. It provide almost same feature as vite-plugin-pages but better intergration with vue-router, include some cool feature like auto generate route types base on your route files to provide autocomplete for vue-router.

https://github.com/posva/unplugin-vue-router however says:

⚠️ This package is still experimental. If you found any issue, design flaw, or have ideas to improve it, please, open an issue or a Discussion.

Suggested solution

Check out https://github.com/posva/unplugin-vue-router, compare it to vite-plugin-pages, and consider

Alternative

If it would be concluded there is no point in migration, write the reasoning in a comment and close the issue, so people can find the issue and don't ask the same question again

Additional context

No response

Validations

antfu commented 10 months ago

Definitely, PR welcome :)