Skip to content

Commit e2c47e1

Browse files
committed
fix compatibility with Svelte 3.38.3
see: sveltejs/svelte#6506
1 parent efb844b commit e2c47e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runtime/proxy-adapter-dom.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/* global window, document */
2+
import { insert } from 'svelte/internal'
3+
24
import ErrorOverlay from './overlay.js'
35

46
const removeElement = el => el && el.parentNode && el.parentNode.removeChild(el)
@@ -50,7 +52,7 @@ export const adapter = class ProxyAdapterDom {
5052
if (!this.insertionPoint) {
5153
this.insertionPoint = document.createComment(debugName)
5254
}
53-
target.insertBefore(this.insertionPoint, anchor)
55+
insert(target, this.insertionPoint, anchor)
5456
}
5557

5658
rerender() {

0 commit comments

Comments
 (0)