title: Can't access variables after webpack compilation
body: <p>I can't access variables after webpack compilation.
  I need it, because i'm using this variable to call function in onclick.</p>
  
  <p>code is like</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function DetailClass() {
    this.add = function() {
      console.log(1);
      }
  }
  
  var Detail = new DetailClass();</code></pre>
  </div>
  </div>
  </p>
  
  <p>Webpack including this code into eval()</p>
  
  <p>And in HTML i call it like </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div onclick="Detail.add();"&gt;Add&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>