Skip to content

skovhus/vite-lingui

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published