Can someone please explain and give an example of this:
IntelliJ/WebStorm: You can add custom resources root directories, make sure it matches what you have in this plugin.
I have no idea what that means...there is no example in the readme as it pertains specifically to the behavior of babel-plugin-module-resolver or in context of that as well
Right click on folder >> Mark Directory As >> Resource Root
If you have something like "components": "./src/components"
then you need to do steps for Resource Root for src folder and components folder as well
I am going to start modularizing my app so I don't need to have so many folder hierarchies in the first place. Using lerna or now yarn workspaces. Apps should be more modularized so you don't even have this problem TBH.
but yes, marking a directory as a resource works.
Most helpful comment
Right click on folder >> Mark Directory As >> Resource Root