You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add documentation for the useCaseSensitiveFileNames option (#1227)
Setting this option on projects with lots of files can reduce compilation time. Case-insensitivty requires normalization of file paths, which involves executing regex's. This shows up in the hot path of compilation profiling.
@@ -625,6 +626,15 @@ loading only those files that are actually bundled by webpack, as well as any `.
625
626
by the `tsconfig.json` settings. `.d.ts` files are still included because they may be needed for
626
627
compilation without being explicitly imported, and therefore not picked up by webpack.
627
628
629
+
#### useCaseSensitiveFileNames
630
+
| Type | Default Value |
631
+
|------|--------------|
632
+
|`boolean`| determined by typescript based on platform |
633
+
634
+
The default behavior of `ts-loader` is to act as a drop-in replacement for the `tsc` command,
635
+
so it respects the `useCaseSensitiveFileNames` set internally by typescript. The `useCaseSensitiveFileNames` option modifies this behavior,
636
+
by changing the way in which ts-loader resolves file paths to compile. Setting this to true can have some performance benefits due to simplifying the file resolution codepath.
0 commit comments