Closed
Description
Describe the problem
I spent 2 weeks trying to port my project from setencil to svelte only to find out that the "customElement" feature is not ready for productive use at the current state.
Don't get me wrong svelte is a nice tool for a lot of projects but the "Web Component" feature is obviously experimental and that should be definitely mentioned in the docs to prevent frustrated developers.
Blocker Issues:
- Nested slots are never rendered | Nested Custom Element slots are never rendered #3128
- Nested components can't display styles | Nested child components lose their css when the parent is used as a custom element #4274
- :global(...) styles not working | :global(...) not working in custom elements #2969
- Transitions do not work in custom Elements | Transitions in custom Elements #1825
- Context API doesn't work | Context API doesn't work for custom elements #3422
Nice to have:
- Hyphenated properties not supported Allow hyphenated properties to be defined in a component #3852
- Storybook (@storybook/svelte) can't handle svelte web components out of the box
- Allow embedding styles in the DOM | Optionally embed styles in the DOM if the styles are in JS. #4039
Describe the proposed solution
Set the "customElement" feature in its current state as experimental.
Alternatives considered
Fix all essential bugs of the "customElement" feature.
Importance
i cannot use svelte without it
Metadata
Metadata
Assignees
Labels
No labels