News for hackers. Stuff that matters.
Re:Porting a React Front End to TypeScript by prmph on Tuesday April 28, 2020 @02:06PM (#23009918)
Ever heard of the "rootDirs" [1] option in tsconfig.json? You can use it to aggregate code files in the various folders as if they were in one flat folder (as far as TS is concerned) while editing. Before building with WebPack, you can copy all the code files into a temporary build folder and then run WebPack on it.

1. https://www.typescriptlang.org/docs/handbook/compiler-option...

There are no comments on this comment yet.