babel-plugin-constant-folding
Compile static constants (ie. code that we can statically determine to be constant at runtime)
Last updated 10 years ago by sebmck .
MIT · Repository · Bugs · Original npm
$ cnpm install babel-plugin-constant-folding 
SYNC missed versions from official npm registry.

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"]
});

Current Tags

  • 1.0.1                                ...           latest (10 years ago)

1 Versions

  • 1.0.1                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org