Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add base routes for source files #849

Closed
selbekk opened this issue Oct 5, 2016 · 1 comment
Closed

Add base routes for source files #849

selbekk opened this issue Oct 5, 2016 · 1 comment

Comments

@selbekk
Copy link
Contributor

selbekk commented Oct 5, 2016

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?

@selbekk selbekk changed the title Add base routes for source and test files Add base routes for source files Oct 5, 2016
@gaearon
Copy link
Contributor

gaearon commented Oct 5, 2016

This will be covered by #741.
If you’d like to work on it, please feel free to try implementing it and submit a PR!

@gaearon gaearon closed this as completed Oct 5, 2016
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants