Closed
Description
Is this a bug report?
No
The current stance of CRA to disallow importing files from outside the root folder of an app forces the most involved users, those with multiple projects, to jump through hoops that should be unnecessary in order to share code, both components and utils.
Current options are
- Symlink folders. This apparently is flakey (Symlink behaviour #3547) and can potentially cause issues running on Windows
- Copy the source files into multiple locations every time they are modified, and check in many copies of hundreds of files. This is our current approach at my company as it works well in CI, but results in human error when newbs edit the copied file rather than the original, and is messy with hundreds of unnecessary copies existing in the codebase.
If we can allow CRA project to just act as another non-special folder in a larger mono-repo, and import files from outside it's root folder, it would greatly improve the experience of working with many CRA projects while keeping all the benefits of not ejecting.