Let's say I have a file named utils.js, containing two functions s and c. s is a server-side function (Being called on an /api endpoint handler), and uses mongodb package. c is a client-side function (will be bundled and sent to the browser).
When compiling the app using next build, will it cause any issues? Does webpack know to bundle only part of a file/module? (considering server-side functions and imports as a "dead code" since they only being called from a server-side code)
Thanks