lingui/swc-plugin

Please update the Lingui 4.0 example code

usercao opened this issue · 2 comments

Currently, there are only sample projects for vite-project-react-babel in js-lingui, can you update the examples using swc-plugin? Because I want to know how .swcrc is included in vite.config.ts instead of adding .swcrc. Thanks.

Hi @andrii-bodnar ,
May I ask if the writing in next.config.js and vite.config.js is consistent with the example code nextjs-swc?

swcPlugins: [
  ['@lingui/swc-plugin', {}],
]

plugins: ['@lingui/swc-plugin'],

Because as far as I know, their construction methods are not the same. Is adding a vite-project-react-swc more user-friendly?