fix double semi-colons from beautify in export
This commit is contained in:
parent
dd0a36119b
commit
e6cfeb915e
|
|
@ -1361,6 +1361,7 @@ function OutputStream(options) {
|
||||||
self.exported_value.print(output);
|
self.exported_value.print(output);
|
||||||
} else if (self.exported_definition) {
|
} else if (self.exported_definition) {
|
||||||
self.exported_definition.print(output);
|
self.exported_definition.print(output);
|
||||||
|
if (self.exported_definition instanceof AST_Definitions) return;
|
||||||
}
|
}
|
||||||
if (self.module_name) {
|
if (self.module_name) {
|
||||||
output.space();
|
output.space();
|
||||||
|
|
|
||||||
|
|
@ -250,3 +250,13 @@ dynamic_import: {
|
||||||
r.foo();
|
r.foo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
trailing_comma: {
|
||||||
|
beautify = {
|
||||||
|
beautify: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
export const a = 1;
|
||||||
|
}
|
||||||
|
expect_exact: "export const a = 1;"
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user