Skip to content

Svelte 5: multiple imports of the same component stopped working #9630

@GauBen

Description

@GauBen

Describe the bug

// Works:
import Component from './Component.svelte';
import * as data from './Component.svelte';

// Does not work:
import Component, * as data from './Component.svelte';

Reproduction

https://svelte-5-preview.vercel.app/#H4sIAAAAAAAACo2PQWvCQBCF_8o4F22RhJaeYgyIF_9BD10PIZnowmZn2Z2IRfzv7qYQSwXpaZjHezPfu2CnDQUsvi5o656wwI1zuET5dmkJJzJCcQ88-CYpZWi8dlIpq0T3jr3AluO0ZAU6zz3Ms3xSsp8D89Uv-yvUAdpa6uf2GGjYBjaUGT4sUiCTo7aHF2XL_E5hy_v_vIqoPbe609RiIX6g63JqNvn-0Q_ib6GzrFW6NxhSOFam89ghkQmMOLCGj_fVX6bjW7UjYxg-2Zt2VuZReGTbX2838GdvgQEAAA==

Logs

No response

System Info

v5.0.0-next.11

Severity

annoyance

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