UNPKG

babel-core

Version:

Turn ES6 code into readable vanilla ES5 with source maps

30 lines (19 loc) 1.06 kB
"use strict"; var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { "default": obj }; }; var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; var t = _interopRequireWildcard(require("../../types")); var IgnoreFormatter = (function () { function IgnoreFormatter() { _classCallCheck(this, IgnoreFormatter); } IgnoreFormatter.prototype.exportDeclaration = function exportDeclaration(node, nodes) { var declar = t.toStatement(node.declaration, true); if (declar) nodes.push(t.inherits(declar, node)); }; IgnoreFormatter.prototype.exportAllDeclaration = function exportAllDeclaration() {}; IgnoreFormatter.prototype.importDeclaration = function importDeclaration() {}; IgnoreFormatter.prototype.importSpecifier = function importSpecifier() {}; IgnoreFormatter.prototype.exportSpecifier = function exportSpecifier() {}; return IgnoreFormatter; })(); module.exports = IgnoreFormatter;