Skip to content

Commit f908e2b

Browse files
committed
Add typescript section
1 parent 89aba0e commit f908e2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/migration-guide.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
<!-- code_chunk_output -->
66

7-
- [Migration Guide](#migration-guide)
87
- [From `v3` to `v4`](#from-v3-to-v4)
98
- [Prepending content to `scss`](#prepending-content-to-scss)
109
- [Executing some function before preprocessing](#executing-some-function-before-preprocessing)
@@ -88,4 +87,6 @@ sveltePreprocess({
8887

8988
### Type-checking components
9089

91-
> TODO
90+
In `v3`, `svelte-preprocess` was able to type-check Svelte components. However, giving the specifics of the structure of a Svelte component and how the `script` and `markup` contents are related, type-checking was sub-optimal.
91+
92+
In `v4`, your TypeScript code will only be transpiled into JavaScript, with no type-checking whatsoever. We're moving the responsibility of type-checking to tools better fit to handle it, such as [`svelte-check`](https://www.npmjs.com/package/svelte-check), for CLI and CI usage, and the [VS Code](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode) extension, for type-checking while developing.

0 commit comments

Comments
 (0)