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

frontend/svelte: warn on ineffective style tag #142

Open
terrablue opened this issue Jul 14, 2024 · 0 comments
Open

frontend/svelte: warn on ineffective style tag #142

terrablue opened this issue Jul 14, 2024 · 0 comments
Labels
dx developer experience modules modules / ecosystem

Comments

@terrablue
Copy link
Contributor

If the style tag in a Svelte component is empty or its rules do not style any of the tags in the same component, Svelte will remove it, resulting in an empty string style part. This previously led to an error, fixed in cfe7a92 (0.31) and cff72a2 (master).

In the future, we want to do even better and warn you when the style tag is effective (either empty, or none of its rules apply). This should be a buildtime warning.

cc @ralyodio

@terrablue terrablue added this to the 0.32.0 milestone Jul 14, 2024
@terrablue terrablue added dx developer experience modules modules / ecosystem labels Jul 14, 2024
@terrablue terrablue modified the milestones: 0.32.0, 0.33.0 Jul 31, 2024
@terrablue terrablue removed this from the 0.33.0 milestone Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx developer experience modules modules / ecosystem
Projects
None yet
Development

No branches or pull requests

1 participant