Is there any sample to use lingui in a custom npm library made with rollup? #1244
Unanswered
BollietMZK
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I've been trying desperately for days/weeks to include lingui in my custom npm library of components built with rollup.
Is there any sample to use lingui in a custom npm library made with rollup?
As much as the code is extremely simple (congratulations for your work), the configuration is very complicated for me (no experience in rollup/npm library).
After compiling the library, my npm package fully embeds lingui. Is it normal knowing that my package is already compiled?
Moreover, when compiling my web application using my npm package, some errors came up about @lingui/macro: the compiler doesn't find node modules (path, fs, etc...). Why should my web application need these node modules when the package already contains the compiled versions of the files?
I don't have any code to show you since I have several dozen different configurations.
Do you have an example or a clear procedure on how to properly configure lingui to include it in a npm package + use this npm package in a web app?
And if this example also uses rollup, then it would be perfect :)
Thanks a lot.
(sorry for my english)
Beta Was this translation helpful? Give feedback.
All reactions