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?
In order to avoid stuff like this:
, I usually use the
babel-root-pluginto 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?