I was trying to pick up webpack from this video from freecodecmap
https://www.youtube.com/watch?v=MpGLUVbqoYQ&t=396s
at the beginning of the video the instructor says that we need webpack to manage dependencies otherwise we need to add <script>
tags in particular order for out split JavaScript modules to work.
But if we set the the script tag to <script type="module">
, the browser load all the modules that are imported using
import {module_name} from "./module_loaction"
so i am finding it difficult to understand what is the use of webpack in 2021.