diff --git a/.changeset/neat-hats-shop.md b/.changeset/neat-hats-shop.md new file mode 100644 index 000000000000..251c39101243 --- /dev/null +++ b/.changeset/neat-hats-shop.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: import Svelte types from svelte/compiler diff --git a/packages/kit/src/exports/public.d.ts b/packages/kit/src/exports/public.d.ts index 77f15a391898..05fa8d832e2d 100644 --- a/packages/kit/src/exports/public.d.ts +++ b/packages/kit/src/exports/public.d.ts @@ -2,7 +2,7 @@ import 'svelte'; // pick up `declare module "*.svelte"` import 'vite/client'; // pick up `declare module "*.jpg"`, etc. import '../types/ambient.js'; -import { CompileOptions } from 'svelte/types/compiler/interfaces'; +import { CompileOptions } from 'svelte/compiler'; import { AdapterEntry, CspDirectives,