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 root imports with tilde prefix #852

Closed

Commits on Oct 5, 2016

  1. Add root imports with tilde prefix

    This commit adds `babel-plugin-root-import` to the default .babelrc
    file to define `~` as the absolute path to the src/ folder.
    
    This gives us the possibility to turn code like this:
    
    ```
    import SomeUtility from '../../utils/some-utility'
    ```
    
    to this
    
    ```
    import SomeUtility from '~/utils/some-utility';
    ```
    Kristofer Selbekk committed Oct 5, 2016
    Configuration menu
    Copy the full SHA
    cd67597 View commit details
    Browse the repository at this point in the history