Annotating transformed classes with #__PURE__ comment (#6209)
This commit is contained in:
committed by
Henry Zhu
parent
c4f6a7a06f
commit
c47258d68c
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user