All Questions
Tagged with svelte-3 web-component
6 questions
9
votes
1
answer
2k
views
How to compile Svelte 3 components into IIFE's that can be used in vanilla js
I am making a web component in Vanilla JS that use a hidden select in the background and a div and ul>li in front. It became a bit complex with fetching data from an api, ect, so I transitioned to ...
1
vote
1
answer
683
views
Multiple instances of a web component compiled by Svelte 3
I have managed to create a web component using Svelte 3 that show a list of products fetched from an API. In this component I have an action that checks if the product-element is inside another (...
3
votes
1
answer
1k
views
Using Svelte JS framework with a Web Component library, how can I accomplish two-binding with the custom elements via the bind:value directive?
Note: There is a GitHub issue open on the Svelte repo for this very question.
https://github.com/sveltejs/svelte/issues/4838
While I understand that this may or may not someday become a feature of ...
4
votes
2
answers
2k
views
Svelte: Web components passing prop camel case
I am using web components generated by svelte.
I have props defined in camel case (someType) and the expectation was that the following should work but doesn't
<my-web-c some-type="stringVal&...
3
votes
1
answer
4k
views
Svelte.js component property is undefined within script tag with customElement: true
This might possibly be how Svelte.js works, but I'm curious if I'm doing something wrong, or if there's a workaround.
If I set compiler option customElement: true, properties passed to components are ...
2
votes
0
answers
161
views
outros$1 undefined errors with svelte web components (custom elements)
when building web components, aka named custom elements, with svelte 3.19.2, i am getting outros$1 undefined error just before outros$1.c.push when i try and use {#if} or {#await} but {#each} is ...