Created by: fazouane-marouane
Hello,
A quick search for "monorepo" in the issues will show an increasing demand for it, especially since the release of create-react-app v2 ( https://github.com/facebook/create-react-app/issues/1333 ). We've had the need to allow usage of JSX, ESnext and TypeScript in all our codebase (a lerna monorepo) and just import those packages without build step into our react apps. We have a few react apps in our monorepo and they need to share components and helpers, data layer etc.
What we did until now is having a build step for every single package but today we'd like to eliminate this step and just use raw sources without the build step.
This PullRequest will provide support for simple projects as well as monorepos using lerna v2 and v3 (I didn't check older versions). The idea is simple:
- Look at the current app as will Lerna do
- Get all local dependencies (dependencies of the current react app that is present in the monorepo)
- Treat code from there as code in
/src
Do you have any questions or suggestions regarding this? Marouane