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

feat!: hide data-v-inspector in html #81

Merged
merged 4 commits into from
Oct 3, 2023
Merged

feat!: hide data-v-inspector in html #81

merged 4 commits into from
Oct 3, 2023

Conversation

antfu
Copy link
Collaborator

@antfu antfu commented Oct 2, 2023

Now, for most cases, we no longer render data-v-inspector in the HTML. This is done by hijacking vnode and passing a non-enumerable prop for the overlay client to grab. The previous approach still works as a fallback.


This could be a breaking change as the vite plugin now exposes an array of two plugins.

And since the unplugin version seems to be only supporting Vite, I guess it might be better to deprecate that package maybe? For Nuxt usage, I think we could recommend using Nuxt DevTools.

@webfansplz
Copy link
Owner

Seems the cleanHtml option is broken in nuxt and we should also find a way to support Vue2 😅

@antfu
Copy link
Collaborator Author

antfu commented Oct 3, 2023

Disabled it in Vue 2 for now.

And yeah, for Nuxt it's due to the __vnode info being lost on SSR. I'll see if there is a workaround

@antfu
Copy link
Collaborator Author

antfu commented Oct 3, 2023

This PR to Vue core fixes for Nuxt: vuejs/core#9328

@antfu
Copy link
Collaborator Author

antfu commented Oct 3, 2023

I guess we could proceed with this PR, as it's not a bit here. Once Vue shipped it in a new version, the bug will be automatically fixed.

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

Successfully merging this pull request may close these issues.

2 participants