<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
Bug</p>
<p dir="auto"><strong>What is the current behavior?</strong><br>
Adding NamedModulesPlugin to a project that uses certain global lookups results in what are effectively reference errors.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
Add NamedModulePlugins to <a href="https://github.com/shakacode/bootstrap-loader/blob/master/examples/basic/webpack.dev.config.js">https://github.com/shakacode/bootstrap-loader/blob/master/examples/basic/webpack.dev.config.js</a> (which uses jquery &amp; bootstrap. <a href="https://github.com/shakacode/bootstrap-loader/issues/288" data-hovercard-type="issue" data-hovercard-url="/shakacode/bootstrap-loader/issues/288/hovercard">Resulting Error</a>).</p>
<p dir="auto"><a href="https://github.com/eggheadio/egghead-ui/blob/master/src/components/Icon/index.js#L65">https://github.com/eggheadio/egghead-ui/blob/master/src/components/Icon/index.js#L65</a> also breaks with <code class="notranslate">keys</code> being declared not a function.</p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
That global lookups work.</p>
<p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong><br>
Compatibility with other libraries.</p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong><br>
webpack: 2.2.1</p>
<p dir="auto">Adding NamedModulesPlugin to the webpack config somehow removes jquery aliases from the global namespace. Results in the following Bootstrap Utils error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot set property 'emulateTransitionEnd' of undefined
    at setTransitionEndSupport (webpack:///./\~/bootstrap/js/dist/util.js?./\~/exports-loader?Util:88)
    at eval (webpack:///./\~/bootstrap/js/dist/util.js?./\~/exports-loader?Util:146)
    at Object.eval (webpack:///./\~/bootstrap/js/dist/util.js?./\~/exports-loader?Util:149)
    at eval (webpack:///./\~/bootstrap/js/dist/util.js?./\~/exports-loader?Util:155)
    at Object../node_modules/exports-loader/index.js?Util!./node_modules/bootstrap/js/dist/util.js (vendor-client-bundle.js:5770)
    at \_\_webpack_require\_\_ (vendor-client-bundle.js:692)
    at fn (vendor-client-bundle.js:111)
    at eval (webpack:///./~/bootstrap/js/dist/alert.js?:185)
    at Object../node_modules/bootstrap/js/dist/alert.js (vendor-client-bundle.js:922)
    at \_\_webpack_require\_\_ (vendor-client-bundle.js:692)"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Cannot set property 'emulateTransitionEnd' of undefined
    at setTransitionEndSupport (webpack:///./\~/bootstrap/js/dist/util.js?./\~/exports-loader?Util:88)
    at eval (webpack:///./\~/bootstrap/js/dist/util.js?./\~/exports-loader?Util:146)
    at Object.eval (webpack:///./\~/bootstrap/js/dist/util.js?./\~/exports-loader?Util:149)
    at eval (webpack:///./\~/bootstrap/js/dist/util.js?./\~/exports-loader?Util:155)
    at Object../node_modules/exports-loader/index.js?Util!./node_modules/bootstrap/js/dist/util.js (vendor-client-bundle.js:5770)
    at \_\_webpack_require\_\_ (vendor-client-bundle.js:692)
    at fn (vendor-client-bundle.js:111)
    at eval (webpack:///./~/bootstrap/js/dist/alert.js?:185)
    at Object../node_modules/bootstrap/js/dist/alert.js (vendor-client-bundle.js:922)
    at \_\_webpack_require\_\_ (vendor-client-bundle.js:692)
</code></pre></div>