How can we customize a root directory to be the /
, seems like this behavior is entirely depending on the relative path of the current file.
For example, I would prefer to use a couple of directory paths
- src
- style
- components
and in deep nested direcotry components/header/navbar.js
, i want to import without initialy slashes something like:
import Blah from 'src/models/Blah'
but instead I have to do
import Blah from '../../src/models/Blah'