UNPKG

webpack-bundle-analyzer

Version:

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap

33 lines (25 loc) 458 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; class Node { constructor(name, parent) { this.name = name; this.parent = parent; } get path() { const path = []; let node = this; while (node) { path.push(node.name); node = node.parent; } return path.reverse().join('/'); } get isRoot() { return !this.parent; } } exports.default = Node; ;