title: How to get Babel to compile using webpack-style 'modulesDirectories'?
body: <p>Following this gist here
  <a href="https://gist.github.com/ryanflorence/daafb1e3cb8ad740b346" rel="nofollow">https://gist.github.com/ryanflorence/daafb1e3cb8ad740b346</a></p>
  
  <p>I was able to set up a cool folder structure for a pretty complex app using Webpack's 'resolve.modulesDirectories' -  I can reference shared components via module-type imports :</p>
  
  <pre><code>import MyModule from 'modules/MyModule';
  </code></pre>
  
  <p>where the file is in </p>
  
  <pre><code>src/app/modules/Foo/modules/Bar/modules/Baz/component.jsx
  </code></pre>
  
  <p>and MyModule is in </p>
  
  <pre><code>src/app/shared/modules/MyModule
  </code></pre>
  
  <hr>
  
  <p>The trouble is, when I try to run tests</p>
  
  <pre><code>mocha --compilers js:babel-core/register $(find src/app -name *.test.jsx)
  </code></pre>
  
  <p>the Babel compiler throws saying it can't find anything in 'modules/MyModule'...</p>
  
  <p>Is there an analog to Webpack's 'modulesDirectories' in the Babel compiler config ?</p>