You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`enabled`|`boolean`|`true`| If `true`, it enables TypeScript checker. |
159
-
|`memoryLimit`|`number`|`2048`| Memory limit for the checker process in MB. If the process exits with the allocation failed error, try to increase this number. |
160
-
|`tsconfig`|`string`|`'tsconfig.json'`| Path to the `tsconfig.json` file (path relative to the `compiler.options.context` or absolute path) |
161
-
|`build`|`boolean`|`false`| If truthy, it's the equivalent of the `--build` flag for the `tsc` command. |
162
-
|`mode`|`'readonly'` or `'write-tsbuildinfo'` or `'write-references'`|`'readonly'`| If you use the `babel-loader`, it's recommended to use `write-references` mode to improve initial compilation time. If you use `ts-loader`, it's recommended to use `readonly` mode to not overwrite filed emitted by `ts-loader`. |
163
-
|`compilerOptions`|`object`|`{ skipLibCheck: true, skipDefaultLibCheck: true }`| These options will overwrite compiler options from the `tsconfig.json` file. |
164
-
|`diagnosticsOptions`|`object`|`{ syntactic: false, semantic: true, declaration: false, global: false }`| Settings to select which diagnostics do we want to perform. |
165
-
|`extensions`|`object`|`{}`| See [TypeScript extensions options](#typescript-extensions-options). |
|`enabled`|`boolean`|`true`| If `true`, it enables TypeScript checker. |
159
+
|`memoryLimit`|`number`|`2048`| Memory limit for the checker process in MB. If the process exits with the allocation failed error, try to increase this number. |
160
+
|`tsconfig`|`string`|`'tsconfig.json'`| Path to the `tsconfig.json` file (path relative to the `compiler.options.context` or absolute path) |
161
+
|`context`|`string`|`dirname(configuration.tsconfig)`| The base path for finding files specified in the `tsconfig.json`. Same as the `context` option from the [ts-loader](https://github.com/TypeStrong/ts-loader#context). Useful if you want to keep your `tsconfig.json` in an external package. Keep in mind that **not** having a `tsconfig.json` in your project root can cause different behaviour between `fork-ts-checker-webpack-plugin` and `tsc`. When using editors like `VS Code` it is advised to add a `tsconfig.json` file to the root of the project and extend the config file referenced in option `tsconfig`. |
162
+
|`build`|`boolean`|`false`| The equivalent of the `--build` flag for the `tsc` command. To enable `incremental` mode, set it in the `tsconfig.json` file. |
163
+
|`mode`|`'readonly'` or `'write-tsbuildinfo'` or `'write-references'`|`'readonly'`| If you use the `babel-loader`, it's recommended to use `write-references` mode to improve initial compilation time. If you use `ts-loader`, it's recommended to use `readonly` mode to not overwrite filed emitted by `ts-loader`. |
164
+
|`compilerOptions`|`object`|`{ skipLibCheck: true, skipDefaultLibCheck: true }`| These options will overwrite compiler options from the `tsconfig.json` file. |
165
+
|`diagnosticsOptions`|`object`|`{ syntactic: false, semantic: true, declaration: false, global: false }`| Settings to select which diagnostics do we want to perform. |
166
+
|`extensions`|`object`|`{}`| See [TypeScript extensions options](#typescript-extensions-options). |
"description": "`readonly` keeps all emitted files in memory, `write-tsbuildinfo` which writes only .tsbuildinfo files and `write-references` which writes both .tsbuildinfo and referenced projects output"
128
132
},
129
-
"incremental": {
130
-
"type": "boolean",
131
-
"description": "The equivalent of the `--incremental` flag from the `tsc`."
132
-
},
133
133
"compilerOptions": {
134
134
"type": "object",
135
135
"description": "Custom compilerOptions to be passed to the TypeScript compiler.",
0 commit comments