node-typescript-parser icon indicating copy to clipboard operation
node-typescript-parser copied to clipboard

Missing metadata in AllExport when using alias

Open y-nk opened this issue 1 year ago • 0 comments

Steps to reproduce

import * from './subtest/test1'
import * as test2 from './subtest/test2' // ← broken case

Current behavior

Both will create something like:

{ e: AllExport { start: 0, end: 31, from: './subtest/test1' } }
{ e: AllExport { start: 32, end: 76, from: './subtest/test2' } }

Expected behavior

test2 should also have a specifiers: [ SymbolSpecifier { specifier: 'test2', alias: undefined } ]

y-nk avatar Dec 23 '22 08:12 y-nk