diff --git a/.changeset/big-months-shout.md b/.changeset/big-months-shout.md new file mode 100644 index 0000000000..3d8ca0045e --- /dev/null +++ b/.changeset/big-months-shout.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +chore: drop dead code that make TSGO fail diff --git a/packages/svelte/src/internal/client/reactivity/props.js b/packages/svelte/src/internal/client/reactivity/props.js index c2f3698809..274d780b1e 100644 --- a/packages/svelte/src/internal/client/reactivity/props.js +++ b/packages/svelte/src/internal/client/reactivity/props.js @@ -91,10 +91,7 @@ const rest_props_handler = { */ /*#__NO_SIDE_EFFECTS__*/ export function rest_props(props, exclude, name) { - return new Proxy( - DEV ? { props, exclude, name, other: {}, to_proxy: [] } : { props, exclude }, - rest_props_handler - ); + return new Proxy(DEV ? { props, exclude, name } : { props, exclude }, rest_props_handler); } /**