UNPKG

fuse-box

Version:

Fuse-Box a bundler that does it right

20 lines (18 loc) 531 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const GenericAst_1 = require("./GenericAst"); class NamedExport { constructor() { this.isUsed = false; this.eligibleForTreeShaking = true; this.nodes = new Set(); } addNode(ast, prop, node) { this.nodes.add(new GenericAst_1.GenericAst(ast, prop, node)); } remove() { this.nodes.forEach(item => item.remove()); } } exports.NamedExport = NamedExport; //# sourceMappingURL=NamedExport.js.map