Skip to content

Rename legacy.componentApi to compatibility.classComponent #12112

@Rich-Harris

Description

@Rich-Harris

Describe the problem

We replaced the Svelte 4 legacy option (which added IE compatibility at the cost of bloatier output) with a completely different legacy option. Per #12100, this is a bit confusing.

Describe the proposed solution

Rename legacy.componentApi to compatibility.classComponent (but keep classComponent deprecated).

I'm not 100% sure this is the right name, since it also affects SSR output (which was never a class, just an object), so am open to alternatives.

Importance

nice to have

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions