Merge pull request #6280 from loganfsmyth/only-transform-modules

Only transform 'this'->'undefined' and inject 'use strict' if module statements are present
This commit is contained in:
Logan Smyth
2017-09-23 11:24:52 -07:00
committed by GitHub
35 changed files with 87 additions and 71 deletions

View File

@@ -1,5 +1,3 @@
"use strict";
var A =
/*#__PURE__*/
function (_B) {

View File

@@ -1,5 +1,3 @@
"use strict";
var x = {
Foo:
/*#__PURE__*/

View File

@@ -1,5 +1,3 @@
"use strict";
var A = function A() {
babelHelpers.classCallCheck(this, A);
};

View File

@@ -1,5 +1,3 @@
"use strict";
var A =
/*#__PURE__*/
function () {

View File

@@ -1,5 +1,3 @@
"use strict";
var Example =
/*#__PURE__*/
function () {

View File

@@ -1,5 +1,3 @@
"use strict";
var Foo =
/*#__PURE__*/
function () {

View File

@@ -1,5 +1,3 @@
"use strict";
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }