DEV Community

Marcin Wosinek
Marcin Wosinek

Posted on • Edited on

webpack 5 - benefits of using js bundler

In a previews post we discussed what we can achieve without using js bundler. Let's see now, what benefits we can have by using one.

Short summary

  1. having all js bundled together into one file - which gives us a better performance on production deployment.
  2. simpler imports of npm dependencies. The bundler-free approach works but feels a bit hacky and it's more hassle to maintain.
  3. build-in code optimization applied automatically by webpack
  4. it opens doors for many futures improvements - transpiling code so we can use new language features while supporting older browsers; including styles directly from the app or moving our code base to typescript.

Links

Full discussion

Heroku

Deploy with ease. Manage efficiently. Scale faster.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay