File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 11/* global window, document */
22import * as svelteInternal from 'svelte/internal'
3+ // NOTE from 3.38.3 (or so), insert was carrying the hydration logic, that must
4+ // be used because DOM elements are reused more (and so insertion points are not
5+ // necessarily added in order); then in 3.40 the logic was moved to
6+ // insert_hydration, which is the one we must use for HMR
37const svelteInsert = svelteInternal . insert_hydration || svelteInternal . insert
4- if ( ! svelteInsert ) {
5- throw new Error ( 'failed to find insert_hydration and insert in svelte/internal' )
8+ if ( ! svelteInsert ) {
9+ throw new Error (
10+ 'failed to find insert_hydration and insert in svelte/internal'
11+ )
612}
713
814import ErrorOverlay from './overlay.js'
You can’t perform that action at this time.
0 commit comments