Add base routes for source files
Created by: selbekk
In order to avoid stuff like this:
import SomeComponent from '../../component/some-component/SomeComponent';
, I usually use the babel-root-plugin
to resolve ~
to /src/main
.
Would the suggested way of doing this in CRA be to fork and change react-scripts
? Or is there a way to do this already?