Update Class Fields to Stage 3 and change default behavior (#6076)

* add transform-class-properties to stage 3, set spec mode to default

* update readme with examples; use `buildUndefinedNode()`; change behavior to always define both static and nonstatic class properties regardless of spec/loose mode; update tests
This commit is contained in:
Noah Lemen
2017-08-10 11:19:49 -04:00
committed by Henry Zhu
parent 9c91e35ce4
commit 4fdd75695b
74 changed files with 196 additions and 135 deletions

View File

@@ -2,6 +2,7 @@ class X {
constructor() {
this.a = 2;
this.b = '3';
this.c = void 0;
}
}

View File

@@ -1,6 +1,6 @@
{
"plugins": [
"transform-flow-comments",
"transform-class-properties"
["transform-class-properties", {"loose": true}]
]
}