Replies: 1 comment
-
Someone? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say I have a file named
utils.js
, containing two functionss
andc
.s
is a server-side function (Being called on an/api
endpoint handler), and usesmongodb
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
Beta Was this translation helpful? Give feedback.
All reactions