To bundle modules, we will use the popular Webpack bundler.
Let's install the bundler itself:
npm install webpack --save-dev
Now we will also install the Webpack CLI, which allows you to access the bundler via the command line:
npm install webpack-cli --save-dev
Install Webpack and Webpack CLI.
Verify that Webpack is installed by running a version check command.