Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable
external-helpers
by default in tests (#12911)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
- Loading branch information
1 parent
bfd30b9
commit ea6a438
Showing
591 changed files
with
1,859 additions
and
4,233 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
3 changes: 0 additions & 3 deletions
3
packages/babel-core/test/fixtures/transformation/misc/options.json
This file was deleted.
Oops, something went wrong.
6 changes: 1 addition & 5 deletions
6
packages/babel-core/test/fixtures/transformation/misc/regression-1155/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": [ | ||
"transform-classes", | ||
["external-helpers", { "helperVersion": "7.100.0" }], | ||
"transform-block-scoping" | ||
] | ||
"plugins": ["transform-classes", "transform-block-scoping"] | ||
} |
6 changes: 1 addition & 5 deletions
6
packages/babel-core/test/fixtures/transformation/misc/regression-2765/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": [ | ||
"transform-arrow-functions", | ||
"transform-async-to-generator", | ||
"external-helpers" | ||
] | ||
"plugins": ["transform-arrow-functions", "transform-async-to-generator"] | ||
} |
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
packages/babel-core/test/fixtures/transformation/misc/regression-4855/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,5 @@ | ||
{ | ||
"compact": false, | ||
"presets": ["env"], | ||
"plugins": [ | ||
["external-helpers", { "helperVersion": "7.1.5" }], | ||
"proposal-object-rest-spread" | ||
] | ||
"plugins": ["proposal-object-rest-spread"] | ||
} |
6 changes: 1 addition & 5 deletions
6
packages/babel-core/test/fixtures/transformation/source-maps/class/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": [ | ||
"external-helpers", | ||
"transform-classes", | ||
"transform-block-scoping" | ||
] | ||
"plugins": ["transform-classes", "transform-block-scoping"] | ||
} |
3 changes: 0 additions & 3 deletions
3
packages/babel-core/test/fixtures/transformation/source-maps/options.json
This file was deleted.
Oops, something went wrong.
7 changes: 2 additions & 5 deletions
7
...xtures/plugin-proposal-class-properties/recursive-class-property-type-challenge/output.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,13 +1,10 @@ | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
|
||
const sym = Symbol(); | ||
const sym1 = Symbol(); | ||
|
||
class A { | ||
constructor() { | ||
_defineProperty(this, sym, void 0); | ||
|
||
_defineProperty(this, sym1, void 0); | ||
babelHelpers.defineProperty(this, sym, void 0); | ||
babelHelpers.defineProperty(this, sym1, void 0); | ||
} | ||
|
||
} |
4 changes: 1 addition & 3 deletions
4
...in/test/fixtures/plugin-proposal-class-properties/recursive-class-property-type/output.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,10 +1,8 @@ | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
|
||
const sym = Symbol(); | ||
|
||
class A { | ||
constructor() { | ||
_defineProperty(this, sym, void 0); | ||
babelHelpers.defineProperty(this, sym, void 0); | ||
} | ||
|
||
} |
34 changes: 1 addition & 33 deletions
34
...eatures-plugin/test/fixtures/plugin-proposal-decorators/ignore-abstract-methods/output.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
6 changes: 1 addition & 5 deletions
6
...-class-features-plugin/test/fixtures/plugin-proposal-private-methods/loose-true/output.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
Oops, something went wrong.