-
I gave the migration to VITE another shot and now my older project runs fine both in dev and prod. I have though one issue: I try to avoid having tons of warnings and ignore them in my builds. And one annoying is the vite resolve plugin externalizing all the Is there any way to resolve this in a clean way, without muting the error/warning channel, so I can see real issues? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
After a second thought, that might be a trace that some server code has been leaked into client? I use a lot .server file / folder and I've tried to figure out if any library server code ends up in client bundle with the vite visualize plugin, but did not find any of the packages that generate a warning in it. Might also be "hidden" by obfuscating of the chunk names. So far I don't find a reliable way to figure out unintended inclusion in the client. Tried to follow the trail of unidici and remix code to my code, but there is nothing pointing to any of my files (build/client either). The usage from this files:
|
Beta Was this translation helpful? Give feedback.
-
By the way, the issue went away after some refactoring and optimizing of imports, but I did not know why exactly. Now I think I know, and its one of the things I've corrected. This is the reason for the warnings: |
Beta Was this translation helpful? Give feedback.
By the way, the issue went away after some refactoring and optimizing of imports, but I did not know why exactly. Now I think I know, and its one of the things I've corrected.
This is the reason for the warnings:
#8949