-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Archive
@babel/plugin-syntax-class-properties
(#13232)
- Loading branch information
1 parent
437a6f3
commit 910b1f2
Showing
79 changed files
with
74 additions
and
255 deletions.
There are no files selected for viewing
3 changes: 0 additions & 3 deletions
3
...e/test/fixtures/transformation/misc/class-property-initializer-blocks-shadow/options.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...ugin-proposal-class-properties/test/fixtures/assumption-setPublicClassFields/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
...-properties/test/fixtures/assumption-setPublicClassFields/static-super-loose/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...-plugin-proposal-class-properties/test/fixtures/private-loose/native-classes/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["proposal-class-properties", { "loose": true }], | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
"transform-block-scoping" | ||
] | ||
} |
3 changes: 1 addition & 2 deletions
3
...n-proposal-class-properties/test/fixtures/private-loose/non-block-arrow-func/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["proposal-class-properties", { "loose": true }], | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
"transform-block-scoping" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...bel-plugin-proposal-class-properties/test/fixtures/private-loose/reevaluated/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["proposal-class-properties", { "loose": true }], | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
"transform-block-scoping" | ||
] | ||
} |
3 changes: 1 addition & 2 deletions
3
...l-plugin-proposal-class-properties/test/fixtures/private-loose/static-export/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["proposal-class-properties", { "loose": true }], | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
"transform-block-scoping" | ||
] | ||
} |
3 changes: 1 addition & 2 deletions
3
...ugin-proposal-class-properties/test/fixtures/private-loose/static-infer-name/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["proposal-class-properties", { "loose": true }], | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
"transform-block-scoping" | ||
] | ||
} |
3 changes: 1 addition & 2 deletions
3
...lugin-proposal-class-properties/test/fixtures/private-loose/static-inherited/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["proposal-class-properties", { "loose": true }], | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
"transform-block-scoping" | ||
] | ||
} |
3 changes: 1 addition & 2 deletions
3
...lugin-proposal-class-properties/test/fixtures/private-loose/static-undefined/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["proposal-class-properties", { "loose": true }], | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
"transform-block-scoping" | ||
] | ||
} |
3 changes: 1 addition & 2 deletions
3
...es/babel-plugin-proposal-class-properties/test/fixtures/private-loose/static/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["proposal-class-properties", { "loose": true }], | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
"transform-block-scoping" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
.../babel-plugin-proposal-class-properties/test/fixtures/private/native-classes/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{ | ||
"plugins": [ | ||
"proposal-class-properties", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
] | ||
"plugins": ["proposal-class-properties", "transform-block-scoping"] | ||
} |
6 changes: 1 addition & 5 deletions
6
...-plugin-proposal-class-properties/test/fixtures/private/non-block-arrow-func/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{ | ||
"plugins": [ | ||
"proposal-class-properties", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
] | ||
"plugins": ["proposal-class-properties", "transform-block-scoping"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
...ges/babel-plugin-proposal-class-properties/test/fixtures/private/reevaluated/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{ | ||
"plugins": [ | ||
"proposal-class-properties", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
] | ||
"plugins": ["proposal-class-properties", "transform-block-scoping"] | ||
} |
6 changes: 1 addition & 5 deletions
6
...abel-plugin-proposal-class-properties/test/fixtures/private/regression-T2983/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{ | ||
"plugins": [ | ||
"proposal-class-properties", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
] | ||
"plugins": ["proposal-class-properties", "transform-block-scoping"] | ||
} |
6 changes: 1 addition & 5 deletions
6
...abel-plugin-proposal-class-properties/test/fixtures/private/regression-T6719/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{ | ||
"plugins": [ | ||
"proposal-class-properties", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
] | ||
"plugins": ["proposal-class-properties", "transform-block-scoping"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
...s/babel-plugin-proposal-class-properties/test/fixtures/private/static-export/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{ | ||
"plugins": [ | ||
"proposal-class-properties", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
] | ||
"plugins": ["proposal-class-properties", "transform-block-scoping"] | ||
} |
6 changes: 1 addition & 5 deletions
6
...bel-plugin-proposal-class-properties/test/fixtures/private/static-infer-name/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{ | ||
"plugins": [ | ||
"proposal-class-properties", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
] | ||
"plugins": ["proposal-class-properties", "transform-block-scoping"] | ||
} |
6 changes: 1 addition & 5 deletions
6
...abel-plugin-proposal-class-properties/test/fixtures/private/static-inherited/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{ | ||
"plugins": [ | ||
"proposal-class-properties", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
] | ||
"plugins": ["proposal-class-properties", "transform-block-scoping"] | ||
} |
6 changes: 1 addition & 5 deletions
6
...abel-plugin-proposal-class-properties/test/fixtures/private/static-undefined/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{ | ||
"plugins": [ | ||
"proposal-class-properties", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
] | ||
"plugins": ["proposal-class-properties", "transform-block-scoping"] | ||
} |
6 changes: 1 addition & 5 deletions
6
packages/babel-plugin-proposal-class-properties/test/fixtures/private/static/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{ | ||
"plugins": [ | ||
"proposal-class-properties", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
] | ||
"plugins": ["proposal-class-properties", "transform-block-scoping"] | ||
} |
2 changes: 1 addition & 1 deletion
2
...ss-properties/test/fixtures/public-loose/arrow-static-this-without-transform/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"plugins": ["transform-arrow-functions", "syntax-class-properties"] | ||
"plugins": ["transform-arrow-functions"] | ||
} |
2 changes: 1 addition & 1 deletion
2
...sal-class-properties/test/fixtures/public-loose/arrow-this-without-transform/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": ["transform-arrow-functions", "syntax-class-properties"], | ||
"plugins": ["transform-arrow-functions"], | ||
"throws": "Unable to transform arrow inside class property" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...al-class-properties/test/fixtures/public/arrow-static-this-without-transform/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"plugins": ["transform-arrow-functions", "syntax-class-properties"] | ||
"plugins": ["transform-arrow-functions"] | ||
} |
2 changes: 1 addition & 1 deletion
2
...-proposal-class-properties/test/fixtures/public/arrow-this-without-transform/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": ["transform-arrow-functions", "syntax-class-properties"], | ||
"plugins": ["transform-arrow-functions"], | ||
"throws": "Unable to transform arrow inside class property" | ||
} |
6 changes: 1 addition & 5 deletions
6
...s/babel-plugin-proposal-class-properties/test/fixtures/public/native-classes/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
{ | ||
"minNodeVersion": "6.0.0", | ||
"plugins": [ | ||
"proposal-class-properties", | ||
"transform-block-scoping", | ||
"syntax-class-properties" | ||
] | ||
"plugins": ["proposal-class-properties", "transform-block-scoping"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...es/babel-plugin-proposal-class-static-block/test/fixtures/class-static-block/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": ["proposal-class-static-block", "syntax-class-properties"], | ||
"plugins": ["proposal-class-static-block"], | ||
"minNodeVersion": "12.0.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.