babel-plugin-minify-numeric-literals
Shortening of numeric literals via scientific notation
Example
In
1000 -20000
Out
1e3 -2e4
Installation
npm install babel-plugin-minify-numeric-literals --save-dev
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
babel --plugins minify-numeric-literals script.js
Via Node API
;