-
-
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
<slot let:name={value}> not working in customElement (nor is {#if}, {#each}, etc.) #4402
Comments
Nested customElements are parsed correctly:
So it seems that it's only slot definitions that are defined within HTML files (and it seems that #3128 has been fixed by master...campbeln:master ). |
@campbeln Did you ever find a workaround or fix for this? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi @campbeln I don't think they should, yes is a nice feature, but is a feature of Svelte not Web Components (Custom Elements) Custom element can't do this type of things. Slot is rendered by browser built-in sloting feature, not Svelte. (this will require to include Svelte Compiler (aka Runtime Compiler) in browser (to support {}, {#if} and all other methods) |
Using a |
Custom elements as defined by
<svelte:options tag="custom-element" />
+ rollup.config.js'splugins: [ svelte( { customElement: true } ) ]
are not parsing incoming slot definitions. For example:This issue is keeping us from moving to Svelte.
The text was updated successfully, but these errors were encountered: