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

[svelte] preprocesser adds unnecessary classes #98

Open
s0kil opened this issue Dec 8, 2019 · 0 comments
Open

[svelte] preprocesser adds unnecessary classes #98

s0kil opened this issue Dec 8, 2019 · 0 comments

Comments

@s0kil
Copy link

s0kil commented Dec 8, 2019

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 #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 s0kil changed the title Svelte preprocesser adds unnecessary classes [svelte] preprocesser adds unnecessary classes Dec 8, 2019
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

No branches or pull requests

1 participant