Sha256: 5c5017437b6aec49b616b993d40032da36f3569a8d578bc7ead4bbfa00c37540
Contents?: true
Size: 493 Bytes
Versions: 8
Compression:
Stored size: 493 Bytes
Contents
# babel-plugin-constant-folding Compile static constants (ie. code that we can statically determine to be constant at runtime) ## Installation ```sh $ npm install babel-plugin-constant-folding ``` ## Usage ### Via `.babelrc` (Recommended) **.babelrc** ```json { "plugins": ["constant-folding"] } ``` ### Via CLI ```sh $ babel --plugins constant-folding script.js ``` ### Via Node API ```javascript require("babel-core").transform("code", { plugins: ["constant-folding"] }); ```
Version data entries
8 entries across 8 versions & 3 rubygems