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:
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-class-properties", "transform-react-constant-elements", "syntax-jsx"]
|
||||
"plugins": [["transform-class-properties", {"loose": true}], "transform-react-constant-elements", "syntax-jsx"]
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["syntax-jsx", "transform-react-constant-elements", "transform-class-properties"]
|
||||
"plugins": ["syntax-jsx", "transform-react-constant-elements", ["transform-class-properties", {"loose": true}]]
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["syntax-jsx", "transform-react-constant-elements", "transform-class-properties"]
|
||||
"plugins": ["syntax-jsx", "transform-react-constant-elements", ["transform-class-properties", {"loose": true}]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user