@locker/ast-lib-maker
v0.22.7
Published
Lightning Web Security AST library maker utilities
Downloads
24,810
Readme
@locker/ast-lib-maker
Lightning Web Security AST library maker utilities
Installation
$ yarn add @locker/ast-lib-maker
Usage
Create an AST library instance using createLib(overrides)
. Provide an
optional overrides
object to override specific methods.
const { createLib } = require('@locker/ast-lib-maker');
module.exports = createLib({
getParent(node) {
return node.parent;
},
});