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
Currently, the logger options are overcomplicated. To simplify them, we
are removing logger.infrastructure option.
BREAKING CHANGE: 🧨 Changes in options: `logger.issues` becomes `logger`, `logger.devServer`
becomes `devServer`, `logger.infrastructure` has been removed
|`async`|`boolean`|`compiler.options.mode === 'development'`| If `true`, reports issues **after** webpack's compilation is done. Thanks to that it doesn't block the compilation. Used only in the `watch` mode. |
91
-
|`typescript`|`object`|`{}`| See [TypeScript options](#typescript-options). |
92
-
|`issue`|`object`|`{}`| See [Issues options](#issues-options). |
93
-
|`formatter`|`string` or `object` or `function`|`codeframe`| Available formatters are `basic`, `codeframe` and a custom `function`. To [configure](https://babeljs.io/docs/en/babel-code-frame#options)`codeframe` formatter, pass object: `{ type: 'codeframe', options: { <coderame options> } }`. |
94
-
|`logger`|`object`|`{ infrastructure: 'silent', issues: 'console', devServer: true }`| Available loggers are `silent`, `console`, and `webpack-infrastructure`. Infrastructure logger prints additional information, issue logger prints `issues` in the `async` mode. If `devServer` is set to `false`, errors will not be reported to Webpack Dev Server. |
|`async`|`boolean`|`compiler.options.mode === 'development'`| If `true`, reports issues **after** webpack's compilation is done. Thanks to that it doesn't block the compilation. Used only in the `watch` mode. |
91
+
|`typescript`|`object`|`{}`| See [TypeScript options](#typescript-options). |
92
+
|`issue`|`object`|`{}`| See [Issues options](#issues-options). |
93
+
|`formatter`|`string` or `object` or `function`|`codeframe`| Available formatters are `basic`, `codeframe` and a custom `function`. To [configure](https://babeljs.io/docs/en/babel-code-frame#options)`codeframe` formatter, pass object: `{ type: 'codeframe', options: { <coderame options> } }`. |
94
+
|`logger`|`{ log: function, error: function }`|`console`| Console-like object to print issues in `async` mode. |
95
+
|`devServer`|`boolean`|`true`| If set to `false`, errors will not be reported to Webpack Dev Server. |
95
96
96
97
### TypeScript options
97
98
@@ -105,7 +106,7 @@ Options for the TypeScript checker (`typescript` option object).
105
106
|`context`|`string`|`dirname(configuration.configFile)`| 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 `configFile`. |
106
107
|`build`|`boolean`|`false`| The equivalent of the `--build` flag for the `tsc` command. |
107
108
|`mode`|`'readonly'` or `'write-tsbuildinfo'` or `'write-references'`|`'write-tsbuildinfo'`| 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 `write-tsbuildinfo` mode to not overwrite files emitted by the `ts-loader`. |
108
-
|`diagnosticOptions`|`object`|`{ syntactic: false, semantic: true, declaration: false, global: false }`| Settings to select which diagnostics do we want to perform. |
109
+
|`diagnosticOptions`|`object`|`{ syntactic: false, semantic: true, declaration: false, global: false }`| Settings to select which diagnostics do we want to perform. |
109
110
|`extensions`|`object`|`{}`| See [TypeScript extensions options](#typescript-extensions-options). |
110
111
|`profile`|`boolean`|`false`| Measures and prints timings related to the TypeScript performance. |
111
112
|`typescriptPath`|`string`|`require.resolve('typescript')`| If supplied this is a custom path where TypeScript can be found. |
0 commit comments