fix: don't override `$destroy/set/on` instance methods in dev mode (#18034)

Don't think we need a test for this

Fixes #17988
pull/18041/head
Simon H 2 weeks ago committed by GitHub
parent aba4ab8737
commit 97d45f85c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: don't override `$destroy/set/on` instance methods in dev mode

@ -352,7 +352,7 @@ export function client_component(analysis, options) {
)
);
} else if (dev) {
component_returned_object.push(b.spread(b.call(b.id('$.legacy_api'))));
component_returned_object.unshift(b.spread(b.call(b.id('$.legacy_api'))));
}
const push_args = [b.id('$$props'), b.literal(analysis.runes)];

Loading…
Cancel
Save