Hey folks! I'm working on a project that could really benefit from Astro's tooling, but I'm stuck on one specific problem.
Ultimately I'm trying to build a project that uses web components, but my workflow really benefits from being able to use HMR to maintain state in a component (looks like vue and svelte renderers support this fine). That being said, this workflow is only important during development. When the site is built I'd prefer none of the components to be "hydrated".
What I'm looking for is something along the lines of a client:dev-only directive. I understand there's an upcoming RFC for custom directives, but maybe someone can point me to a config option that I can use in the meantime?
I've also considered writing a intermediary script that clones my src directory and just removes the directive props during build time but that of course sounds pretty damn hacky. Let me know if you have any other ideas though!