@rsbuild/plugin-type-check 1.3.2 → 1.3.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 CHANGED
@@ -14,7 +14,7 @@ An Rsbuild plugin to run TypeScript type checker in a separate process.
14
14
 
15
15
  ## Introduction
16
16
 
17
- This plugin internally integrates with [ts-checker-rspack-plugin](https://github.com/rspack-contrib/ts-checker-rspack-plugin).
17
+ This plugin internally integrates with [ts-checker-rspack-plugin](https://github.com/rstackjs/ts-checker-rspack-plugin).
18
18
 
19
19
  The type checking logic of `ts-checker-rspack-plugin` is similar to the native `tsc` command of TypeScript. It automatically reads the configuration options from `tsconfig.json` and can also be modified via the configuration options provided by the Type Check plugin.
20
20
 
@@ -100,7 +100,7 @@ pluginTypeCheck({
100
100
 
101
101
  ### tsCheckerOptions
102
102
 
103
- Modify the options of `ts-checker-rspack-plugin`, please refer to [ts-checker-rspack-plugin - README](https://github.com/rspack-contrib/ts-checker-rspack-plugin#readme) to learn about available options.
103
+ Modify the options of `ts-checker-rspack-plugin`, please refer to [ts-checker-rspack-plugin - README](https://github.com/rstackjs/ts-checker-rspack-plugin#readme) to learn about available options.
104
104
 
105
105
  - **Type:** `Object | Function`
106
106
  - **Default:**
@@ -213,7 +213,9 @@ pluginTypeCheck({
213
213
 
214
214
  ## Performance Optimization
215
215
 
216
- Type checking has a significant performance overhead. You can refer to the [Performance Guide](https://github.com/microsoft/TypeScript/wiki/Performance) in the official TypeScript documentation for performance optimization.
216
+ This plugin delegates type checking to TypeScript, so overall performance is mostly determined by `tsc` itself.
217
+
218
+ If you need faster type checks, start by optimizing your TypeScript setup using the [official TypeScript performance guide](https://github.com/microsoft/TypeScript/wiki/Performance).
217
219
 
218
220
  For example, properly configuring the `include` and `exclude` scopes in `tsconfig.json` can significantly reduce unnecessary type checking and improve TypeScript performance:
219
221
 
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const __rslib_import_meta_url__ = /*#__PURE__*/ function() {
3
- return 'undefined' == typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
3
+ return "u" < typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
4
4
  }();
5
5
  var __webpack_require__ = {};
6
6
  (()=>{
@@ -25,7 +25,7 @@ var __webpack_require__ = {};
25
25
  })();
26
26
  (()=>{
27
27
  __webpack_require__.r = (exports1)=>{
28
- if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
28
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
29
29
  value: 'Module'
30
30
  });
31
31
  Object.defineProperty(exports1, '__esModule', {
@@ -93,7 +93,7 @@ const pluginTypeCheck = (options = {})=>({
93
93
  logger: {
94
94
  log () {},
95
95
  error (message) {
96
- console.error(message.replace(/ERROR/g, 'Type Error'));
96
+ console.error(message.replace(/ERROR/g, 'Type Error').replace(/WARNING/g, 'Type Warning'));
97
97
  }
98
98
  }
99
99
  };
@@ -111,10 +111,10 @@ const pluginTypeCheck = (options = {})=>({
111
111
  });
112
112
  exports.PLUGIN_TYPE_CHECK_NAME = __webpack_exports__.PLUGIN_TYPE_CHECK_NAME;
113
113
  exports.pluginTypeCheck = __webpack_exports__.pluginTypeCheck;
114
- for(var __webpack_i__ in __webpack_exports__)if (-1 === [
114
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
115
115
  "PLUGIN_TYPE_CHECK_NAME",
116
116
  "pluginTypeCheck"
117
- ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
117
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
118
118
  Object.defineProperty(exports, '__esModule', {
119
119
  value: true
120
120
  });
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ export type PluginTypeCheckerOptions = {
10
10
  enable?: boolean;
11
11
  /**
12
12
  * To modify the options of `ts-checker-rspack-plugin`.
13
- * @see https://github.com/rspack-contrib/ts-checker-rspack-plugin#readme
13
+ * @see https://github.com/rstackjs/ts-checker-rspack-plugin#readme
14
14
  */
15
15
  tsCheckerOptions?: ConfigChain<TsCheckerOptions>;
16
16
  /**
package/dist/index.js CHANGED
@@ -49,7 +49,7 @@ const pluginTypeCheck = (options = {})=>({
49
49
  logger: {
50
50
  log () {},
51
51
  error (message) {
52
- console.error(message.replace(/ERROR/g, 'Type Error'));
52
+ console.error(message.replace(/ERROR/g, 'Type Error').replace(/WARNING/g, 'Type Warning'));
53
53
  }
54
54
  }
55
55
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-type-check",
3
- "version": "1.3.2",
4
- "repository": "https://github.com/rspack-contrib/rsbuild-plugin-type-check",
3
+ "version": "1.3.4",
4
+ "repository": "https://github.com/rstackjs/rsbuild-plugin-type-check",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "exports": {
@@ -36,32 +36,32 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "deepmerge": "^4.3.1",
39
- "ts-checker-rspack-plugin": "^1.2.1",
39
+ "ts-checker-rspack-plugin": "^1.3.0",
40
40
  "json5": "^2.2.3",
41
41
  "reduce-configs": "^1.1.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@biomejs/biome": "^1.9.4",
45
- "@playwright/test": "^1.57.0",
46
- "@rsbuild/core": "^1.6.11",
47
- "@rslib/core": "^0.18.2",
45
+ "@playwright/test": "^1.58.2",
46
+ "@rsbuild/core": "^1.7.3",
47
+ "@rslib/core": "^0.19.6",
48
48
  "@types/fs-extra": "^11.0.4",
49
- "@types/node": "^24.10.1",
50
- "fs-extra": "^11.3.2",
49
+ "@types/node": "^24.10.13",
50
+ "fs-extra": "^11.3.3",
51
51
  "nano-staged": "^0.9.0",
52
- "playwright": "^1.57.0",
52
+ "playwright": "^1.58.2",
53
53
  "simple-git-hooks": "^2.13.1",
54
54
  "typescript": "^5.9.3"
55
55
  },
56
56
  "peerDependencies": {
57
- "@rsbuild/core": "1.x"
57
+ "@rsbuild/core": "^1.0.0 || ^2.0.0-0"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "@rsbuild/core": {
61
61
  "optional": true
62
62
  }
63
63
  },
64
- "packageManager": "pnpm@10.24.0",
64
+ "packageManager": "pnpm@10.30.1",
65
65
  "publishConfig": {
66
66
  "access": "public",
67
67
  "registry": "https://registry.npmjs.org/"