ts-checker-rspack-plugin 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ Big thanks to `fork-ts-checker-webpack-plugin` creators and contributors for the
|
|
|
22
22
|
- Supports modern TypeScript features like [project references](https://www.typescriptlang.org/docs/handbook/project-references.html) and [incremental mode](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#faster-subsequent-builds-with-the---incremental-flag) ✨
|
|
23
23
|
- Displays nice error messages with the [code frame](https://babeljs.io/docs/en/next/babel-code-frame.html) formatter 🌈
|
|
24
24
|
|
|
25
|
-
💡 For Rsbuild projects, use [@rsbuild/plugin-type-check](https://github.com/
|
|
25
|
+
💡 For Rsbuild projects, use [@rsbuild/plugin-type-check](https://github.com/rstackjs/rsbuild-plugin-type-check) to get out-of-the-box experience.
|
|
26
26
|
|
|
27
27
|
## Installation
|
|
28
28
|
|
|
@@ -247,9 +247,11 @@ setting "generateTrace" compiler option. This is an instruction from [microsoft/
|
|
|
247
247
|
|
|
248
248
|
## Enabling incremental mode
|
|
249
249
|
|
|
250
|
-
|
|
250
|
+
TypeScript's "incremental" mode speeds up initial cold-start typechecks keeping an on-disk cache.
|
|
251
251
|
|
|
252
|
-
-
|
|
252
|
+
It does not speed up subsequent subsequent re-typechecking during the runtime of the dev server.
|
|
253
|
+
|
|
254
|
+
To enable incremental mode, set `"compilerOptions.incremental": true` in your `tsconfig.json`:
|
|
253
255
|
|
|
254
256
|
```diff
|
|
255
257
|
{
|
|
@@ -259,7 +261,9 @@ You must both set `"compilerOptions.incremental": true` in your `tsconfig.json`
|
|
|
259
261
|
}
|
|
260
262
|
```
|
|
261
263
|
|
|
262
|
-
|
|
264
|
+
In the past we also recommended to combine incremental mode with specifying `build: true` in `TsCheckerRspackPlugin` settings to enable TypeScript's ["Build" mode](https://www.typescriptlang.org/docs/handbook/project-references.html#build-mode-for-typescript) designed to handle [Project References](https://www.typescriptlang.org/docs/handbook/project-references.html#build-mode-for-typescript).
|
|
265
|
+
|
|
266
|
+
However, "Build" mode causes significant slowdowns for re-typechecks when the dev server is already running, as it switches from TypeScript's in-memory "Watch" mode to "Build" mode. If you need "Build" mode, it can be configured as:
|
|
263
267
|
|
|
264
268
|
```js
|
|
265
269
|
new TsCheckerRspackPlugin({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-checker-rspack-plugin",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Runs typescript type checker and linter on separate process.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rspack",
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"typecheck"
|
|
10
10
|
],
|
|
11
11
|
"bugs": {
|
|
12
|
-
"url": "https://github.com/
|
|
12
|
+
"url": "https://github.com/rstackjs/ts-checker-rspack-plugin/issues"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "https://github.com/
|
|
16
|
+
"url": "https://github.com/rstackjs/ts-checker-rspack-plugin.git"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"files": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"picocolors": "^1.1.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@rspack/core": "^1.0.0",
|
|
46
|
+
"@rspack/core": "^1.0.0 || ^2.0.0-0",
|
|
47
47
|
"typescript": ">=3.8.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|