title: Webpack is hoisting/encapsulating my code when bundle/mini (build) with JavaScript packages
body: <p>I'm running in an issue with webpack when i'm bundling/minifying my javascript files.</p>
  
  <p>My package looks like this:</p>
  
  <pre><code>var myPackage = (function () {
      return {
  
          myFunction: function() {
  
          }
      }
  })(this);
  </code></pre>
  
  <p>Once I build with Webpack the result is somewhat like this</p>
  
  <pre><code>(function(modules) {
          // some webpack function
  })({
  
      function(module, __webpack_exports__, __webpack_require__) {
  
        // some webpack stuff`
  
              var myPackage = (function() {
  
           return {
  
               // my functions
  
            }
  
            })(undefined);
  
      }
  });
  </code></pre>
  
  <p>As you can see my package has been hoisted/encapsulated and makes it impossible to read my functions. So for example: myPackage.test() does not exists / is unreachable and thus it cannot be executed</p>
  
  <p>Any one having the same problem or used to have it and solved?</p>