Skip to content

Commit abed38c

Browse files
committed
Update README
1 parent 86ae66f commit abed38c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,19 @@ Then you only need to write: `require("./parser.pegjs")`.
4444

4545
You can pass options to PEG.js as [query parameters](http://webpack.github.io/docs/using-loaders.html#query-parameters). The following options are supported:
4646

47+
* `allowedStartRules` - The rules the built parser will be allowed to start
48+
parsing from (default: the first rule in the grammar).
49+
4750
* `cache` — If `true`, makes the parser cache results, avoiding exponential
4851
parsing time in pathological cases but making the parser slower (default:
4952
`false`).
5053

54+
* `dependencies` - Parser dependencies, the value is an object which maps variables used to access the
55+
dependencies in the parser to module IDs used to load them (default: `{}`).
56+
5157
* `optimize` - Whether to optimize the built parser either for `speed` or
5258
`size` (default: `speed`).
5359

54-
* `allowedStartRules` - The rules the built parser will be allowed to start
55-
parsing from (default: the first rule in the grammar).
56-
5760
* `trace` - If `true`, the tracing support in the built parser is enabled
5861
(default: `false`).
5962

@@ -82,6 +85,7 @@ Every release, along with the migration instructions, if any, is documented on t
8285
* [VladimirTechMan](https://github.com/VladimirTechMan) for the propagation of the `optimize` option and updating things to be compatible with PEG.js 0.10.0.
8386
* [ragtime](https://github.com/ragtime) for the propagation of the `allowedStartRules` and `trace` options.
8487
* [Jan Varwig](https://github.com/janv) for the Webpack 2 compatibility fix.
88+
* [retorquere](https://github.com/retorquere) for the propagation of the `dependencies` option.
8589

8690
## License
8791

0 commit comments

Comments
 (0)