johnsoncodehk / vite-plugin-vue-component-preview

Vite plugin for preview Vue component
https://www.npmjs.com/package/vite-plugin-vue-component-preview
MIT License
124 stars 5 forks source link

fix: move `return id` inside if statement #22

Closed JoJk0 closed 5 months ago

JoJk0 commented 1 year ago

Move return id inside if statement so handler is only handling preview pages and nothing else. This solves conflict with dynamicRoutes in vitepress

https://github.com/vuejs/vitepress/blob/main/src/node/plugins/dynamicRoutesPlugin.ts#L98

johnsoncodehk commented 5 months ago

Sorry I missed this PR, thank you so much!