You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Currently, I am conducting an experiment to create a component library project with SvelteKit that outputs both Svelte components and Custom Elements (aka Web Components). I have the normal vite.config.ts for the Svelte output and a second vite.config.webcomponent.ts for the Web Component output. So far, this is working.
My question is about the <svelte:options customElement="mf-someview" /> tag in the Svelte file. This tag still exists in the Svelte output (which is probably intended), but is it possible to drop this tag for the Svelte output? For our use-case it would be better if this tag doesn't exists in the Svelte output of this component library.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Currently, I am conducting an experiment to create a component library project with SvelteKit that outputs both Svelte components and Custom Elements (aka Web Components). I have the normal vite.config.ts for the Svelte output and a second vite.config.webcomponent.ts for the Web Component output. So far, this is working.
My question is about the
<svelte:options customElement="mf-someview" />
tag in the Svelte file. This tag still exists in the Svelte output (which is probably intended), but is it possible to drop this tag for the Svelte output? For our use-case it would be better if this tag doesn't exists in the Svelte output of this component library.Beta Was this translation helpful? Give feedback.
All reactions