Skip to content

Commit

Permalink
Return a name
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Jun 23, 2016
1 parent 6f6a2f8 commit f6aadac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -2,6 +2,8 @@ import { minify } from 'uglify-js';

export default function uglify(options = {}, minifier = minify) {
return {
name: 'uglify',

transformBundle(code) {
options.fromString = true;
delete options.inSourceMap;
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "rollup-plugin-uglify",
"version": "0.3.1",
"version": "1.0.1",
"description": "Rollup plugin to minify generated bundle",
"main": "dist/rollup-plugin-uglify.js",
"jsnext:main": "dist/rollup-plugin-uglify.mjs",
Expand Down

0 comments on commit f6aadac

Please sign in to comment.