Skip to content

Add base routes for source files #849

Closed
@selbekk

Description

@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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions