You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro uses a series of comments for hydration some auto-generated and some constant. However, the pattern is that they appear before an astro-island tag, and they end by astro:end. Is there a way to detect these and skip the removal of comments?
Astro uses a series of comments for hydration some auto-generated and some constant. However, the pattern is that they appear before an
astro-island
tag, and they end byastro:end
. Is there a way to detect these and skip the removal of comments?Here's an example:
https://github.com/withastro/astro/blob/e457bb2e90f876d1ae1aa7272d37866e2583e0c2/packages/astro/src/runtime/server/render/component.ts#L322
To keep hydration working, I have disabled
removeComments
as ofastro-htmlnano v1.4.2
.aminya/astro-plugins#30
The text was updated successfully, but these errors were encountered: