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: CallExpression.callee is Callee type, not Expression

plugin TestCalleePattern {
    fn visit_call_expression(node: &mut CallExpression, ctx: &Context) {
        if let Expression::MemberExpression(member) = &node.callee {
            // Should handle that callee is Callee, not Expression
        }
    }
}