From dedbf050b0fc49ecc93048c01e05d67b51013a1b Mon Sep 17 00:00:00 2001 From: Brian Ng Date: Sun, 4 Dec 2016 11:24:52 -0600 Subject: [PATCH] Tweak simpify README [skip ci] --- packages/babel-plugin-minify-simplify/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/babel-plugin-minify-simplify/README.md b/packages/babel-plugin-minify-simplify/README.md index fc3fe158c..7bdb097d7 100644 --- a/packages/babel-plugin-minify-simplify/README.md +++ b/packages/babel-plugin-minify-simplify/README.md @@ -5,6 +5,7 @@ This plugin will transform code in mainly two ways: 1. Reduce as much statements as possible into expressions **In** + ```js function foo() { if (x) a(); @@ -16,6 +17,7 @@ function foo2() { ``` **Out** + ```js function foo() { x && a(); @@ -28,6 +30,7 @@ function foo2() { 2. Make expressions as uniform as possible for better compressibility **In** + ```js undefined foo['bar'] @@ -35,6 +38,7 @@ Number(foo) ``` **Out** + ```js void 0 foo.bar