Skip to content

Space before @html breaks the build #13933

@mulder999

Description

@mulder999

Describe the bug

Rune components do not support space between { and @html, whereas legacy do.

Reproduction

  1. Create a rune component that has { @html "ABCD"}
  2. Run npm run build

Build fails with:

error during build:
undefined

Logs

No response

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13900K
    Memory: 36.41 GB / 63.76 GB
  Binaries:
    Node: 22.10.0 - ~\AppData\Local\Volta\tools\image\node\22.10.0\node.EXE
    Yarn: 4.4.1-git.20240825.hash-b2f315f6 - ~\AppData\Local\Volta\tools\image\yarn\4.4.1-git.20240825.hash-b2f315f6\bin\yarn.CMD
    npm: 10.9.0 - M:\Git\yoursky.blue\ys-www\node_modules\.bin\npm.CMD
  Browsers:
    Chrome: 130.0.6723.70
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    svelte: ^5 => 5.1.2

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