diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-05 16:31:51 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-05 16:43:07 +0200 |
commit | e50fb638f73528e96ceb88f7c3feee613c397344 (patch) | |
tree | a1cdf61f37dbd64208d85b94164f0c5fbeef4169 /tests/test_utils/swc.rs | |
parent | 9d90e35d51555d9f853f2eccfa771f47d71a6bc1 (diff) | |
download | markdown-rs-e50fb638f73528e96ceb88f7c3feee613c397344.tar.gz markdown-rs-e50fb638f73528e96ceb88f7c3feee613c397344.tar.bz2 markdown-rs-e50fb638f73528e96ceb88f7c3feee613c397344.zip |
Add support for rewriting JSX
Diffstat (limited to 'tests/test_utils/swc.rs')
-rw-r--r-- | tests/test_utils/swc.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<swc_ecma_ast::Module, String> { 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, |