* fix exports comment formats * add tests * add change log * rename function name * merge logic * add tests to compare comment formats in `export` and `import`
41 lines
408 B
JavaScript
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,
|
|
}
|