rollup-plugin-visualizer
Advanced tools
Comparing version 0.7.0 to 0.8.0
{ | ||
"name": "rollup-plugin-visualizer", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"main": "plugin.js", | ||
@@ -16,4 +16,4 @@ "author": "Denis Bardadym <bardadymchik@gmail.com>", | ||
"scripts": { | ||
"build": "npm run buildplugin", | ||
"buildplugin": "rollup -c rollup.config.js -o ./lib/pluginmain.js", | ||
"build": "rollup -c rollup.config.js -o ./lib/pluginmain.js", | ||
"build:dev": "rollup -c rollup.config-dev.js -o ./lib/pluginmain.js", | ||
"prepare": "npm run build" | ||
@@ -20,0 +20,0 @@ }, |
@@ -25,10 +25,7 @@ "use strict"; | ||
generateBundle(outputOptions, outputBundle) { | ||
//XXX fix how multi entry files rendered | ||
//XXX not sure what is a best UI | ||
//XXX maybe multiple circles? | ||
Object.keys(outputBundle).forEach(id => { | ||
const root = Object.keys(outputBundle).map(id => { | ||
const bundle = outputBundle[id]; | ||
if (useSourceMap) { | ||
return addMinifiedSizesToModules(bundle); | ||
addMinifiedSizesToModules(bundle); | ||
} | ||
@@ -39,5 +36,7 @@ | ||
const html = buildHtml(title, root, filename); | ||
return writeFile(filename, html); | ||
return { id, root }; | ||
}); | ||
const html = buildHtml(title, root, filename); | ||
return writeFile(filename, html); | ||
} | ||
@@ -78,9 +77,3 @@ }; | ||
<div id="chart"> | ||
<div class="details" style="display: none;"> | ||
<span class="details-name"></span> | ||
<div class="details-percentage"></div> | ||
of bundle size | ||
<div class="details-size"></div> | ||
</div> | ||
<div id="charts"> | ||
</div> | ||
@@ -87,0 +80,0 @@ </div> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
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
142057
0
3940