From e50fb638f73528e96ceb88f7c3feee613c397344 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 5 Oct 2022 16:31:51 +0200 Subject: Add support for rewriting JSX --- tests/test_utils/swc.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test_utils/swc.rs') diff --git a/tests/test_utils/swc.rs b/tests/test_utils/swc.rs index 80376b8..fb91a3b 100644 --- a/tests/test_utils/swc.rs +++ b/tests/test_utils/swc.rs @@ -40,6 +40,7 @@ pub fn parse_esm(value: &str) -> MdxSignal { /// Parse ESM in MDX with SWC. /// To do: figure out how to fix positional info. +/// See `drop_span` in `swc_ecma_utils` for inspiration? #[allow(dead_code)] pub fn parse_esm_to_tree(value: &str) -> Result { let (file, syntax, version) = create_config(value.to_string()); @@ -108,6 +109,7 @@ pub fn parse_expression(value: &str, kind: &MdxExpressionKind) -> MdxSignal { /// Parse ESM in MDX with SWC. /// To do: figure out how to fix positional info. +/// See `drop_span` in `swc_ecma_utils` for inspiration? #[allow(dead_code)] pub fn parse_expression_to_tree( value: &str, -- cgit