Using babel-loader and not ts-loader. ts-loader has built-in support for project references.
CRA issue #7807
No typechecking via webpack plugin. fork-ts-checker-webpack-plugin doesn't support project refs yet #328.
use yarn typecheck that uses tsc under the hood.
target1- the package we build with webpack, that imports code from the other packages.common- the files layout is optimal for no-build editing experience. vscode knowns to pick the typescript sources. but has specific layout. can't haveoutdirutils- same ascommon, just to add another level of depswithdist- another approach, with caveats. mostly no no-build editing experience. but we can haveoutDir
Read packages/target1/src/index.ts for additional info