Skip to content

Svelte 5: Throw an error when importing svelte/internal/* #11622

@dummdidumm

Description

@dummdidumm

Describe the problem

People have reached into svelte/internal too much in the past. We should discourage it as much as possible and throw a compiler error when someone imports from it. People who reaaaally wanna do it can hide it by importing it from a regular JS file and reexport it.

Describe the proposed solution

Error on svelte/internal/client and svelte/internal/server

Importance

nice to have

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