-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update @lingui/vite-plugin to support Vite 5 #1805
Comments
Did you test it ignoring the warning? I'm wondering do i need simply expand the constraint or some other actions needed? |
Unfortunately I can't say; my app is pretty complicated and when I tried with |
Ok, I got my app building, and it seems to be that the constraint just needs to be incremented. I can switch between languages in m app and everything appears fine. |
With an upgrade to Vite 5.0 I'm getting errors on dev server startup |
Esbuild changed something for dynamic imports https://github.com/evanw/esbuild/releases/tag/v0.19.0 This does include all the translations in your main chunk, the note about not bundling doesn't seem to work in this case. |
I guess this works but I hate it evertbouw/lingui-issue@aa903a1 |
yeah it seems this is the way. I also remember that i already did it in one of the examples, but quick check in the repo didn't show that. |
An alternative is to use |
The `No loader is configured for ".po" files` was fixed in `vite@5.0.9`. Resolves lingui#1805
The |
Describe the bug
Vite 5 was released on November 16, 2023.
@lingui/vite-plugin
can't currently be used with Vite 5.To Reproduce
Try to update to vite 5
npm update
:Expected behavior
Lingui can be used with Vite 5.
The text was updated successfully, but these errors were encountered: