Convert new peggy `--dependencies` or `--dependency` into TypeScript imports
zm-cttae-archive opened this issue · 4 comments
zm-cttae-archive commented
Peggy supports --dependencies
and --dependency
per documentation.
Would like to have these evaluated as an import
.
Would be beneficial for TypeScript, Webpack and many other dependencies.
It's possible to implement this by a text replacement. The output looks like let matchers = require('matchers');
pjmolina commented
It is a nice feature to add. If you want to make a PR, please feel free to propose.
zm-cttae-archive commented
Figured this out without a output regex :)
pjmolina commented
Published on v. ts-pegjs@3.1.0
zm-cttae-archive commented