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
{};;
Out
{};
Installation
$ npm install babel-plugin-minify-empty-function
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins minify-empty-
Via Node API
;