-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
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~
Metadata
Metadata
Assignees
Labels
No labels