skovhus / vite-lingui

Example of how vite and lingui can co-exist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vite-lingui

Example of how Vite and LinguiJS can co-exist.

There is a performance impact of using babel macros, but currently I haven't found any alternative. 🔎

One limitation is that the message catalogs is not compiled during the vite development process, which is normally considered best practice by using webpack loaders or a snowpack plugin.

This is an alternative to the rather complex solution suggested in https://github.com/capaj/vite-lingui-poc

To test it out:

yarn # install dependencies
yarn dev # starts the vite dev server (port is listed)
yarn build # production build

About

Example of how vite and lingui can co-exist


Languages

Language:TypeScript 66.9%Language:CSS 24.1%Language:HTML 9.0%