Server/Client library build ?
Unanswered
Anhinga posted this in #help-forum
AnhingaOP
Hey guys, I'm bad in terms of libraries and I would like to know if I have a way to build a library with export from client (contexts) and export for both server and client (constants/types)
Because right now I'm facing into a big problem, I tried to build my lib with esbuild with this but not sure what to do tbh...
Since Im trying to import a constant but because the import is on server side, the server is like compiling everything even if not used and I'm stuck because I'm getting the createContext error on server context which obviously not working...
Thanks in advance, I can call for any further help/informations.
Best regards.
Because right now I'm facing into a big problem, I tried to build my lib with esbuild with this but not sure what to do tbh...
Since Im trying to import a constant but because the import is on server side, the server is like compiling everything even if not used and I'm stuck because I'm getting the createContext error on server context which obviously not working...
Thanks in advance, I can call for any further help/informations.
Best regards.