DEV Community

Marcin Wosinek
Marcin Wosinek

Posted on • Edited on

webpack 5 - what can we achieve without using it

If you are new to js, you can get confused with all the tooling people are using. Before you decide on including webpack, or any other js bundler let's take a look first at what modern browsers allow us to achieve without any additional dependencies.

Short summary

  1. Native js modules allow us to import files from js, without any bundlers. More on modules - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
  2. If you make sure node_modules are with your application on the production deployment - you can import npm modules from your code as well.

Links

Full discussion

In the next article, I'll show the actual benefits of using a bundler, such as webpack 5.

Top comments (0)