title: requirejs not loading the object properly
body: <p>I am configuring angularjs project dependecies using <code>requirejs</code></p>
  
  <p>following are the configurations</p>
  
  <pre><code>"cornerstone-core":"emp/cornerstone.min",
  "cornerstone-math":"emp/cornerstoneMath.min",
  "hammer":"emp/hammer.min",
  "properties":"emp/properties"
  "clientParameters":"emp/clientParameters"
  "cornerstone":"emp/cornerstone"
  "cornerstoneMath":"emp/cornerstoneMath"
  "cornerstoneTools":"emp/cornerstoneTools"
  "cornerstoneWADOImageLoaderCodecs":"emp/cornerstoneWADOImageLoaderCodecs"
  "cornerstoneWADOImageWebWorker":"emp/cornerstoneWADOImageWebWorker"
  "myApp":"emp/myApp"
  </code></pre>
  
  <p>Runtime dependencies are,</p>
  
  <pre><code>clientParameters : [ "properties" ],
  cornerstoneMath : [ "properties", "clientParameters", "cornerstone-core", "cornerstone-math", "hammerjs" ]
  cornerstone : [ "properties", "clientParameters", "cornerstone-core", "cornerstone-math", "hammerjs" ],
  cornerstoneTools : [ "properties", "clientParameters", "cornerstone-core", "cornerstone-math", "hammerjs" ],
  myApp : [ "properties", "clientParameters", "cornerstone", "cornerstoneMath", "cornerstone-core", "cornerstone-math", "hammerjs" ]
  </code></pre>
  
  <p>In cornerstone.js I am loading the modules in a following way,</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("cornerstone", [], factory); // error line
    else if(typeof exports === 'object')
      exports["cornerstone"] = factory(); 
    else
      root["cornerstone"] = factory();
  })(this, function() {
  return (function(modules) {
  </code></pre>
  
  <p>I am getting the following error,<br /><br />
       <code>myApp.js:2312 Uncaught(in promise) ReferenceError: cornerstone is not defined</code></p>
  
  <p>at line <code>define("cornerstone", [], factory);</code> <br /> when I am replacing the error line with <code>root["cornerstone"] = factory();</code> everything is working fine.</p>
  
  <p><strong>[EDIT]</strong><br />
  factory method is bootstrapper used in this question: <a href="https://stackoverflow.com/questions/28776061/trying-to-understand-webpack">Trying to understand Webpack</a></p>