question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use new watch API in fork-ts-checker-webpack-plugin

See original GitHub issue

I’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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jantimoncommented, Jan 17, 2019

Perfect - thank you so much 🎉

0reactions
jantimoncommented, Jan 18, 2019

Current state:

fork-ts-checker-webpack-plugin@next uses a node 8 only internal for performance timing.

So our unit tests fail:

travis

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found