reluxscript 0.1.4

Write AST transformations once. Compile to Babel, SWC, and beyond.
Documentation
1
2
3
4
5
6
7
8
9
// Test: Pattern matching on Box<Expr> fields

plugin TestBoxedPattern {
    fn visit_member_expression(node: &mut MemberExpression, ctx: &Context) {
        if let Expression::Identifier(obj) = &node.object {
            // node.object is Box<Expr>, needs proper handling
        }
    }
}