When useDefineForClassFields is enabled,
class Foo {
constructor(public b1 = 2.1) {
}
}
is transformed to
class Foo {
constructor(b1 = 2.1) {
this.b1 = b1;
}
}
playground.
But it should be transformed to
class Foo {
b1;
constructor(b1 = 2.1) {
this.b1 = b1;
}
}
(TS playground).
refs evanw/esbuild#4421
When
useDefineForClassFieldsis enabled,is transformed to
playground.
But it should be transformed to
(TS playground).
refs evanw/esbuild#4421