My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Is there any reason to bundle server-side code with webpack?

Default profile photo
Anonymous
·Nov 19, 2017

Hi, everyone.

I'm writing an Express app and I'm wondering if there's any benefit of bundling all of this server-side code with webpack. I liked the idea of being able to use import/export by transpiling with babel so I quickly added some webpack config and bundled everything but I'm not sure if it's overkill for the server. I guess I could also use something like babel-node to transpile as it's run but that'd have a slight performance impact, right?

Anyway, any advice would be very much appreciated. Thanks!