--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/comments/export.js --- # Input ```js export //comment {} export /* comment */ {}; const foo = '' export { foo // comment } const bar = '' export { // comment bar } const fooo = '' const barr = '' export { fooo, // comment barr, // comment } const foooo = '' const barrr = '' export { foooo, barrr as // comment baz, } from 'foo' const fooooo = '' const barrrr = '' export { fooooo, barrrr as // comment bazz, } ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -1,5 +1,5 @@ export //comment - {}; +{}; export /* comment */ {}; ``` # Output ```js export //comment {}; export /* comment */ {}; const foo = ""; export { foo, // comment }; const bar = ""; export { // comment bar, }; const fooo = ""; const barr = ""; export { fooo, // comment barr, // comment }; const foooo = ""; const barrr = ""; export { foooo, // comment barrr as baz, } from "foo"; const fooooo = ""; const barrrr = ""; export { fooooo, // comment barrrr as bazz, }; ```