Skip to content

Dynamic imported components - Stylesheets not getting inlined #13670

Open
@keshavdhawan281

Description

@keshavdhawan281

Describe the bug

As mentioned in sveltejs/svelte#15496

We were using inlineStyleThreshold to inline css before migration from svelte 4 to svelte 5. With this migration, we also updated sveltekit from 2.15.2 to the latest version.

This broke inline css for the cases where components are dynamically imported.

Came across this PR #13068
where we are filtering out dynamic imported stylesheets. But the case where components are dynamically imported during SSR, it should be considered to be inlined.

Reproduction

https://stackblitz.com/edit/sveltejs-kit-template-default-ethyrdbh

Logs

NA

System Info

NA

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions