Rename all proposal plugins to -proposal- from -transform- (#6570)

This commit is contained in:
Henry Zhu
2017-10-27 15:26:38 -04:00
committed by GitHub
parent a94aa54230
commit c41abd79a1
599 changed files with 372 additions and 372 deletions

View File

@@ -0,0 +1,3 @@
import Obj from "./file";
console.log(::Obj.method);

View File

@@ -0,0 +1,7 @@
"use strict";
var _file = _interopRequireDefault(require("./file"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
console.log(_file.default.method.bind(_file.default));

View File

@@ -0,0 +1,3 @@
{
"plugins": ["proposal-function-bind", "transform-es2015-modules-commonjs"]
}

View File

@@ -0,0 +1,12 @@
function one(){}
function two(){}
class Test1 {
one(){
one::two(1, 2)
}
two(){
one::two(1, 2)
}
}

View File

@@ -0,0 +1,31 @@
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; }
function _one() {}
function _two() {}
let Test1 =
/*#__PURE__*/
function () {
function Test1() {
_classCallCheck(this, Test1);
}
_createClass(Test1, [{
key: "one",
value: function one() {
_two.call(_one, 1, 2);
}
}, {
key: "two",
value: function two() {
_two.call(_one, 1, 2);
}
}]);
return Test1;
}();

View File

@@ -0,0 +1,3 @@
{
"plugins": ["proposal-function-bind", "transform-es2015-classes"]
}