1.2.1 • Published 9 years ago
babel-plugin-cheddar-compile v1.2.1
babel-plugin-compile-cheddar
Compiles the given string in a __COMPILE function to a cheddar CST.
Installation
$ npm install babel-plugin-compile-cheddarUsage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["babel-plugin-compile-cheddar"]
}Via CLI
$ babel --plugins compile-cheddar script.jsVia Node API
require('babel').transform('code', {
plugins: ['compile-cheddar']
});Example
See fixtures within tests