vortigern
                                
                                
                                
                                    vortigern copied to clipboard
                            
                            
                            
                        What are the advantages in bundling server side code?
Hi!
I was wondering if there were any particular advantages in using webpack for bundling server side part of the app. Is it just because you don't want to have an extra step for compiling .ts to .js or is there more to that.
I’m asking because in the project I’m working on the code is written in TypeScript. So there is this extra step for compilation. And webpack is used only for client code bundling.
I’d like to also use webpack for server code, but some people on my project are, on one hand, concerned about performance and possible issues and, on the other hand, are unsure about the advantages.
Could you explain your decision to bundle server code. What problems did you solve and what other problems did you encounter.
Thanks.
@Sprinter101 It is probably for server side rendering, isn't it ?
@qk0106 That's probably the reason. But in my project we also have server side rendering and we don't bundle our server code.