rollup-plugin-visualizer
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "rollup-plugin-visualizer", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "plugin.js", | ||
@@ -5,0 +5,0 @@ "author": "Denis Bardadym <bardadymchik@gmail.com>", |
@@ -41,2 +41,3 @@ "use strict"; | ||
for (const [id, bundle] of Object.entries(outputBundle)) { | ||
//console.log(id, bundle); | ||
if (bundle.isAsset) continue; //only chunks | ||
@@ -48,2 +49,3 @@ | ||
const root = buildTree(bundle, useSourceMap); | ||
flattenTree(root); | ||
@@ -133,3 +135,7 @@ roots.push({ id, root }); | ||
const commonParent = getDeepMoreThenOneChild(child); | ||
newChildren = newChildren.concat(commonParent.children); | ||
if (commonParent.children.length === 0) { | ||
newChildren.push(commonParent); | ||
} else { | ||
newChildren = newChildren.concat(commonParent.children); | ||
} | ||
}); | ||
@@ -136,0 +142,0 @@ root.children = newChildren; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
138221
3989