title: How do I access the global object (window) using webpack?
body: <p>I'm trying to interface ActionScript with JavaScript using <code>ExternalInterface</code> and webpack.</p>
  
  <p><code>ExternalInterface</code> can only provoked (<code>call</code>) functions found on the global object (<code>window</code>). How can I get a webpack module reference on <code>window</code> (global object)?</p>
  
  <p>Allow me to elaborate some, I want to have a namespace for the company (<code>window.companyName</code>) with an interface for <code>ExternalInterface</code>:</p>
  
  <pre><code>window.companyName = { isReady: function() { ... },
                         driver1: function() { ... }, 
                         driver2: function() { ... } }
  </code></pre>
  
  <p>The ActionScript will drive my JavaScript. The more fundamental question is, how do I set globals using webpack so that <code>ExternalInterface</code> can see them (preferably as exports of a module)?</p>
  
  <p>I've tried using <code>expose-loader</code>, <code>exports-loader</code> <code>imports-loader</code> with no luck. <code>expose-loader</code>is ideally what I need, but doesn't seem to work. When I set window.companyName in my modules and try to verify it in my chrome console, it results in <code>undefined</code>.</p>