ming-codes / babel-plugin-pegjs-inline-precompile

Babel plugin for inline precompile of pegjs expression
MIT License
3 stars 0 forks source link
babel-plugin pegjs

babel-plugin-pegjs-inline-precompile

Build Status Greenkeeper badge

Babel plugin for inline precompile of pegjs expression

Install

$ npm install babel-plugin-pegjs-inline-precompile

Usage

.babelrc

{
  "plugins": ["babel-plugin-pegjs-inline-precompile"]
}
import peg from 'pegjs-inline-precompile';

export default {
  expression: peg`
    Value = .+
  `,
};

License

MIT © ming-codes