title: Load AMD module in global scope in requirejs
body: <p>How can I load my AMD module and assign to globally so once it's load I can use without import(define).</p>
  
  <p><strong>my-module.js</strong></p>
  
  <pre><code>define([], function () {
      'use strict';
      console.log("in amd module...");
      return { a: 1 }; //need to assinge globally 
  });
  </code></pre>
  
  <p><strong>app.js</strong></p>
  
  <pre><code>define([], function () {
      'use strict';
      //MyModule shoud be accessed globally 
      return {};
  });
  </code></pre>
  
  <p><strong>requirejs-config.js</strong></p>
  
  <pre><code>requirejs.config({
      paths: {
          "my-module": "/my-module",
          "app": "/app.js"
      },
      shim: {
          "my-module": {
              // using some option to assine my module to gobally
              //global : "MyModule"
          },
          "app": {
              deps: ["my-module"]
          }
      }
  });
  // load app.js
  requirejs(["app"], function (app) {
      console.log(amd);
      //MyModule shoud be accessed globally 
  });
  </code></pre>
  
  <p>So, anyone has an idea how to load module globally?</p>