Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Documentation are not generated for a Svelte component when using vite and Typescript #24137

Closed
j3rem1e opened this issue Sep 11, 2023 · 1 comment

Comments

@j3rem1e
Copy link
Contributor

j3rem1e commented Sep 11, 2023

Describe the bug

When using the builder @storybook/svelte-vite or @storybook/sveltekit, the documentation for a component written in Typescript are not generated.

Vite uses esbuild, and esbuild remove comments and jsdoc when transpiling typescript. However, jsdoc is used to extract the documentation.

It works when using sveltePreprocess() instead of vitePreprocess().

To Reproduce

It's visible on the sandbox svelte-vite/default-ts and sveltekit/default-ts. The Button component doesn't have documentation.

System

No response

Additional context

No response

@JReinhold
Copy link
Contributor

JReinhold commented Jun 4, 2024

Closed by #24096

@github-project-automation github-project-automation bot moved this from In Progress to Done in Core Team Projects Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants