rollup-plugin-visualizer
Advanced tools
Comparing version 2.4.3 to 2.4.4
{ | ||
"name": "rollup-plugin-visualizer", | ||
"version": "2.4.3", | ||
"version": "2.4.4", | ||
"main": "plugin/index.js", | ||
@@ -45,3 +45,3 @@ "author": "Denis Bardadym <bardadymchik@gmail.com>", | ||
"del-cli": "^2.0.0", | ||
"eslint": "^5.14.1", | ||
"eslint": "^6.0.1", | ||
"postcss-url": "^8.0.0", | ||
@@ -48,0 +48,0 @@ "prettier": "^1.16.4", |
@@ -29,2 +29,6 @@ "use strict"; | ||
const WARN_SOURCEMAP_DISABLED = | ||
"rollup output configuration missing sourcemap = true. You should add output.sourcemap = true or disable sourcemap in this plugin"; | ||
const WARN_SOURCEMAP_MISSING = id => `${id} missing source map`; | ||
module.exports = function(opts) { | ||
@@ -34,2 +38,3 @@ opts = opts || {}; | ||
const title = opts.title || "RollUp Visualizer"; | ||
const useSourceMap = !!opts.sourcemap; | ||
@@ -45,2 +50,6 @@ const open = !!opts.open; | ||
async generateBundle(outputOptions, outputBundle) { | ||
if (useSourceMap && !outputOptions.sourcemap) { | ||
this.warn(WARN_SOURCEMAP_DISABLED); | ||
} | ||
const roots = []; | ||
@@ -52,2 +61,5 @@ | ||
if (useSourceMap) { | ||
if (!bundle.map) { | ||
this.warn(WARN_SOURCEMAP_MISSING(id)); | ||
} | ||
await addMinifiedSizesToModules(bundle); | ||
@@ -54,0 +66,0 @@ } |
Sorry, the diff of this file is too big to display
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
1227548
22
11894