babel-plugin-compile-cheddar

2.0.2 • Public • Published

babel-plugin-compile-cheddar

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

Installation

$ npm install babel-plugin-compile-cheddar

Usage

Via .babelrc (Recommended)

.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

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-compile-cheddar

Weekly Downloads

1

Version

2.0.2

License

MIT

Last publish

Collaborators

  • vihanb