We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
classを定義したときに、コンストラクタが変換時に関数になる仕様上terserが想定していない動きになってしまっている
例えば
function create(x) { return x; } class A { constructor(vv) { this.vv = vv; this.w = this.getW(); } getW() { return create(this.vv); } }
としたとき、
function a(x) { return x; } class A { constructor(a) { this.a = a; this.b = this.c(); } getW() { return a(this.a); } }
この様になるため、javascript上では問題なく動作するが、変換の都合上コンストラクタのaと関数のaが重複してしまいローカルスコープが参照されるため実行エラーになる。
The text was updated successfully, but these errors were encountered:
classの生成方法を変えたほうがいいかもしれない
Sorry, something went wrong.
No branches or pull requests
classを定義したときに、コンストラクタが変換時に関数になる仕様上terserが想定していない動きになってしまっている
例えば
としたとき、
この様になるため、javascript上では問題なく動作するが、変換の都合上コンストラクタのaと関数のaが重複してしまいローカルスコープが参照されるため実行エラーになる。
The text was updated successfully, but these errors were encountered: