I've seen the optimize option was removed, but maybe it should be restored?
When i tried using peggy instead of pegjs in my project, the generated parser size increased almost 2 times.
The test was done by building the generated parser with webpack with minify option, so you might expect such increase in a production build.
Initially I've tried to migrate from unsupported old library but currently don't see any benefits, as this issue and bad TS typing exist.