This package has been deprecated
Author message:
Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
babel-plugin-constant-folding
1.0.1 • Public • Published 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
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["constant-folding"]
}
Via CLI
$ babel --plugins constant-folding script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["constant-folding"]
});
Versions
Version | Downloads (Last 7 Days) | Published |
---|
Version History
Version | Downloads (Last 7 Days) | Published |
---|
Package Sidebar
Install
npm i babel-plugin-constant-folding
Weekly Downloads