Noderize icon indicating copy to clipboard operation
Noderize copied to clipboard

[Issue] Preserve Class names at runtime

Open ovaar opened this issue 7 years ago • 2 comments

Version: 0.7.1 I'm not familiar with webpack, but it seems that in v0.7.1 webpack minifys the scripts and removes the Classes name property.

In v0.7.0:

Class Foo{}
console.log(Foo.name); // output = "Foo"

In v0.7.1:

Class Foo{}
console.log(Foo.name); // output = "t"

typescript class at runtime

ovaar avatar Jun 26 '18 08:06 ovaar

This definitely sounds like a problem. I'll look into it soon, thanks for the report!

Cretezy avatar Jun 26 '18 16:06 Cretezy

Are you running in development mode or production mode (env)?

Because no change in Webpack was done between 0.7.0 and 0.7.1. Can you give me more info on your setup? (yarn build --showConfig)

Cretezy avatar Jun 27 '18 19:06 Cretezy