Vite with swc works locally, but production build in CI fails #1758
Replies: 2 comments 2 replies
-
The configs look fine. That warning means the code was not processed by swc-plugin and macro expressions left as is. I know that Did you try to run a production build locally? I also would check do you have |
Beta Was this translation helpful? Give feedback.
-
@thekip I finally found my particular issue. |
Beta Was this translation helpful? Give feedback.
-
I'm sure this is a misconfiguration on my end, but I can't figure out why or where.
I have this vite config:
Here are my versions:
Here is my lingui.config.ts:
My local machine info:
CI env info:
Thing is - this setup works well locally, I'm getting the features that lingui describes.
But when I push this to CI, I'm getting this error message:
What could be different about CI runs? Or how vite/rollup behaves there? 🤔 How else can I troubleshoot the difference?
Help appreciated! ❤️
Beta Was this translation helpful? Give feedback.
All reactions