swc-plugin
swc-plugin copied to clipboard
A SWC Plugin For LinguiJS
Unfortunately, it's not that easy as in the babel's version since SWC API is very limited. It's progressing slowly when I have a good mood. The code itself is real...
``` 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...
Related PR in upstream repo: https://github.com/lingui/js-lingui/pull/1436 **To Reproduce** ```ts import { Trans } from '@lingui/macro' export default function Component(props) { return Hello, {props.world ? world : guys} } ``` **Expected...
- [ ] add CI step that will run tests and generate a code coverage report compatible with the Codecov (it may require some additional configuration. Example: [codecov/example-rust](https://github.com/codecov/example-rust)) - [...