rollup-plugin-terser
Advanced tools
Comparing version 6.1.0 to 7.0.0
{ | ||
"name": "rollup-plugin-terser", | ||
"version": "6.1.0", | ||
"version": "7.0.0", | ||
"description": "Rollup plugin to minify generated es bundle", | ||
@@ -35,6 +35,6 @@ "type": "commonjs", | ||
"dependencies": { | ||
"@babel/code-frame": "^7.8.3", | ||
"jest-worker": "^26.0.0", | ||
"serialize-javascript": "^3.0.0", | ||
"terser": "^4.7.0" | ||
"@babel/code-frame": "^7.10.4", | ||
"jest-worker": "^26.2.1", | ||
"serialize-javascript": "^4.0.0", | ||
"terser": "^5.0.0" | ||
}, | ||
@@ -45,7 +45,7 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.9.6", | ||
"jest": "^26.0.1", | ||
"@babel/core": "^7.11.1", | ||
"jest": "^26.2.2", | ||
"prettier": "^2.0.5", | ||
"rollup": "^2.10.8" | ||
"rollup": "^2.23.1" | ||
} | ||
} |
@@ -5,10 +5,5 @@ const { minify } = require("terser"); | ||
const options = eval(`(${optionsString})`); | ||
const result = minify(code, options); | ||
if (result.error) { | ||
throw result.error; | ||
} else { | ||
return { result, nameCache: options.nameCache }; | ||
} | ||
return minify(code, options).then(result => ({ result, nameCache: options.nameCache })); | ||
}; | ||
exports.transform = transform; |
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
8578
109
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/source-map@0.3.6(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedserialize-javascript@4.0.0(transitive)
+ Addedterser@5.36.0(transitive)
- Removedserialize-javascript@3.1.0(transitive)
- Removedterser@4.8.1(transitive)
Updated@babel/code-frame@^7.10.4
Updatedjest-worker@^26.2.1
Updatedserialize-javascript@^4.0.0
Updatedterser@^5.0.0