reluxscript 0.1.4

Write AST transformations once. Compile to Babel, SWC, and beyond.
Documentation
1
2
3
4
5
6
7
8
9
10
plugin Test {
    fn test(x: &Option<i32>) {
        if let Some(a) = x {
            let _y = a;
        }
        else if let Some(b) = x {
            let _z = b;
        }
    }
}