title: ES6 library compiled with laravel-mix not working
body: <p>I'm building small js es6 library.</p>
  
  <pre><code>class Library {
      get(key) {
          console.log("Get")
      }
  
      set(key, value, options) {
         console.log("Set")
      }
  
  
      delete(key) {
          console.log("Delete")
      }
  }
  
  export default Library
  </code></pre>
  
  <p>I'm using laravel-mix to compile code.</p>
  
  <pre><code>let mix = require('laravel-mix')
  mix.js('src/index.js', 'dist')
  </code></pre>
  
  <p>Then I import compiled script in HTML:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;meta charset="UTF-8"&gt;
          &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;h1&gt;Title&lt;/h1&gt;
          &lt;script src="../dist/index.js"&gt;&lt;/script&gt;
          &lt;script&gt;
              var lib = new Library();
          &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But I get js error: <code>Uncaught ReferenceError: Library is not defined</code></p>
  
  <p>What am I doing wrong?</p>