title: Class.name always 'e' for every class after uglify / webpack for production
body: <p>I have an app which is working great in development enviroment but it is not working in production, which is caused by uglify (I think so)</p>
  
  <p>I have a data which user builds and I am saving that either to file or to LocalStorage (json in both cases so doesn't matter).</p>
  
  <p>The structure is built from 3 type of nodes. I have implemented property in the base class ( all inherit from one class): <code>type =this.constructor.name</code> and it is working great in development. When I load the app and read the cache, I go through the JSON and rebuild objects using <code>switch (obj.type) case class1.name...</code> etc. It is working well.</p>
  
  <p>However, when I build for production, when I call <code>class1.name</code> or <code>class2.name</code> or <code>class3.name</code> it all returns <code>e</code> which makes it impossible to restore proper objects... </p>
  
  <p>I do not think it is framework specific issue, but if someone would need to know I build using VueJS with Quasar Framework.</p>
  
  <p>Any ideas?</p>