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

Consider using unplugin-vue-router #510

Closed
3 tasks done
Dimava opened this issue Oct 24, 2023 · 1 comment
Closed
3 tasks done

Consider using unplugin-vue-router #510

Dimava opened this issue Oct 24, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Dimava
Copy link

Dimava commented Oct 24, 2023

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

  • if it worth replacing vite-plugin-pages with unplugin-vue-router now
  • if it worth replacing vite-plugin-pages with unplugin-vue-router after unplugin-vue-router reaches v1.0

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

@Dimava Dimava added the enhancement New feature or request label Oct 24, 2023
@antfu
Copy link
Member

antfu commented Nov 2, 2023

Definitely, PR welcome :)

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

No branches or pull requests

2 participants