ts-checker-rspack-plugin 1.7.1 → 1.8.0

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
@@ -99,14 +99,17 @@ Supported options include:
99
99
  - [`typescript.configFile`](#configfile)
100
100
  - [`typescript.context`](#context)
101
101
  - [`typescript.build`](#build)
102
- - `typescript.resolveRoot`
103
- - `typescript.typescriptPath`
102
+ - [`typescript.mode`](#mode)
103
+ - [`typescript.resolveRoot`](#resolveroot)
104
+ - [`typescript.typescriptPath`](#typescriptpath)
104
105
  - [`async`](#async)
105
106
  - [`logger`](#logger)
106
107
 
107
108
  It also supports `tsconfig.json` compiler options used by `tsgo`,
108
109
  including `incremental` and `composite`.
109
110
 
111
+ With TypeScript 7.1+, configuring `contentMappers` in `tsconfig.json` automatically enables `--runExternalCode`.
112
+
110
113
  Install TypeScript >= 7.0.0 to enable `tsgo` automatically:
111
114
 
112
115
  ```sh
@@ -127,7 +130,7 @@ Limitations:
127
130
  - [`issue.include`](#include), [`issue.exclude`](#exclude), and [`issue.defaultSeverity`](#defaultseverity) only apply to diagnostics whose checker output can be matched by `file`, `line`, `column`, `code`, and `message`.
128
131
  - [`typescript.configOverwrite`](#configoverwrite), [`typescript.diagnosticOptions`](#diagnosticoptions), and [`typescript.profile`](#profile) are not supported.
129
132
  - TypeScript API-based formatting or filesystem output rewrites are not supported.
130
- - Plugin-controlled declaration or reference emit modes such as `write-dts` and `write-references` are not supported. `tsgo` always runs with `--noEmit`.
133
+ - For `typescript.mode`, `write-dts` is unsupported. In build mode, `readonly` / `write-tsbuildinfo` require an up-to-date project graph built beforehand. Use `write-references` to build unbuilt references; this writes compiler outputs to disk, and the plugin does not clean them.
131
134
  - This integration may change when TypeScript provides a stable JavaScript API for the native checker.
132
135
 
133
136
  ## Options
@@ -3,5 +3,10 @@ interface FilesMatch {
3
3
  dirs: string[];
4
4
  excluded: string[];
5
5
  extensions: string[];
6
+ contentMappers?: {
7
+ extensions: string[];
8
+ };
6
9
  }
10
+ declare function isContentMapperFile(file: string, contentMappers: FilesMatch['contentMappers']): boolean;
11
+ export { isContentMapperFile };
7
12
  export type { FilesMatch };