@@ -34,13 +34,33 @@ also configure the `ts-loader options`_ via a callback:
34
34
If React assets are enabled (``.enableReactPreset() ``), any ``.tsx `` file will be
35
35
processed as well by ``ts-loader ``.
36
36
37
- Loader usage can be checked better in its `README `_ documentation .
37
+ More information about the `` ts-loader `` can be found in its `README `_.
38
38
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
+ -------------------------------------------------
41
41
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.
43
61
44
62
.. _`TypeScript` : https://www.typescriptlang.org/
45
63
.. _`ts-loader options` : https://github.com/TypeStrong/ts-loader#options
46
64
.. _`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