Re:Webpack 4 course: What is Webpack?
by _Codemonkeyism on Monday July 16, 2018 @05:33AM
(#17539866)
Webpack4 got much slower with startup and recompilation of TS compared to 3.
[ Parent
| on HN ]
Re:Webpack 4 course: What is Webpack?
by johnny_reilly on Monday July 16, 2018 @06:38AM
(#17540176)
ts-loader / fork-ts-checker-webpack-plugin maintainer here. I'm sorry to hear that's been your experience. It hasn't been my own; it could be worth you comparing your setup with one of the examples available. These are some good candidates:
https://github.com/TypeStrong/ts-loader/tree/master/examples...
https://github.com/TypeStrong/ts-loader/tree/master/examples...
https://github.com/TypeStrong/ts-loader/tree/master/examples... (written by Kenneth Chau of the Outlook.com team)
You may of course you may be using another typescript loader (there are several!). I thought it worth sharing in case you are using ts-loader and your config is catching you out.
Best of luck!
As a ts-loader/fork-ts user thank you for all the work you do!.
Re:Webpack 4 course: What is Webpack?
by _Codemonkeyism on Monday July 16, 2018 @10:53AM
(#17541723)
Thanks a lot, I really appreciate your comment and will take a look. Keep up the great work!
Curious that wasn't my experience, it was about the same.
Re:Webpack 4 course: What is Webpack?
by alexanderchr on Monday July 16, 2018 @06:39AM
(#17540178)
If you use Babel 7 alongside TS you can use the typescript preset to speed up builds a lot. The downside is that you don’t get typechecking on compilation.