antfu-collective / vite-ssg

Static site generation for Vue 3 on Vite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support stripe-away slot of `ClientOnly` on SSG

antfu opened this issue · comments

Clear and concise description of the problem

It's common to encounter errors when using client-side only package. Even with <ClientOnly>, the users need to handle that carefully as the import can still be synchronized.

Suggested solution

We do a transform to Vue file that removes the content of <ClientOnly>. Similiar to nuxt/framework#8713

Alternative

No response

Additional context

No response

Validations