Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@locker/ast-lib-maker

mjasso28.8kSEE LICENSE IN LICENSE.txt0.25.2TypeScript support: included

Lightning Web Security AST library maker utilities

ast, locker, salesforce

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;
    },
});