Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Apr 2, 2024
1 parent 23844e0 commit 3748ec3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/transpiling/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,7 @@ const a = _jsx(Foo, {
assert_eq!(
emit_result.source_map.as_deref(),
Some(
r#"{"version":3,"sources":["https://deno.land/x/mod.tsx"],"sourcesContent":["{ const foo = \"bar\"; };"],"names":[],"mappings":"AAAA;EAAE,MAAM,MAAM;AAAO"}"#
r#"{"version":3,"sources":["https://deno.land/x/mod.tsx"],"sourcesContent":["{ const foo = \"bar\"; };"],"names":[],"rangeMappings":";;","mappings":"AAAA;EAAE,MAAM,MAAM;AAAO"}"#
)
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/transpiling/transforms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ mod test {
test_transform(
StripExportsFolder,
"export namespace Test {}",
"module Test {\n}",
"namespace Test {\n}",
);
}

Expand All @@ -473,7 +473,7 @@ mod test {
test_transform(
StripExportsFolder,
"namespace Test { export class Test {} }",
"module Test {\n export class Test {\n }\n}",
"namespace Test {\n export class Test {\n }\n}",
);
}

Expand Down

0 comments on commit 3748ec3

Please sign in to comment.