1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -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 GitHub
parent 061090de7e
commit f61b2c0b11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,