Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend
hasPlugin
to accept plugin-configuration array pairs (#13982)
Co-authored-by: Nicol貌 Ribaudo <nicolo.ribaudo@gmail.com>
- Loading branch information
1 parent
ecae53a
commit f4236f4
Showing
42 changed files
with
165 additions
and
94 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
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
1 change: 0 additions & 1 deletion
1
...test/fixtures/esprima/es2015-export-declaration/invalid-export-default-token/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,3 @@ | ||
{ | ||
"sourceType": "module", | ||
"throws": "Unexpected token (1:18)" | ||
} |
5 changes: 3 additions & 2 deletions
5
...arser/test/fixtures/esprima/es2015-export-declaration/invalid-export-default/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,4 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'exportDefaultFrom' (1:7)" | ||
} | ||
"sourceType": "module", | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"exportDefaultFrom\". (1:7)" | ||
} |
4 changes: 2 additions & 2 deletions
4
...st/fixtures/experimental/_no-plugin/async-do-expressions-with-do-expressions/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'asyncDoExpressions' (1:7)", | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"asyncDoExpressions\". (1:7)", | ||
"plugins": [ | ||
"doExpressions" | ||
] | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...ages/babel-parser/test/fixtures/experimental/_no-plugin/async-do-expressions/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'doExpressions' (1:7)", | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"doExpressions\". (1:7)", | ||
"plugins": [] | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/babel-parser/test/fixtures/experimental/_no-plugin/decimal/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'decimal' (1:2)" | ||
} | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"decimal\". (1:2)" | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/babel-parser/test/fixtures/experimental/_no-plugin/decorators/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling one of the following parser plugin(s): 'decorators-legacy, decorators' (1:0)", | ||
"throws": "This experimental syntax requires enabling one of the following parser plugin(s): \"decorators-legacy\", \"decorators\". (1:0)", | ||
"plugins": [] | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/babel-parser/test/fixtures/experimental/_no-plugin/do-expressions/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'doExpressions' (1:1)", | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"doExpressions\". (1:1)", | ||
"plugins": [] | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/babel-parser/test/fixtures/experimental/_no-plugin/export-default/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'exportDefaultFrom' (1:7)", | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"exportDefaultFrom\". (1:7)", | ||
"plugins": [] | ||
} |
4 changes: 2 additions & 2 deletions
4
...babel-parser/test/fixtures/experimental/_no-plugin/import-assertions-dynamic/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,5 +1,5 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'importAssertions' (1:24)", | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"importAssertions\". (1:24)", | ||
"sourceType": "module", | ||
"plugins": [] | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/babel-parser/test/fixtures/experimental/_no-plugin/import-assertions/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,5 +1,5 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'importAssertions' (1:27)", | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"importAssertions\". (1:27)", | ||
"sourceType": "module", | ||
"plugins": [] | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/babel-parser/test/fixtures/experimental/_no-plugin/module-attributes/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'moduleAttributes' (1:27)", | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"moduleAttributes\". (1:27)", | ||
"BABEL_8_BREAKING": false | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/babel-parser/test/fixtures/experimental/_no-plugin/module-blocks/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'moduleBlocks' (1:18)" | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"moduleBlocks\". (1:18)" | ||
} |
6 changes: 3 additions & 3 deletions
6
...est/fixtures/experimental/decorators-2/export-decorated-class-without-plugin/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,5 +1,5 @@ | ||
{ | ||
"plugins": null, | ||
"sourceType": "module", | ||
"throws": "This experimental syntax requires enabling one of the following parser plugin(s): 'decorators, decorators-legacy' (1:7)", | ||
"plugins": null | ||
} | ||
"throws": "This experimental syntax requires enabling one of the following parser plugin(s): \"decorators\", \"decorators-legacy\". (1:7)" | ||
} |
4 changes: 2 additions & 2 deletions
4
...st/fixtures/experimental/function-sent/disabled-function-keyword-declaration/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'functionSent' (2:11)" | ||
} | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"functionSent\". (2:11)" | ||
} |
4 changes: 2 additions & 2 deletions
4
...est/fixtures/experimental/function-sent/disabled-function-keyword-expression/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'functionSent' (2:12)" | ||
} | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"functionSent\". (2:12)" | ||
} |
4 changes: 2 additions & 2 deletions
4
...el-parser/test/fixtures/experimental/function-sent/disabled-inside-generator/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'functionSent' (2:18)" | ||
} | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"functionSent\". (2:18)" | ||
} |
5 changes: 3 additions & 2 deletions
5
...ges/babel-parser/test/fixtures/experimental/import-assertions/without-plugin/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,5 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'importAssertions' (1:27)", | ||
"plugins": [] | ||
"plugins": [], | ||
"sourceType": "module", | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"importAssertions\". (1:27)" | ||
} |
4 changes: 2 additions & 2 deletions
4
...ges/babel-parser/test/fixtures/experimental/module-attributes/without-plugin/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'moduleAttributes' (1:27)", | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"moduleAttributes\". (1:27)", | ||
"plugins": [] | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...ges/babel-parser/test/fixtures/experimental/pipeline-operator/no-plugin-pipe/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'pipelineOperator' (1:2)" | ||
} | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"pipelineOperator\". (1:2)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...es/babel-parser/test/fixtures/experimental/record-and-tuple/not-enabled-hash/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'recordAndTuple' (1:0)" | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"recordAndTuple\". (1:0)" | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/babel-parser/test/fixtures/experimental/throw-expression/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,3 +1,3 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'throwExpressions' (2:3)" | ||
} | ||
"throws": "This experimental syntax requires enabling the parser plugin: \"throwExpressions\". (2:3)" | ||
} |
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.