3 ms·
Yes, the release I've been waiting for. I started to dabble with Svelte v2 right before coming of v3 was announced. Are web component going to happen with v3?
by jarpineh 7y ago
Yes, the release I've been waiting for. I started to dabble with Svelte v2 right before coming of v3 was announced.
Are web component going to happen with v3? I am trying to combine Python server app with Svelte enhanced HTML and got good results on v2. I noticed they are marked as todo: https://svelte.dev/docs#Custom_element_API https://svelte.dev/docs#Custom_element_API
- rich_harris 7y agoIt's only the documentation that's a TODO, you can use them currently. Just pass `customElements: true` to the compiler and specify a tag, either as `tag: 'my-tag'` or in the component itself with `<svelte:options tag="my-tag"/>`. TODO: make shadow DOM optional, and only auto-register if a tag is provided (currently it's required)
- jarpineh 7y agoAh ok. Great to hear!