@@ -34,13 +34,33 @@ also configure the `ts-loader options`_ via a callback:
3434 If React assets are enabled (``.enableReactPreset() ``), any ``.tsx `` file will be
3535processed as well by ``ts-loader ``.
3636
37- Loader usage can be checked better in its `README `_ documentation .
37+ More information about the `` ts-loader `` can be found in its `README `_.
3838
39- "Use webpack like normal, including `` webpack --watch `` and `` webpack-dev-server ``,
40- or through another build system using the Node.js API."
39+ Faster Builds with fork-ts-checker- webpack-plugin
40+ -------------------------------------------------
4141
42- -- Running section of ts-loader documentation
42+ By using `fork-ts-checker-webpack-plugin `_, you can run type checking in a separate
43+ process, which can speedup compile time. To enable it, install the plugin:
44+
45+ .. code-block :: terminal
46+
47+ $ yarn add --dev fork-ts-checker-webpack-plugin
48+
49+ Then enable it by calling:
50+
51+ .. code-block :: diff
52+
53+ // webpack.config.js
54+
55+ Encore
56+ // ...
57+ enableForkedTypeScriptTypesChecking()
58+ ;
59+
60+ This plugin requires that you have a `tsconfig.json `_ file that is setup correctly.
4361
4462.. _`TypeScript` : https://www.typescriptlang.org/
4563.. _`ts-loader options` : https://github.com/TypeStrong/ts-loader#options
4664.. _`README` : https://github.com/TypeStrong/ts-loader#typescript-loader-for-webpack
65+ .. _`fork-ts-checker-webpack-plugin` : https://www.npmjs.com/package/fork-ts-checker-webpack-plugin
66+ .. _`tsconfig.json` : https://www.npmjs.com/package/fork-ts-checker-webpack-plugin#modules-resolution
0 commit comments