vite-plugin-vue-component-preview
vite-plugin-vue-component-preview copied to clipboard
Update index.ts
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