Defining directories to look in for "jump to definition"?

I'm making a React app and all the components are in a subdirectory that looks like this:


I've configured Webpack to resolve ES6 imports using:

resolved_paths: ['app/assets/javascripts/react']

so now, in my JavaScript files in the react/ directory, my imports look like this:

import SomeComponent from 'components/SomeComponent';

My issue with this is that RubyMine cannot resolve where this file is. So neither jumping to definitions nor assisting with filling in the paths works anymore.  Is there somewhere where I can tell RubyMine to use app/assets/javascripts/reacts to try to resolve file locations?

Please sign in to leave a comment.