3 ms·
Hopefully they recognise their niche and stick to it. I'm particularly interested in Svelte for compiling down to vanilla WebComponents to be used in P2P apps (
by treelovinhippie 7y ago
Hopefully they recognise their niche and stick to it. I'm particularly interested in Svelte for compiling down to vanilla WebComponents to be used in P2P apps (eg Holochain) where you want the end users to be able to modify components themselves.
- ergo14 7y agoSorry, but seems Rich is not too happy with WC', if you want to do use a compiler to vanilla WC's I think stenciljs might be your best option. LitElement is also good - but it is not a compiler. Svelte V3 doesn't even have custom element section documented at all at the time of the writing.
- TehShrike 7y agoSvelte has supported compiling to custom elements for over a year.
- ergo14 7y agoWhere are the docs for that?
- TehShrike 7y agoSee the `customElement` and `tag` compile options https://svelte.dev/docs#svelte_compile https://svelte.dev/docs#svelte_compile Here are the docs from v2 https://v2.svelte.dev/guide#custom-elements https://v2.svelte.dev/guide#custom-elements
- ergo14 7y agoYes but svelte is on v3 - I'm asking about that.
- arxpoetica 7y agoThat first link was to the v3 docs. Here it is again for your convenience: https://svelte.dev/docs#svelte_compile https://svelte.dev/docs#svelte_compile
- ergo14 7y agoThere is also, Custom element API section that is "TODO". Yes I saw those options the first time, but woulnd't you say the documentation is limited ;) if such is the case. So far I see 2 sentences related to the subject, compare that to V2 docs. I will try to see how svelte performs for this, but so far Vue wc-wrapper seems to be the most promising option out of "non-wc first" ecosystems.