Given the following TypeScript:
export default class {
static x = 1;
}
We emit the following JavaScript:
export default class {
}
default_1.x = 1; // TypeError: Cannot set property 'x' of undefined
Where we should emit the following instead:
export default class default_1 { // generated
}
default_1.x = 1;
Given the following TypeScript:
We emit the following JavaScript:
Where we should emit the following instead: