remove unused variables
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user