buehler/node-typescript-parser

Missing metadata in AllExport when using alias

Opened this issue · 0 comments

y-nk commented

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