Canopy PEG loader
Canopy is a PEG parser compiler. It lets you describe the grammar of the language you’re trying to parse using a simple, terse syntax, and it generates a parser for the language from this definition.
module.exports = {
module: {
rules: [
{
test: /\.peg$/,
loader: 'canopy-loader'
}
]
}
}