rollup-plugin-uglify
Advanced tools
Comparing version 6.0.2 to 6.0.3
18
index.js
@@ -10,10 +10,14 @@ const { codeFrameColumns } = require("@babel/code-frame"); | ||
const minifierOptions = serialize( | ||
Object.assign({}, userOptions, { | ||
sourceMap: userOptions.sourcemap !== false, | ||
sourcemap: undefined, | ||
numWorkers: undefined | ||
}) | ||
); | ||
const normalizedOptions = Object.assign({}, userOptions, { | ||
sourceMap: userOptions.sourcemap !== false | ||
}); | ||
["sourcemap"].forEach(key => { | ||
if (normalizedOptions.hasOwnProperty(key)) { | ||
delete normalizedOptions[key]; | ||
} | ||
}); | ||
const minifierOptions = serialize(normalizedOptions); | ||
return { | ||
@@ -20,0 +24,0 @@ name: "uglify", |
{ | ||
"name": "rollup-plugin-uglify", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"description": "Rollup plugin to minify generated bundle", | ||
@@ -29,3 +29,3 @@ "main": "index.js", | ||
"jest-worker": "^24.0.0", | ||
"serialize-javascript": "^1.6.1", | ||
"serialize-javascript": "^1.9.0", | ||
"uglify-js": "^3.4.9" | ||
@@ -32,0 +32,0 @@ }, |
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
5666
52
Updatedserialize-javascript@^1.9.0