swc_ecma_transforms_react 0.190.0

rust port of babel and closure compiler.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use swc_ecma_transforms_testing::test;

use super::*;

fn tr() -> impl Fold {
    jsx_self(true)
}

test!(
    ::swc_ecma_parser::Syntax::Es(::swc_ecma_parser::EsSyntax {
        jsx: true,
        ..Default::default()
    }),
    |_| tr(),
    basic_sample,
    r#"var x = <sometag />"#
);