techniq / svelte-ux

Collection of Svelte components, actions, stores, and utilities to build highly interactive applications.
https://svelte-ux.techniq.dev/
MIT License
706 stars 39 forks source link

Svelte 5: API docs solution #435

Open techniq opened 1 month ago

techniq commented 1 month ago

Since the AST has changed in Svelte 5 (and is not a public API guarantee), currently sveld's ComponentParser does not work, which we use to generate the API docs for each component (LayerChart as well).

Svelte 4 Svelte 5
image image

although the instance AST looks identical for a very basic example:

Svelte 4 Svelte 5
image image
techniq commented 1 month ago

Actually the issue might be that Svelte 5 now natively supports Typescript, but in Svelte 4 it would be preprocessed away (I believe).

image