Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cross Compilation Svelte + Custom Elements (remove <svelte:options> from output)#16144

Unanswered
vekunz asked this question inQ&A
Discussion options

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.

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@vekunz

[8]ページ先頭

©2009-2025 Movatter.jp