Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are the advantages in bundling server side code? #156

Open
Sprinter101 opened this issue Oct 24, 2017 · 2 comments
Open

What are the advantages in bundling server side code? #156

Sprinter101 opened this issue Oct 24, 2017 · 2 comments

Comments

@Sprinter101
Copy link

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.

@qk0106
Copy link

qk0106 commented Oct 30, 2017

@Sprinter101 It is probably for server side rendering, isn't it ?

@Sprinter101
Copy link
Author

@qk0106 That's probably the reason. But in my project we also have server side rendering and we don't bundle our server code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants