1.5.0 • Published 7 years ago

babel-plugin-variant-select v1.5.0

Weekly downloads
24
License
-
Repository
github
Last release
7 years ago

babel-plugin-variant-select

Example

In

// Set VARIANT_color environment variable to green
var color = Variant.select('color', {
  green: '#00fa00'
});

Out

var color = '#00fa00';

Installation

$ npm install babel-plugin-variant-select

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["variant-select"]
}

Via CLI

$ babel --plugins variant-select script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["variant-select"]
});
1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago