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
feat: remove "incremental: true" from ts default options (#444)
As incremental mode has some assumptions regarding changes that can occur in the project, sometimes the user has to remove .tsbuildinfo files manually to fix it. Because of that, we should not enable incremental mode by default - it should be a conscious choice of the user.
BREAKING CHANGE: 🧨 Remove "incremental: true" from default typescript 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
-
|`configFile`|`string`|`'tsconfig.json'`| Path to the `tsconfig.json` file (path relative to the `compiler.options.context` or absolute path) |
161
-
|`configOverwrite`|`object`|`{ compilerOptions: { skipLibCheck: true, sourceMap: false, inlineSourceMap: false, incremental: true } }`| This configuration will overwrite configuration from the `tsconfig.json` file. Supported fields are: `extends`, `compilerOptions`, `include`, `exclude`, `files`, and `references`. |
162
-
|`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`. |
163
-
|`build`|`boolean`|`false`| The equivalent of the `--build` flag for the `tsc` command. |
164
-
|`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 filed emitted by the `ts-loader`. |
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). |
167
-
|`profile`|`boolean`|`false`| Measures and prints timings related to the TypeScript performance. |
|`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
+
|`configFile`|`string`|`'tsconfig.json'`| Path to the `tsconfig.json` file (path relative to the `compiler.options.context` or absolute path) |
161
+
|`configOverwrite`|`object`|`{ compilerOptions: { skipLibCheck: true, sourceMap: false, inlineSourceMap: false, declarationMap: false } }`| This configuration will overwrite configuration from the `tsconfig.json` file. Supported fields are: `extends`, `compilerOptions`, `include`, `exclude`, `files`, and `references`. |
162
+
|`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`. |
163
+
|`build`|`boolean`|`false`| The equivalent of the `--build` flag for the `tsc` command. |
164
+
|`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 filed emitted by the `ts-loader`. |
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). |
167
+
|`profile`|`boolean`|`false`| Measures and prints timings related to the TypeScript performance. |
0 commit comments