title: How to set resolve for babel-loader presets
body: <p>I'm trying to make a bundle with webpack. I have a bit complex dependency: some components require other ones that are located in some <code>/home/.../</code> folder.</p>
  
  <p>Component (<code>/home/.../far-away-components/base-component.js</code> file):</p>
  
  <pre><code>import {base_component} from "base-component";
  exports class MyComponent extends base_component {
     ...
  }
  </code></pre>
  
  <p><code>webpack.config.js</code>:</p>
  
  <pre><code>var path = require("path");
  module.exports = {
      ...
      module: {
          loaders: [
              {
                  test: /\.(js)$/,
                  loader: "babel",
                  query: {
                      presets: ['react', 'es2015', "stage-0"]
                  }
              }
          ]
      },
      resolve: {
          alias: {
              "base-component": "/home/.../far-away-components/base-component.js"
      }
  };
  </code></pre>
  
  <p>The problem is that <code>far-away-components</code> folder doesn't contain <code>node_modules</code> and I get an error: <code>Couldn't find preset "react" relative to directory "/home/.../far-away-components"</code>.</p>
  
  <p>How can I set <code>resolve</code> for <code>babel-loader</code> presets?</p>