You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,16 +44,19 @@ Then you only need to write: `require("./parser.pegjs")`.
44
44
45
45
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:
46
46
47
+
*`allowedStartRules` - The rules the built parser will be allowed to start
48
+
parsing from (default: the first rule in the grammar).
49
+
47
50
*`cache` — If `true`, makes the parser cache results, avoiding exponential
48
51
parsing time in pathological cases but making the parser slower (default:
49
52
`false`).
50
53
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
+
51
57
*`optimize` - Whether to optimize the built parser either for `speed` or
52
58
`size` (default: `speed`).
53
59
54
-
*`allowedStartRules` - The rules the built parser will be allowed to start
55
-
parsing from (default: the first rule in the grammar).
56
-
57
60
*`trace` - If `true`, the tracing support in the built parser is enabled
58
61
(default: `false`).
59
62
@@ -82,6 +85,7 @@ Every release, along with the migration instructions, if any, is documented on t
82
85
*[VladimirTechMan](https://github.com/VladimirTechMan) for the propagation of the `optimize` option and updating things to be compatible with PEG.js 0.10.0.
83
86
*[ragtime](https://github.com/ragtime) for the propagation of the `allowedStartRules` and `trace` options.
84
87
*[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.
0 commit comments