Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54aa6e2
commit c188fc4
Showing
8 changed files
with
16 additions
and
12 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
2 changes: 1 addition & 1 deletion
2
...es/babel-plugin-transform-typescript/test/fixtures/class/declare-not-enabled/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-typescript"], | ||
"throws": "The 'declare' modifier is only allowed when the 'declareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled." | ||
"throws": "The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled." | ||
} |
2 changes: 1 addition & 1 deletion
2
...abel-plugin-transform-typescript/test/fixtures/class/declare-not-initialized/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-typescript", { "declareFields": true }]] | ||
"plugins": [["transform-typescript", { "allowDeclareFields": true }]] | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/babel-plugin-transform-typescript/test/fixtures/class/declare/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-typescript", { "declareFields": true }]] | ||
"plugins": [["transform-typescript", { "allowDeclareFields": true }]] | ||
} |
2 changes: 1 addition & 1 deletion
2
...form-typescript/test/fixtures/class/transform-properties-declare-wrong-order/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,7 @@ | ||
{ | ||
"plugins": [ | ||
"proposal-class-properties", | ||
["transform-typescript", { "declareFields": true }] | ||
["transform-typescript", { "allowDeclareFields": true }] | ||
], | ||
"throws": "TypeScript 'declare' fields must first be transformed by @babel/plugin-transform-typescript.\nIf you have already enabled that plugin (or '@babel/preset-typescript'), make sure that it runs before any plugin related to additional class features:\n - @babel/plugin-proposal-class-properties\n - @babel/plugin-proposal-private-methods\n - @babel/plugin-proposal-decorators" | ||
} |
2 changes: 1 addition & 1 deletion
2
...plugin-transform-typescript/test/fixtures/class/transform-properties-declare/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,6 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["transform-typescript", { "declareFields": true }], | ||
["transform-typescript", { "allowDeclareFields": true }], | ||
"proposal-class-properties" | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
...m-typescript/test/fixtures/class/uninitialized-definite-with-declare-enabled/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-typescript", { "declareFields": true }]] | ||
"plugins": [["transform-typescript", { "allowDeclareFields": true }]] | ||
} |
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