Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

REPL: importing 'svelte' returns undefined #299

@Conduitry

Description

@Conduitry

https://svelte.technology/repl?version=2.6.4&gist=29c93c880013a472c3b079afaa720c2a

The above code works if you download a .zip and run it locally, but in the REPL, after import svelte from 'svelte', svelte is undefined. The inner workings of the REPL's module resolution and bundling are a little mysterious to me, but evidently something is getting confused when importing 'svelte'.

cc @burningTyger

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