fix: `HMR_ANCHOR` use operations methods

svelte-custom-renderer-single-type-argument
paoloricciuti 5 months ago
parent c82987e0f1
commit b50bdde4bf

@ -117,7 +117,7 @@ export class BranchManager {
if (DEV) {
// Tell hmr.js about the anchor it should use for updates,
// since the initial one will be removed
/** @type {any} */ (offscreen.fragment.lastChild)[HMR_ANCHOR] = this.anchor;
/** @type {any} */ (get_last_child(offscreen.fragment))[HMR_ANCHOR] = this.anchor;
}
// remove the anchor...

Loading…
Cancel
Save