|
|
|
@ -1,7 +1,5 @@
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
let objects = require("./utils/objects");
|
|
|
|
|
|
|
|
|
|
let peg = {
|
|
|
|
|
/* PEG.js version (uses semantic versioning). */
|
|
|
|
|
VERSION: "0.10.0",
|
|
|
|
@ -29,15 +27,14 @@ let peg = {
|
|
|
|
|
|
|
|
|
|
for (let stage in passes) {
|
|
|
|
|
if (passes.hasOwnProperty(stage)) {
|
|
|
|
|
converted[stage] = objects.values(passes[stage]);
|
|
|
|
|
converted[stage] = Object.keys(passes[stage])
|
|
|
|
|
.map(name => passes[stage][name]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return converted;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
options = objects.clone(options);
|
|
|
|
|
|
|
|
|
|
let plugins = "plugins" in options ? options.plugins : [],
|
|
|
|
|
config = {
|
|
|
|
|
parser: peg.parser,
|
|
|
|
|