npm.io
2.0.2 • Published 9 years ago

babel-plugin-compile-cheddar

Licence
MIT
Version
2.0.2
Deps
3
Vulns
0
Weekly
0
Stars
1

babel-plugin-compile-cheddar

Compiles the given string in a __COMPILE function to a cheddar CST.

Installation

$ npm install babel-plugin-compile-cheddar

Usage

.babelrc

{
  "plugins": ["babel-plugin-compile-cheddar"]
}
Via CLI
$ babel --plugins compile-cheddar script.js
Via Node API
require('babel').transform('code', {
  plugins: ['compile-cheddar']
});

Example

See fixtures within tests