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: use webpack's built-in watching instead of polling
Centralize files watching using webpack's `WatchFileSystem`.
The default implementation of `NodeWatchFileSystem` doesn't fill our needs,
so we've implemented `InclusiveNodeWatchFileSystem`
BREAKING CHANGE: 🧨 Remove issue.scope option and use new watch architecture
Copy file name to clipboardExpand all lines: README.md
+1-18Lines changed: 1 addition & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,12 +62,6 @@ module.exports = {
62
62
};
63
63
```
64
64
65
-
If you are using **TypeScript >= 3.8.0**, it's recommended to:
66
-
* for `ts-loader` set `"importsNotUsedAsValues": "preserve"`[compiler option](https://www.typescriptlang.org/docs/handbook/compiler-options.html) in the [`tsconfig.json`](./examples/ts-loader/tsconfig.json)
67
-
* for `babel-loader` set `"onlyRemoveTypeImports": true`[preset option](https://babeljs.io/docs/en/babel-preset-typescript#onlyremovetypeimports) in the [babel configuration](./examples/babel-loader/.babelrc.js)
68
-
69
-
[Read more](#type-only-modules-watching) about type-only modules watching.
70
-
71
65
> Examples how to configure it with [babel-loader](https://github.com/babel/babel-loader), [ts-loader](https://github.com/TypeStrong/ts-loader),
72
66
> [eslint](https://github.com/eslint/eslint) and [Visual Studio Code](https://code.visualstudio.com/) are in the
73
67
> [**examples**](./examples) directory.
@@ -204,7 +198,7 @@ Options for the issues filtering (`issues` option object).
204
198
## Vue.js
205
199
206
200
⚠️ There are additional **constraints** regarding Vue.js Single File Component support: ⚠️
207
-
* It requires **TypeScript >= 3.8.0**and `"importsNotUsedAsValues": "preserve"` option in the `tsconfig.json`(it's a limitation of the `transpileOnly` mode from `ts-loader`)
201
+
* It requires **TypeScript >= 3.8.0** (it's a limitation of the `transpileOnly` mode from `ts-loader`)
208
202
* It doesn't work with the `build` mode (project references)
209
203
210
204
To enable Vue.js support, follow these steps:
@@ -314,17 +308,6 @@ declare module "*.vue" {
314
308
315
309
</details>
316
310
317
-
## Type-Only modules watching
318
-
319
-
At present `ts-loader` with `transpileOnly` mode and `babel-loader` will not add type-only files (files that contains only interfaces and/or types)
320
-
to the webpack dependencies set. Webpack watches only files that are in the dependencies set. This means that
321
-
changes in type-only files will **not** trigger new compilation and therefore type-checker in watch mode.
322
-
323
-
If you use **TypeScript >=3.8.0**, you can fix it:
324
-
* for `ts-loader` set `"importsNotUsedAsValues": "preserve"`[compiler option](https://www.typescriptlang.org/docs/handbook/compiler-options.html) in the [`tsconfig.json`](./examples/ts-loader/tsconfig.json)
325
-
* for `babel-loader` set `"onlyRemoveTypeImports": true`[preset option](https://babeljs.io/docs/en/babel-preset-typescript#onlyremovetypeimports) in the [babel configuration](./examples/babel-loader/.babelrc.js)
Copy file name to clipboardExpand all lines: src/ForkTsCheckerWebpackPluginOptions.json
-5Lines changed: 0 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -261,11 +261,6 @@
261
261
},
262
262
"exclude": {
263
263
"$ref": "#/definitions/IssuePredicateOption"
264
-
},
265
-
"scope": {
266
-
"type": "string",
267
-
"enum": ["all", "webpack"],
268
-
"description": "Defines issues scope to be reported. If 'webpack', reports errors only related to a given webpack compilation. Reports all errors otherwise."
0 commit comments