Skip to content

Commit

Permalink
docs: explain skipLibCheck (#7785)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Apr 18, 2022
1 parent 54e9cdd commit 788d2ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide/features.md
Expand Up @@ -53,6 +53,8 @@ It is because `esbuild` only performs transpilation without type information, it

You must set `"isolatedModules": true` in your `tsconfig.json` under `compilerOptions`, so that TS will warn you against the features that do not work with isolated transpilation.

However, some libraries (e.g. [`vue`](https://github.com/vuejs/core/issues/1228)) don't work well with `"isolatedModules": true`. You can use `"skipLibCheck": true` to temporarily suppress the errors until it is fixed upstream.

#### `useDefineForClassFields`

Starting from Vite 2.5.0, the default value will be `true` if the TypeScript target is `ESNext`. It is consistent with the [behavior of `tsc` 4.3.2 and later](https://github.com/microsoft/TypeScript/pull/42663). It is also the standard ECMAScript runtime behavior.
Expand Down

0 comments on commit 788d2ec

Please sign in to comment.