Yuns

Results 211 comments of Yuns

> It seems so hard to process, but in our big project seems not find out this question. I just find it when I create the reproduction 😂 So use...

@thekip I found a another solution, use [`dependency-tree`](https://github.com/dependents/node-dependency-tree) to get all of entries dependencies, then extract all of the dependencies by AST, no esbuild required. How about this idea?

@thekip Thanks for your great work, I will try `lingui extract-experimental` tomorrow, and alse waiting for https://github.com/lingui/js-lingui/pull/1882

@thekip Unfortunately, with [4.8.0-next.1](https://www.npmjs.com/package/@lingui/react/v/4.8.0-next.1), `lingui extract-experimental` does not works with calling currying function directly, like below: ```ts const result = curringFoo()() console.log('curringFoo', result) ``` Throw error: ``` SyntaxError: /tmp/js-lingui-extract-cEKHmj/src/pages/index.page.jsx: Unsupported...

@thekip Unfortunately again. `extract-experimental` with **TypeScript Enum**, generated **msgid** and **msgstr** will use the Enum value, other than a variable. Here is my repro commit: https://github.com/yunsii/lingui-examples-nextjs-swc-1797/commit/fcc181661ee075438adc2d06e2ddbabb82685fec Code: ```tsx {t`Hello ${Test.Foo}`}...

@thekip Any plan to fix it?

Got it, how about make each worker to extract each entry? It seems isolated.

ref: https://github.com/svg-sprite/svg-sprite/issues/380

CSS icon is a better chioce, I had migrated to this tech.

Article for CSS icons: https://antfu.me/posts/icons-in-pure-css You can use it in tailwindcss and unocss directly as I know: - https://iconify.design/docs/usage/css/tailwind/ - https://unocss.dev/presets/icons#icons-preset Also I create a tailwind plugin for better DX(maybe...