diff --git a/packages/babel-plugin-minify-constant-folding/README.md b/packages/babel-plugin-minify-constant-folding/README.md index bbff19364..edb64895f 100644 --- a/packages/babel-plugin-minify-constant-folding/README.md +++ b/packages/babel-plugin-minify-constant-folding/README.md @@ -1,5 +1,7 @@ # babel-plugin-minify-constant-folding +Tries to evaluate expressions and inline the result. For now only deals with numbers and strings. + ## Example **In** @@ -7,11 +9,7 @@ ```javascript "a" + "b" 2 * 3; -1/3; 4 | 3; -a(), b(); -var x = 1; -foo(x); "b" + a + "c" + "d" + g + z + "f" + "h" + "z" ``` @@ -20,11 +18,7 @@ foo(x); ```javascript "ab"; 6; -1 / 3; 7; -a(), b(); -var x = 1; -foo(x); "b" + a + "cd" + g + z + "fhz"; ``` diff --git a/packages/babel-plugin-minify-dead-code-elimination/README.md b/packages/babel-plugin-minify-dead-code-elimination/README.md index 19e03a1c9..05cbe376b 100644 --- a/packages/babel-plugin-minify-dead-code-elimination/README.md +++ b/packages/babel-plugin-minify-dead-code-elimination/README.md @@ -1,5 +1,7 @@ # babel-plugin-minify-dead-code-elimination +nlines bindings when possible. Tries to evaluate expressions and prunes unreachable as a result. + ## Example **In** diff --git a/packages/babel-plugin-minify-empty-function/README.md b/packages/babel-plugin-minify-empty-function/README.md index e94a64e0b..b27541852 100644 --- a/packages/babel-plugin-minify-empty-function/README.md +++ b/packages/babel-plugin-minify-empty-function/README.md @@ -1,5 +1,7 @@ # babel-plugin-minify-empty-function +This is mostly a Facebook-specific transform that removes noop function calls. However, can be generalized to detect and remove noops. + ## Example **In** diff --git a/packages/babel-plugin-minify-mangle-names/README.md b/packages/babel-plugin-minify-mangle-names/README.md index 2d4ee0973..6d8e4a9c6 100644 --- a/packages/babel-plugin-minify-mangle-names/README.md +++ b/packages/babel-plugin-minify-mangle-names/README.md @@ -1,5 +1,7 @@ # babel-plugin-minify-mangle-names +Context- and scope- aware variable renaming. + ## Example **In** diff --git a/packages/babel-plugin-minify-replace/README.md b/packages/babel-plugin-minify-replace/README.md index 652a4589c..254ee5d27 100644 --- a/packages/babel-plugin-minify-replace/README.md +++ b/packages/babel-plugin-minify-replace/README.md @@ -1,6 +1,6 @@ # babel-plugin-minify-replace -Configurable "search and replace" plugin +Configurable "search and replace" plugin. Replaces matching nodes in the tree with a given replacement node. For example you can replace `process.NODE_ENV` with `"production"`. ## Example