diff --git a/lib/6to5/transformation/modules/common-interop.js b/lib/6to5/transformation/modules/common-interop.js index ad378606c0..d8ffdf134e 100644 --- a/lib/6to5/transformation/modules/common-interop.js +++ b/lib/6to5/transformation/modules/common-interop.js @@ -3,9 +3,8 @@ module.exports = CommonJSInteropFormatter; var CommonJSFormatter = require("./common"); var util = require("../../util"); var t = require("../../types"); -var _ = require("lodash"); -function CommonJSInteropFormatter(file) { +function CommonJSInteropFormatter() { this.has = false; CommonJSFormatter.apply(this, arguments); } @@ -29,7 +28,7 @@ CommonJSInteropFormatter.prototype.importSpecifier = function (specifier, node, } }; -CommonJSInteropFormatter.prototype.export = function (node, nodes, parent) { +CommonJSInteropFormatter.prototype.export = function (node, nodes) { if (node.default && !this.has) { var declar = node.declaration; @@ -48,7 +47,7 @@ CommonJSInteropFormatter.prototype.export = function (node, nodes, parent) { CommonJSFormatter.prototype.export.apply(this, arguments); }; -CommonJSInteropFormatter.prototype.exportSpecifier = function (specifier, node, nodes) { +CommonJSInteropFormatter.prototype.exportSpecifier = function () { this.has = true; CommonJSFormatter.prototype.exportSpecifier.apply(this, arguments); };