metadevpro/ts-pegjs

Convert new peggy `--dependencies` or `--dependency` into TypeScript imports

zm-cttae-archive opened this issue · 4 comments

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');

It is a nice feature to add. If you want to make a PR, please feel free to propose.

Figured this out without a output regex :)

Published on v. ts-pegjs@3.1.0