title: expose-loader doesn't expose modifications to exposed object
body: <p>I'm using Webpack 2, Bootstrap 3, and TypeScript, and attempting to integrate npm and packaged bundles into an existing application. I'm using <code>ProvidePlugin</code> to make jQuery available, and <code>expose-loader</code> to expose jQuery to external dependencies. </p>
  
  <p>(Any combination of <code>(&lt;any&gt; global).$ = global.jQuery = $;</code> or webpack<code>module: { rules [{}] }</code> configurations wouldn't work, but eventually I got the following to work:</p>
  
  <pre><code>plugins: ([
      // make sure we allow any jquery usages outside of our webpack modules
      new webpack.ProvidePlugin({
          $: "jquery",
          jQuery: "jquery",
          jquery: "jquery",
          "window.jQuery": "jquery",
          "window.$": "jquery"
      }),
  ]),
  </code></pre>
  
  <p>entry.ts:</p>
  
  <pre><code>import "expose-loader?$!jquery"
  import "expose-loader?jQuery!jquery"
  </code></pre>
  
  <p>However, when I then try and call <code>import "bootstrap"</code> I can call <code>$(...).popover()</code> within my module, and I can call <code>$(...)</code> or <code>jQuery(...)</code> outside the module, but I can't call <code>$(...).popover</code> outside the module, instead I get this error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: $(...).popover is not a function</p>
  </blockquote>
  
  <p><strong>How do I make methods that are added to jQuery (like the bootstrap <code>popover</code> method) available in the global scope, outside of my modules?</strong></p>