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>
This commit is contained in:
@@ -5,18 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
||||
});
|
||||
exports.Test = void 0;
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||
|
||||
var Test = /*#__PURE__*/function () {
|
||||
function Test() {
|
||||
_classCallCheck(this, Test);
|
||||
babelHelpers.classCallCheck(this, Test);
|
||||
}
|
||||
|
||||
_createClass(Test, [{
|
||||
babelHelpers.createClass(Test, [{
|
||||
key: "invite",
|
||||
value: function invite() {
|
||||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
@@ -24,7 +18,6 @@ var Test = /*#__PURE__*/function () {
|
||||
console.log(this);
|
||||
}
|
||||
}]);
|
||||
|
||||
return Test;
|
||||
}();
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"plugins": [
|
||||
"proposal-class-properties",
|
||||
["external-helpers", { "helperVersion": "7.100.0" }],
|
||||
"syntax-typescript",
|
||||
"syntax-flow",
|
||||
"transform-parameters",
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"plugins": [
|
||||
["proposal-class-properties", { "loose": true }],
|
||||
"external-helpers",
|
||||
"syntax-flow",
|
||||
"transform-parameters",
|
||||
"transform-block-scoping",
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"plugins": [
|
||||
"external-helpers",
|
||||
"transform-parameters",
|
||||
"transform-async-to-generator",
|
||||
"transform-arrow-functions"
|
||||
|
||||
Reference in New Issue
Block a user