Skip to content

Commit 7fdce47

Browse files
committed
cleanup
1 parent 17d167f commit 7fdce47

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

packages/svelte/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ await createBundle({
2727
[`${pkg.name}/animate`]: `${dir}/src/animate/public.d.ts`,
2828
[`${pkg.name}/compiler`]: `${dir}/src/compiler/index.js`,
2929
[`${pkg.name}/easing`]: `${dir}/src/easing/index.js`,
30-
[`${pkg.name}/legacy`]: `${dir}/src/legacy/public.d.ts`,
30+
[`${pkg.name}/legacy`]: `${dir}/src/legacy/legacy-client.js`,
3131
[`${pkg.name}/motion`]: `${dir}/src/motion/public.d.ts`,
3232
[`${pkg.name}/server`]: `${dir}/src/server/index.js`,
3333
[`${pkg.name}/store`]: `${dir}/src/store/public.d.ts`,

packages/svelte/src/legacy/public.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/svelte/src/main/public.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// This should contain all the public interfaces (not all of them are actually importable, check current Svelte for which ones are).
22

33
/**
4-
* @deprecated Use `Component` instead. See TODO for more information.
4+
* @deprecated Svelte components were classes in Svelte 4. In Svelte 5, thy are not anymore.
5+
* Use `mount` or `createRoot` instead to instantiate components.
6+
* See [breaking changes](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes)
7+
* for more info.
58
*/
69
export interface ComponentConstructorOptions<
710
Props extends Record<string, any> = Record<string, any>

0 commit comments

Comments
 (0)