unplugin-peggy
v1.0.0-1
Published
The unplugin for Peggy (aka PEG.js).
Downloads
62
Readme
unplugin-peggy
The unified plugin of Peggy (a fork of PEG.js) for webpack/rollup/vite/... It is originally forked from rollup-plugin-peggy & rollup-plugin-pegjs, which are seemed not actively maintained.
Installation
npm i -D unplugin-peggy
Usage
Take rollup as an example:
import { defineConfig } from 'rollup';
import peggy from 'unplugin-peggy';
export default defineConfig({
plugins: [peggy.rollup()],
});
The detail of the options can be found in the TypeScript declaration file.
License
MIT