Skip to content

Svelte 5: Classes not being found when used on components #13828

@matheustavarestrindade

Description

@matheustavarestrindade

Describe the bug

Classes are not being generated when we pass down to components.

example code of class not working:
image

If we change the class to a HTML element it works like a charm:
image

Reproduction

https://svelte.dev/playground/5e9be9c0d62c4e41b7979cbd7df5ef94?version=5.0.5

Logs

No response

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (24) x64 AMD Ryzen 9 5900X 12-Core Processor
    Memory: 105.06 GB / 127.91 GB
  Binaries:
    Node: 20.12.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    bun: 1.1.29 - ~\AppData\Roaming\npm\bun.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    svelte: ^5.0.5 => 5.0.5

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