{
"$type": "site.standard.document",
"canonicalUrl": "https://johnnyreilly.com/posts/fork-ts-checker-webpack-plugin-v1",
"description": "`fork-ts-checker-webpack-plugin` released v1.0.0 with TypeScript 3+ support, incremental watch API by default, and compatibility with webpack and TSLint.",
"path": "/posts/fork-ts-checker-webpack-plugin-v1",
"publishedAt": "2019-03-06T00:00:00.000Z",
"site": "at://did:plc:yy3apqjlms24kso7ahn7lbmb/site.standard.publication/3mova7c4nho2b",
"tags": [
"fork-ts-checker-webpack-plugin",
"ts-loader",
"webpack",
"typescript"
],
"textContent": "It's time for the first major version of fork-ts-checker-webpack-plugin. It's been a long time coming :-)\n\n\n\nA Little History\n\nThe fork-ts-checker-webpack-plugin was originally the handiwork of Piotr OleÅ›. He raised an issue with ts-loader suggesting it could be the McCartney to ts-loader's Lennon:\n\n> Hi everyone!\n>\n> I've created webpack plugin: fork-ts-checker-webpack-plugin that plays nicely with ts-loader. The idea is to compile project with transpileOnly: true and check types on separate process (async). With this approach, webpack build is not blocked by type checker and we have semantic check with fast incremental build. More info on github repo :)\n>\n> So if you like it and you think it would be good to add some info in README/index.md about this plugin, I would be greatful.\n>\n> Thanks :)\n\nWe did like it. We did think it would be good. We took him up on his kind offer.\n\nSince that time many people have had their paws on the fork-ts-checker-webpack-plugin codebase. We love them all.\n\nOne Point Oh\n\nWe could have had our first major release a long time ago. The idea first occurred when webpack 5 alpha appeared. \"Huh, look at that, a major version number.... Maybe we should do that?\" \"_Great_ idea chap - do it!\" So here it is; fresh out the box: v1.0.0\n\nThere are actually no breaking changes that we're aware of; users of 0.x fork-ts-checker-webpack-plugin should be be able to upgrade without any drama.\n\nIncremental Watch API on by Default\n\nUsers of TypeScript 3+ may notice a performance improvement as by default the plugin now uses the incremental watch API in TypeScript.\n\nShould this prove problematic you can opt out of using it by supplying useTypescriptIncrementalApi: false. We are aware of an issue with Vue and the incremental API. We hope it will be fixed soon - a generous member of the community is taking a look. In the meantime, we will _not_ default to using the incremental watch API when in Vue mode.\n\nCompatibility\n\nAs it stands, the plugin supports webpack 2, 3, 4 and 5 alpha. It is compatible with TypeScript 2.1+ and TSLint 4+.\n\nRight that's it - enjoy it! And thanks everyone for contributing - we really dig your help. Much love.",
"title": "fork-ts-checker-webpack-plugin v1.0"
}