reshadow icon indicating copy to clipboard operation
reshadow copied to clipboard

[svelte] preprocesser adds unnecessary classes

Open s0kil opened this issue 4 years ago • 0 comments

From:

<svelte:head>
  <title>Home | Website</title>
</svelte:head>

Into:

<svelte:head class={__styled__.styles["__svelte:head"]} style={__styles__.$$style}>
  <title class={__styled__.styles["__title"]}>Home | Website</title>
</svelte:head>

This is related to https://github.com/lttb/reshadow/issues/97

The preprocesser should skip any tags that start with <svelte: /> such as:

  • <svelte:self>
  • <svelte:component>
  • <svelte:window>
  • <svelte:body>
  • <svelte:head>
  • <svelte:options>

Non of these tags can be styled.

s0kil avatar Dec 08 '19 21:12 s0kil