babel-plugin-constant-folding
Compile static constants (ie. code that we can statically determine to be constant at runtime)
Installation
$ npm install babel-plugin-constant-folding
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins constant-folding script.js
Via Node API
;