Annotating transformed classes with #__PURE__ comment (#6209)

This commit is contained in:
Mateusz Burzyński
2017-09-11 17:18:37 +02:00
committed by Henry Zhu
parent c4f6a7a06f
commit c47258d68c
81 changed files with 299 additions and 112 deletions

View File

@@ -2,7 +2,9 @@ import _classCallCheck from "babel-runtime/helpers/builtin/es6/classCallCheck";
import _possibleConstructorReturn from "babel-runtime/helpers/builtin/es6/possibleConstructorReturn";
import _inherits from "babel-runtime/helpers/builtin/es6/inherits";
let Foo = function (_Bar) {
let Foo =
/*#__PURE__*/
function (_Bar) {
_inherits(Foo, _Bar);
function Foo() {

View File

@@ -2,7 +2,9 @@ import _classCallCheck from "babel-runtime/helpers/builtin/classCallCheck";
import _possibleConstructorReturn from "babel-runtime/helpers/builtin/possibleConstructorReturn";
import _inherits from "babel-runtime/helpers/builtin/inherits";
let Foo = function (_Bar) {
let Foo =
/*#__PURE__*/
function (_Bar) {
_inherits(Foo, _Bar);
function Foo() {

View File

@@ -3,7 +3,9 @@ import _classCallCheck from "babel-runtime/helpers/es6/classCallCheck";
import _possibleConstructorReturn from "babel-runtime/helpers/es6/possibleConstructorReturn";
import _inherits from "babel-runtime/helpers/es6/inherits";
let Foo = function (_Bar) {
let Foo =
/*#__PURE__*/
function (_Bar) {
_inherits(Foo, _Bar);
function Foo() {