Skip to content

Per component compiler options #93

Closed
@glinesbdev

Description

@glinesbdev

Similar to #76 but extended.

While configuring Svelte via Webpack using svelte-loader, I see that you can set compiler options. The option that I am most interested in is customElement. It seems that you can either have Svelte compile down to only custom elements or only Svelte class objects, but not both.

In trying to configure only one component, I came across <svelte:options> which you can specify the tag name of the custom element. Is there a way to selectively compile a Svelte component to a custom element in an "opt-in" style like <svelte:options>?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions