title: How to manage webpack umd module dependencies (or create peerDependencies)
body: <p>I have created with webpack a UMD module, the content (without compression) start with : </p>
  
  <pre><code>(function webpackUniversalModuleDefinition(root, factory) {
    if(typeof exports === 'object' &amp;&amp; typeof module === 'object')
      module.exports = factory();
    else if(typeof define === 'function' &amp;&amp; define.amd)
      define("bootstrap-styled", [], factory);
    else if(typeof exports === 'object')
      exports["bootstrap-styled"] = factory();
    else
      root["bootstrap-styled"] = factory();
  })(this, function() {
  </code></pre>
  
  <p>This library depend on <code>react</code> and for a signel Component within this library : <code>react-dom</code> (through <code>react-onclickoutside</code> package).</p>
  
  <p>When I build this library with webpack and try to use it in a project. I have an error complaining about two copies of React, the second one has been bundled.</p>
  
  <p>So I need to know what I am expecting as a Umd module.</p>
  
  <p>I don't want to have React built, I want React to be a peer dependencies.</p>
  
  <p>Am I supposed to see <code>react</code> as a parameter of this umd module ?</p>
  
  <p>From a React application, how can I load this module ?</p>
  
  <p>How do I exclude React? I have tried most of the documentations examples.</p>