1.1.0 • Published 7 years ago

babel-plugin-always-constraint v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

babel-plugin-always-constraint

A babel plugin to rewrite statements labelled with always to linear constraints

Live editable at http://astexplorer.net/#/JrmlrJciNw/7

Example

Transforms

something

to

something else

Installation

$ npm install babel-plugin-always-constraint

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["always-constraint"]
}

Via CLI

$ babel --plugins always-constraint script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["always-constraint"]
});