Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

snowpack-plugin-pegjs

wires6MPL-2.01.0.1

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

readme

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 */
    ]
}