Use new watch API in fork-ts-checker-webpack-plugin
See original GitHub issueI’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:
Current behavior
Fine
Expected behavior
Could be faster.
Minimal reproduction of the problem with instructions
N/A
What is the motivation / use case for changing the behavior?
Faster builds
Environment
Others:
This isn’t a bug report - more a heads up. There’s a new feature been added to the fork-ts-checker-webpack-plugin
. This feature speeds up incremental compilation.
More details can be found here:
https://blog.johnnyreilly.com/2019/01/typescript-and-webpack-watch-it.html
Would you consider upgrading to this for the performance improvement?
See also: https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/198 And: https://github.com/Realytics/fork-ts-checker-webpack-plugin/issues/196
cc @jantimon
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top Results From Across the Web
fork-ts-checker-webpack-plugin/README.md at main - GitHub
Webpack plugin that runs typescript type checker on a separate process. - fork-ts-checker-webpack-plugin/README.md at main ...
Read more >fork-ts-checker-webpack-plugin - npm
Start using fork-ts-checker-webpack-plugin in your project by ... new ForkTsCheckerWebpackPlugin({ ... Different behaviour in watch mode.
Read more >How to use the fork-ts-checker-webpack-plugin.ONE_CPU ...
js'], }, plugins: [ new ForkTsCheckerWebpackPlugin({ tsconfig: path.resolve(__dirname, 'tsconfig.json'), watch: SRC_DIR, // CI memory limits make building with ...
Read more >Build Performance - webpack
Use the latest webpack version. ... The built-in watch mode will keep track of timestamps and passes this information to the compilation for...
Read more >Invalid configuration object. Webpack has been initialised ...
Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader: plugins: [ new webpack.LoaderOptionsPlugin({ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Perfect - thank you so much 🎉
Current state:
fork-ts-checker-webpack-plugin@next uses a node 8 only internal for performance timing.
So our unit tests fail:
However @johnnyreilly is working on a solution so we will be able to use it even for node 6 🎉
Side note: I would highly recommend to use a higher node version in your projects however as long as node 6 is the official supported webpack 4 version we should also try to achieve the same for the webpack-config-plugins to be compatible