rollup-plugin-visualizer
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "rollup-plugin-visualizer", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "plugin.js", | ||
@@ -17,3 +17,4 @@ "author": "Denis Bardadym <bardadymchik@gmail.com>", | ||
"build": "npm run buildplugin", | ||
"buildplugin": "rollup -c rollup.config.js -o ./lib/pluginmain.js" | ||
"buildplugin": "rollup -c rollup.config.js -o ./lib/pluginmain.js", | ||
"prepublish": "npm run build" | ||
}, | ||
@@ -31,4 +32,5 @@ "dependencies": {}, | ||
"rollup-plugin-commonjs": "^5.0.5", | ||
"rollup-plugin-node-resolve": "^2.0.0" | ||
"rollup-plugin-node-resolve": "^2.0.0", | ||
"rollup-plugin-uglify": "^1.0.1" | ||
} | ||
} |
@@ -11,2 +11,3 @@ const fs = require('fs'); | ||
module.exports = function(opts) { | ||
opts = opts || {}; | ||
var filename = opts.filename || 'stats.html'; | ||
@@ -73,3 +74,3 @@ | ||
function getDeepMoreThenOneChild(tree) { | ||
if (tree.children.length === 1) { | ||
if (tree.children && tree.children.length === 1) { | ||
return getDeepMoreThenOneChild(tree.children[0]); | ||
@@ -76,0 +77,0 @@ } |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
80915
11
478
1