DEV Community

loading...

webpack 5 - what can we achieve without using it

marcinwosinek profile image Marcin Wosinek ・1 min read

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.

Full discussion

Code repository

https://github.com/marcin-wosinek/no-webpack

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

Discussion (0)

Forem Open with the Forem app