webfansplz / vite-plugin-vue-devtools

Vite + Vue DevTools = DX 🔥
MIT License
1.62k stars 72 forks source link

Support for Nuxt SSR apps #73

Open TechAkayy opened 1 year ago

TechAkayy commented 1 year ago

I would like to use this package instead of the nuxt devtools primarily for the ability to see component tree & state (as an alternative to browser based vue-devtools extension).

Are you able to advise why your plugin wouldn't work for Nuxt SSR apps? As in, I did look into the code and didn't find anything specific that makes it incompatible with Nuxt SSR apps. I would like to learn what I missed looking.

Thanks in advance.

webfansplz commented 1 year ago

The reason SSR are not currently supported is actually because Nuxt DevTools is more recommended. Thanks for liking this, I'll be thinking about how it's compatible with SSR.

TechAkayy commented 1 year ago

Thanks @webfansplz. There is one vue core fix that's pending merge that already impacts vue-devtool's ability to identify parent components of hydrated elements. This is for your reference, just in case you happen to explore SSR support for your vite-devtools. Cheers!

https://github.com/vuejs/devtools/issues/2004

https://github.com/vuejs/core/pull/7556