Rollup.js the next-generation JavaScript module bundler allows you to bundle your JavaScript dependencies. In addition, it offers tree-shaking. Tree-shaking?
Normally if you require a module, you import the whole thing. ES2015 lets you just import the bits you need, without mucking around with custom builds. - rollupjs.org
Rollup.js comes with plug-ins, Bublé for example, allows you to compile code from ES6 to ES5.
- run
npm install
from root directory, this will install following dependencies: gulp
, JavaScript task runnerrollup
, JavaScript bundlerrollup-plugin-buble
, JavaScript compiler plug-in- Compiling code can be accomplished in two ways, by typing:
gulp
, will useGulpfile.js
and run default Gulp tasknpm run rollup
, will userollup.config.js
and run compiling process via terminal