Usage

With this plugin you can load PEG.js parsers directly from the source PEG file.

import {parse, SyntaxError} from './parser.pegjs'

Installation

npm install -D snowpack-plugin-pegjs
// snowpack.config.json
{
    "plugins": [
        "snowpack-plugin-pegjs",
        /* ... rest of your plugins */
    ]
}