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
- 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
- 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)