Socket
Socket
Sign inDemoInstall

rollup-plugin-visualizer

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-visualizer - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc