s-panferov / awesome-typescript-loader

Awesome TypeScript loader for webpack
Other
2.35k stars 179 forks source link

Monorepo with TS 3 project references #606

Open VojtaStanek opened 6 years ago

VojtaStanek commented 6 years ago

We have a monorepo when one of the packages is compiled with webpack, but references other package from the monorepo. We are using project references (new in TS 3) to compile only the packages, that are needed (the changed one and other that have reference to it). Is there a way to make it work with webpack? Currently we are compiling it with tsc and then bundling compiled js with webpack, but it is not an ideal solution, since many features doesn't work so well (e.g. source maps and custom loaders such as sass-loader) and it is quite slow.

nomcopter commented 6 years ago

Any idea on a timeline for this?

be5invis commented 6 years ago

+1 for this

stereobooster commented 5 years ago

I have typescript monorepo with storybook (storybook uses awesome-typescript-loader). I worked around this issue by watching all sub-packages with typescript. See solution here. I can't watch changes from the root because of this bug.