Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 747 Bytes

File metadata and controls

38 lines (25 loc) · 747 Bytes

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