In our monthly JS digest repositories, you can always read about some of the newest tools. But sometimes some of them need more attention. That’s the case with a Rollup. Rollup is an ES6 module bundler and the tool worth to be explained in a separate post.
You can use these commands to start the application. It is named main.js.
# compile to a <script> containing a self-executing function $ rollup main.js --format iife --name "myBundle" --file bundle.js
Rollup can import CommonJS modules through a plugin. Here you can find out all about this function as well as many more.
You can check more details about Rollup modules in our material.