-
Notifications
You must be signed in to change notification settings - Fork 801
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add babel-plugin-transform-class-properties to class-properties babel…
… fixtures - using only babel-plugin-syntax-class-properties produces invalid output
- Loading branch information
Showing
28 changed files
with
83 additions
and
66 deletions.
There are no files selected for viewing
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": ["syntax-class-properties", "../../../../../src/babel"] | ||
"plugins": ["../../../../../src/babel", "transform-class-properties"] | ||
} |
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
4 changes: 2 additions & 2 deletions
4
test/babel/fixtures/class-properties/async-functions-expression-body/.babelrc
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,7 @@ | ||
{ | ||
"plugins": [ | ||
"../../../../../src/babel", | ||
"transform-class-properties", | ||
"syntax-async-functions", | ||
"syntax-class-properties", | ||
"../../../../../src/babel" | ||
] | ||
} |
6 changes: 3 additions & 3 deletions
6
test/babel/fixtures/class-properties/async-functions-expression-body/expected.js
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
4 changes: 2 additions & 2 deletions
4
test/babel/fixtures/class-properties/async-functions/.babelrc
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,7 @@ | ||
{ | ||
"plugins": [ | ||
"../../../../../src/babel", | ||
"transform-class-properties", | ||
"syntax-async-functions", | ||
"syntax-class-properties", | ||
"../../../../../src/babel" | ||
] | ||
} |
6 changes: 3 additions & 3 deletions
6
test/babel/fixtures/class-properties/async-functions/expected.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"plugins": ["syntax-class-properties", "../../../../../src/babel"] | ||
"plugins": ["../../../../../src/babel", "transform-class-properties"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"plugins": ["syntax-class-properties", "../../../../../src/babel"] | ||
"plugins": ["../../../../../src/babel", "transform-class-properties"] | ||
} |
6 changes: 3 additions & 3 deletions
6
test/babel/fixtures/class-properties/default-params/expected.js
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
test/babel/fixtures/class-properties/destructured-params/.babelrc
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": ["syntax-class-properties", "../../../../../src/babel"] | ||
"plugins": ["../../../../../src/babel", "transform-class-properties"] | ||
} |
6 changes: 3 additions & 3 deletions
6
test/babel/fixtures/class-properties/destructured-params/expected.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"plugins": ["syntax-class-properties", "../../../../../src/babel"] | ||
"plugins": ["../../../../../src/babel", "transform-class-properties"] | ||
} |
6 changes: 3 additions & 3 deletions
6
test/babel/fixtures/class-properties/expression-body/expected.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"plugins": ["syntax-class-properties", "../../../../../src/babel"] | ||
"plugins": ["../../../../../src/babel", "transform-class-properties"] | ||
} |
14 changes: 8 additions & 6 deletions
14
test/babel/fixtures/class-properties/nested-arguments/expected.js
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
test/babel/fixtures/class-properties/nested-new.target/.babelrc
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": ["syntax-class-properties", "../../../../../src/babel"] | ||
"plugins": ["../../../../../src/babel", "transform-class-properties"] | ||
} |
13 changes: 8 additions & 5 deletions
13
test/babel/fixtures/class-properties/nested-new.target/expected.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"plugins": ["syntax-class-properties", "../../../../../src/babel"] | ||
"plugins": ["../../../../../src/babel", "transform-class-properties"] | ||
} |
11 changes: 7 additions & 4 deletions
11
test/babel/fixtures/class-properties/new.target/expected.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"plugins": ["syntax-class-properties", "../../../../../src/babel"] | ||
"plugins": ["../../../../../src/babel", "transform-class-properties"] | ||
} |
5 changes: 4 additions & 1 deletion
5
test/babel/fixtures/class-properties/not-a-function/expected.js
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,5 +1,8 @@ | ||
class Foo { | ||
bar = 2; | ||
constructor() { | ||
this.bar = 2; | ||
} | ||
|
||
} | ||
; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
test/babel/fixtures/class-properties/not-an-arrow-function/.babelrc
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": ["syntax-class-properties", "../../../../../src/babel"] | ||
"plugins": ["../../../../../src/babel", "transform-class-properties"] | ||
} |
9 changes: 6 additions & 3 deletions
9
test/babel/fixtures/class-properties/not-an-arrow-function/expected.js
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
test/babel/fixtures/class-properties/same-name-as-class-method/.babelrc
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": ["syntax-class-properties", "../../../../../src/babel"] | ||
"plugins": ["../../../../../src/babel", "transform-class-properties"] | ||
} |
6 changes: 3 additions & 3 deletions
6
test/babel/fixtures/class-properties/same-name-as-class-method/expected.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"plugins": ["syntax-class-properties", "../../../../../src/babel"] | ||
"plugins": ["../../../../../src/babel", "transform-class-properties"] | ||
} |
11 changes: 6 additions & 5 deletions
11
test/babel/fixtures/class-properties/static-property/expected.js
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