Files
HosokawaR 765d78305f Fix exports comment formats. (#12860)
* fix exports comment formats

* add tests

* add change log

* rename function name

* merge logic

* add tests to compare comment formats in `export` and `import`
2022-05-15 22:39:55 +09:00

41 lines
408 B
JavaScript

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,
}