import parser loses override local keys
Closed this issue · 0 comments
idoros commented
When importing both x
and x as y
, the named results are kept in a map from import-name to local names, overriding each other:
import [x, x as y] from 'file';
-> { named: { x: 'y' } }
import [x as y, x] from 'file';
-> { named: { x: 'x' } }
Map should have unique keys from local to import names
while both should output: { named: { x: 'x', y: 'x' } }