import { t as $t, t } from '@lingui/macro'
t`Hello`
$t`Hello`
Only the last t variable will be registered in imports_id_map
Maybe need to add a secondary data structure importsBindingMap?
// export name -> local name
importsIdMap: Map<string, string>
// local name -> export name
importsIdMapInverted: Map<string, string>
// local name -> ast node
importsBindingMap: Map<string, Set<Identifier>>
If swc has babel's scope.getBinding, it can maintain the importsBindingMap during the registration phase.
Please extend swc's capabilities~
Only the last
tvariable will be registered inimports_id_mapMaybe need to add a secondary data structure
importsBindingMap?If swc has babel's
scope.getBinding, it can maintain the importsBindingMap during the registration phase.Please extend swc's capabilities~