-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Custom elements without tags #2417
Comments
Actually, this is exactly one of my main concerns about CEs in Svelte. Because of global nature of CEs it would be very hard to ship ready-to-use custom element written on Svelte to end developers. |
Sort of related: #1884 |
From my perspective I would expect compiler to throw an error when it generates |
|
I think I guess one thing I'm not completely clear on is whether we'd want to require |
My thinking was that
|
👍 I like it. |
* warning given on compile if tag is absent * no warning if tag is set to `null`
@Rich-Harris @Conduitry I have several internal components, but only 1 component is a Custom Element and export only this. When run my svelte app I get the warning, but I have one question: |
This can be done as a non-breaking change post v3, but I wonder if it should be possible to compile a custom element without a tag — i.e. it doesn't add the
line automatically, but instead leaves it up to the consumer.
The text was updated successfully, but these errors were encountered: