Skip to content

Commit

Permalink
Add typescript section
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisermann committed Jul 7, 2020
1 parent 89aba0e commit f908e2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

<!-- code_chunk_output -->

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

### Type-checking components

> TODO
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.

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 comments on commit f908e2b

Please sign in to comment.