You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #10 from joeywatts/class-properties-esnext
Moves the transformation of class properties to the ESNext transformer.
Property initializers are moved to the constructor by the TypeScript transformer only if there is constructor parameter properties. This is to preserve property initialization order.
It currently does not produce void 0 initializers for property declarations that have no initializer due to ESNext and TypeScript having different runtime behaviors. TS completely elides property declarations with no initializer, while I believe the ESNext would define that property on the instance with an undefined value (which is observable at runtime - propertyName in instance or for (var prop in instance) {}).
||(node.name&&isComputedPropertyName(node.name))// While computed method names aren't typescript, the TS transform must visit them to emit property declarations correctly
||(node.name&&isComputedPropertyName(node.name))// While computed accessor names aren't typescript, the TS transform must visit them to emit property declarations correctly
0 commit comments