-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Support for self-closing tags #299
Comments
The parser(parse5) we use doesn't recognize the self-closing style tag. probably because it's not valid HTML. Need to find a way to work around it.
|
If it's only about finding the script and styles tag there, we could do the same as in extractTag in |
@dummdidumm what about we also use the preprocess regex in the compiler to remove style in |
Good idea! It's only about blanking them out, finding the top level script is done elsewhere. |
I started implementing this for |
As of Svelte v3.24.0, support has been added for self-closing tags: sveltejs/svelte#5080.
However when implementing this, a syntax error is shown, the build is working just fine.
I do not know if this is the correct place to file this bug, or prettier-plugin-svelte so please guide me.
Thanks
The text was updated successfully, but these errors were encountered: