diff --git a/src/runtime/internal/Component.ts b/src/runtime/internal/Component.ts index fba7f0faa7..3e48010547 100644 --- a/src/runtime/internal/Component.ts +++ b/src/runtime/internal/Component.ts @@ -177,7 +177,7 @@ export function init(component, options, instance, create_fragment, not_equal, p } export let SvelteElement; -if (is_function(HTMLElement)) { +if (typeof HTMLElement === 'function') { SvelteElement = class extends HTMLElement { $$: T$$; $$set?: ($$props: any) => void; diff --git a/src/runtime/internal/index.ts b/src/runtime/internal/index.ts index e1dd2a1fcf..bae1f00804 100644 --- a/src/runtime/internal/index.ts +++ b/src/runtime/internal/index.ts @@ -13,3 +13,4 @@ export * from './transitions'; export * from './utils'; export * from './Component'; export * from './dev'; +export * from './constants'; diff --git a/src/runtime/motion/spring.ts b/src/runtime/motion/spring.ts index 19b8bdf170..58fa02c96f 100644 --- a/src/runtime/motion/spring.ts +++ b/src/runtime/motion/spring.ts @@ -1,7 +1,6 @@ import { Readable, writable } from 'svelte/store'; -import { loop, now, Task } from 'svelte/internal'; +import { loop, now, Task, resolved_promise } from 'svelte/internal'; import { is_date } from './utils'; -import { resolved_promise } from 'svelte/internal/constants'; interface TickContext { inv_mass: number; diff --git a/src/runtime/motion/tweened.ts b/src/runtime/motion/tweened.ts index 4d62caf527..a63ae3d986 100644 --- a/src/runtime/motion/tweened.ts +++ b/src/runtime/motion/tweened.ts @@ -1,8 +1,7 @@ import { Readable, writable } from 'svelte/store'; -import { assign, loop, now, Task, is_function } from 'svelte/internal'; +import { assign, loop, now, Task, is_function, resolved_promise } from 'svelte/internal'; import { linear } from 'svelte/easing'; import { is_date } from './utils'; -import { resolved_promise } from 'svelte/internal/constants'; function get_interpolator(a, b) { if (a === b || a !== a) return () => a;