title: module.exports "Module is not defined"
body: <p>So, I am using RequireJS and React, trying to load a third-party component, which has been installed with:</p>
  
  <pre><code>npm install react-autocomplete
  </code></pre>
  
  <p>The structure is here: <a href="https://github.com/rackt/react-autocomplete/tree/master/lib">https://github.com/rackt/react-autocomplete/tree/master/lib</a></p>
  
  <p>Now, I have a main.js file, initiated when requireJS is loaded, that looks like this:</p>
  
  <pre><code>require.config({
  paths: {
        "react" : "react/react",
        "jsx-transformer" : "react/JSXTransformer",
        "react-autocomplete" : "node_modules/react-autocomplete/lib/main"
      }
  });
  
  require(["react"], function(react) {
      console.log("React loaded OK.");
  });
  
  require(["jsx-transformer"], function(jsx) {
      console.log("JSX transformer loaded OK.");
  });
  
  require(['react-autocomplete'], function (Autocomplete) {
      console.log("React autocomplete component loaded OK.");
      var Combobox = Autocomplete.Combobox;
      var ComboboxOption = Autocomplete.Option;
      console.log("Autocomplete initiated OK");
   });
  </code></pre>
  
  <p>Now, it all loads OK, but the third require statement throws a "module is not defined", for the main.js file in the third-party component, which looks like this:</p>
  
  <pre><code>module.exports = {
    Combobox: require('./combobox'),
    Option: require('./option')
  };
  </code></pre>
  
  <p>I've been reading about that this has to do with me trying to require a CommonJS-style module, but I can't figure out how to fix it on my own, as I'm new to this.</p>
  
  <p>Does anyone have a clear example on how I could get around this?</p>