Hacker News new | ask | show | jobs
by prmph 2240 days ago
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...