title: Instantiate a custom class in vue
body: <p>I'm trying to learn Vue with Babel and Webpack.
  I created a custom class and I already did the importation in my custom component, which should work because I can console.log it? 
  Of course it's only nonesense in the log, but when i try to instantiate it, vue is crashing.</p>
  
  <p>This is the code in the component  file.</p>
  
  <pre><code>&lt;script&gt;
      import Data1 from '../model/Data1.js';
  
      let testData1 = new Data1();
  
      console.log(Data1);
      console.log("test");
  
  
      export default {
          name: 'Test2',
          props: {
              msg: String,
              test: String,
          },
          data: function () {
  
              return {
                  Data2: ["1", "2"],
                  OK: true,
                  testData1: testData1,
              }
          }
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>This is my custom class</p>
  
  <pre><code>class Data1 {
      constructor() {
          this.myArray = ["a", "b", "c"];
      }
  }
  
  export default {
      Data1
  }
  </code></pre>
  
  <p>Did i miss something, or is the export wrong?</p>