Skip to content

Commit

Permalink
Improve examples in README.md (#355)
Browse files Browse the repository at this point in the history
minify-dce doesn't transform `foo(0 && bar());` to `foo(0);` -- that minification is handled by minify-guarded-expressions.
  • Loading branch information
chrisvasz authored and boopathi committed Dec 22, 2016
1 parent 9591c73 commit df0d9d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/babel-plugin-minify-dead-code-elimination/README.md
Expand Up @@ -12,8 +12,10 @@ function bar() { var x = f(); }
function baz() {
var x = 1;
console.log(x);
function unused() {
return 5;
}
}
foo(0 && bar());
```

**Out**
Expand All @@ -24,7 +26,6 @@ function bar() { f(); }
function baz() {
console.log(1);
}
foo(0);
```

## Installation
Expand Down

0 comments on commit df0d9d9

Please sign in to comment.