Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

[Issue] Preserve Class names at runtime #23

Open
ovaar opened this issue Jun 26, 2018 · 2 comments
Open

[Issue] Preserve Class names at runtime #23

ovaar opened this issue Jun 26, 2018 · 2 comments

Comments

@ovaar
Copy link

ovaar commented Jun 26, 2018

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

@Cretezy
Copy link
Owner

Cretezy commented Jun 26, 2018

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

@Cretezy
Copy link
Owner

Cretezy commented Jun 27, 2018

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants