Skip to content

Commit 62ce534

Browse files
authored
docs: clarify changes to legacy flag
1 parent 97e5b52 commit 62ce534

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ As before, you can disable whitespace trimming by setting the `preserveWhitespac
142142

143143
## More recent browser required
144144

145-
Svelte now use Mutation Observers instead of IFrames to measure dimensions for `bind:clientWidth/clientHeight/offsetWidth/offsetHeight`. It also no longer listens to the `change` event on range inputs. Lastly, the `legacy` option was removed (or rather, replaced with a different set of settings).
145+
Svelte now use Mutation Observers instead of IFrames to measure dimensions for `bind:clientWidth/clientHeight/offsetWidth/offsetHeight`. It also no longer listens to the `change` event on range inputs. Lastly, the `legacy` option can no longer be used to generate output compatible with IE 9 and 10.
146146

147147
## Changes to compiler options
148148

149149
- The `false`/`true` (already deprecated previously) and the `"none"` values were removed as valid values from the `css` option
150-
- The `legacy` option was repurposed
150+
- The `legacy` option no longer controls support for legacy browsers, but now instead controls generating output with backwards compatibility for prior versions of Svelte
151151
- The `hydratable` option has been removed. Svelte components are always hydratable now
152152
- The `enableSourcemap` option has been removed. Source maps are always generated now, tooling can choose to ignore it
153153
- The `tag` option was removed. Use `<svelte:options customElement="tag-name" />` inside the component instead

0 commit comments

Comments
 (0)