$ npm install babel-plugin-minify-infinity
In
Infinity;
Out
1 / 0;
npm install babel-plugin-minify-infinity
.babelrc
(Recommended).babelrc
{
"plugins": ["minify-infinity"]
}
babel --plugins minify-infinity script.js
require("babel-core").transform("code", {
plugins: ["minify-infinity"]
});
© 2010 - cnpmjs.org x YWFE | Home | YWFE