snowpack-plugin-pegjs

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

Usage no npm install needed!

<script type="module">
  import snowpackPluginPegjs from 'https://cdn.skypack.dev/snowpack-plugin-pegjs';
</script>

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