mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-17 19:21:20 +03:00
feat(core): raw tree property support
This commit is contained in:
@@ -27,6 +27,9 @@ export default function bbob(plugs) {
|
|||||||
? input || []
|
? input || []
|
||||||
: parseFn(input, options);
|
: parseFn(input, options);
|
||||||
|
|
||||||
|
// raw tree before modification with plugins
|
||||||
|
const raw = tree;
|
||||||
|
|
||||||
tree.walk = walk;
|
tree.walk = walk;
|
||||||
tree.match = match;
|
tree.match = match;
|
||||||
|
|
||||||
@@ -47,6 +50,7 @@ export default function bbob(plugs) {
|
|||||||
return renderFn(tree, tree.options);
|
return renderFn(tree, tree.options);
|
||||||
},
|
},
|
||||||
tree,
|
tree,
|
||||||
|
raw,
|
||||||
messages: tree.messages,
|
messages: tree.messages,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user