Closed
Description
Not really sure about this, but I find it quite annoying to have imports that look like:
import mock from "../../../testUtils/myMock"
Relative paths are good for resources that will always live next to the calling file but when referring to shared helpers/modules I find them quite counter-productive.
It would be possible to configure webpack so we could import files from src/
just like import 'testUtils/myMock
or maybe src/testUtils/myMock
by adding src
to the resolve root.
Would it make sense ? Maybe relative paths are not that bad and I'm missing something ?
Metadata
Metadata
Assignees
Labels
No labels