474-transform

This commit is contained in:
Brian Ng 2017-05-23 08:05:42 -05:00
parent 01d5d5ebc7
commit afe85c11a7
No known key found for this signature in database
GPG Key ID: 3F2380E1E1508CA9
4 changed files with 11 additions and 5 deletions

View File

@ -4,9 +4,9 @@ var A = function () {
} }
babelHelpers.createClass(A, [{ babelHelpers.createClass(A, [{
key: 'foo', key: "foo",
value: function foo() { value: function foo() {
return 'bar'; return "bar";
} }
}]); }]);
return A; return A;
@ -19,12 +19,12 @@ var B = function (_A) {
var _temp, _this, _ret; var _temp, _this, _ret;
babelHelpers.classCallCheck(this, B); babelHelpers.classCallCheck(this, B);
return _ret = (_temp = (_this = babelHelpers.possibleConstructorReturn(this, (B.__proto__ || Object.getPrototypeOf(B)).call(this, ...args)), _this), Object.defineProperty(_this, 'foo', { return _ret = (_temp = (_this = babelHelpers.possibleConstructorReturn(this, (B.__proto__ || Object.getPrototypeOf(B)).call(this, ...args)), _this), Object.defineProperty(_this, "foo", {
enumerable: true, enumerable: true,
writable: true, writable: true,
value: babelHelpers.get(B.prototype.__proto__ || Object.getPrototypeOf(B.prototype), 'foo', _this).call(_this) value: babelHelpers.get(B.prototype.__proto__ || Object.getPrototypeOf(B.prototype), "foo", _this).call(_this)
}), _temp), babelHelpers.possibleConstructorReturn(_this, _ret); }), _temp), babelHelpers.possibleConstructorReturn(_this, _ret);
} }
return B; return B;
}(A); }(A);

View File

@ -0,0 +1 @@
export * as default from "foo";

View File

@ -0,0 +1,2 @@
import * as _default from "foo";
export { _default as default };

View File

@ -0,0 +1,3 @@
{
"plugins": ["external-helpers", "transform-export-extensions"]
}