esbuild-peggy
JSON →esbuild plugin that allows importing PEG.js/Peggy grammar files (.pegjs/.peggy) directly in JavaScript/TypeScript bundles. Current stable version is 1.0.7, requiring Node >=20 and npm >=10. It automatically rebuilds parsers when grammar files change, fully supports esbuild watch mode, and ships TypeScript types. Differentiates from similar tools (like pegjs-loader for webpack) by targeting esbuild's speed and simplicity.
Resources
packageesbuild-peggy ↗