Minify booleans transform

Turn boolean literals into !0 for true and !1 for false.

Example

In

true;
false;

Out

!0;
!1;

Installation

$ npm install babel-plugin-transform-minify-booleans

Usage

Add the following line to your .babelrc:

{
  "plugins": ["transform-minify-booleans"]
}