From f61b2c0b1169ef2345738723583d8335638aeff2 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 30 Mar 2022 14:57:13 -0400 Subject: [PATCH] chore: add semi-colon to compat/mod.rs export default output (#14154) --- cli/compat/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/compat/mod.rs b/cli/compat/mod.rs index 72d0ce633b..07cd170307 100644 --- a/cli/compat/mod.rs +++ b/cli/compat/mod.rs @@ -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,