I adjusted my webpack configuration using a root resolve path. This way I can import modules with
import api from 'core/api';
import api from '../../../../core/api';
The problem is that webstorm/intellij doesn't recognize the module and therefore doesn't check if the import is correct and also doesn't provide any autocompletion. Is there a way to teach webstorm / intellij that it should look for modules not only in node_modules but also in another directory (in this case my source root)?