1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-05 22:09:02 -05:00

chore: add semi-colon to compat/mod.rs export default output (#14154)

This commit is contained in:
David Sherret 2022-03-30 14:57:13 -04:00 committed by David Sherret
parent afd43bdff3
commit 921d33cb11

View file

@ -241,7 +241,7 @@ pub async fn translate_cjs_to_esm(
.replace('\'', "\\\'")
.replace('\"', "\\\"")
));
source.push("export default mod".to_string());
source.push("export default mod;".to_string());
for export in analysis.exports.iter().filter(|e| e.as_str() != "default") {
// TODO(bartlomieju): Node actually checks if a given export exists in `exports` object,