Skip to content

preserveWhitespace strips prefix space #4731

Closed
@bwbroersma

Description

@bwbroersma

Describe the bug
The compiler option preserveWhitespace: true strips prefix space:

<h1> Hello {name}!</h1>

To Reproduce
See this repo. With minimal changes from the svelte/template. This is my output with missing prefix space.

Expected behavior
Keep the prefix whitespace in the SSR.

Information about your Svelte project:
svelte-3.21.0 & rollup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerChanges relating to the compiler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions