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

Document how to use TypeScript #229

Open
fregante opened this issue Oct 4, 2024 · 1 comment
Open

Document how to use TypeScript #229

fregante opened this issue Oct 4, 2024 · 1 comment

Comments

@fregante
Copy link

fregante commented Oct 4, 2024

The page https://svelte.dev/docs/typescript#setup-other-build-tools points users to the root of this repo, which lacks any mention of TypeScript entirely.

It would be great to see how to configure the preprocessor to enable TS support

@fregante
Copy link
Author

fregante commented Oct 4, 2024

In my case all I needed was:

import { sveltePreprocess } from 'svelte-preprocess';

and

svelte({
	preprocess: sveltePreprocess()
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant