mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
chore: add semi-colon to compat/mod.rs export default output (#14154)
This commit is contained in:
parent
061090de7e
commit
f61b2c0b11
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue