Skip to content

Commit 83d461f

Browse files
site: clarify preserveWhitespace (#4341)
* site: clarify preserveWhitespace * Update 04-compile-time.md Co-authored-by: Rich Harris <[email protected]>
1 parent 5076613 commit 83d461f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/content/docs/04-compile-time.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The following options can be passed to the compiler. None are required:
7676
| `css` | `true` | If `true`, styles will be included in the JavaScript class and injected at runtime. It's recommended that you set this to `false` and use the CSS that is statically generated, as it will result in smaller JavaScript bundles and better performance.
7777
| `loopGuardTimeout` | 0 | A `number` that tells Svelte to break the loop if it blocks the thread for more than `loopGuardTimeout` ms. This is useful to prevent infinite loops. **Only available when `dev: true`**
7878
| `preserveComments` | `false` | If `true`, your HTML comments will be preserved during server-side rendering. By default, they are stripped out.
79-
| `preserveWhitespace` | `false` | If `true`, whitespace inside and between elements is kept as you typed it, rather than optimised by Svelte.
79+
| `preserveWhitespace` | `false` | If `true`, whitespace inside and between elements is kept as you typed it, rather than removed or collapsed to a single space where possible.
8080
| `outputFilename` | `null` | A `string` used for your JavaScript sourcemap.
8181
| `cssOutputFilename` | `null` | A `string` used for your CSS sourcemap.
8282
| `sveltePath` | `"svelte"` | The location of the `svelte` package. Any imports from `svelte` or `svelte/[module]` will be modified accordingly.

0 commit comments

Comments
 (0)