nick's blog
  • Home
  • About
Sign in Subscribe

rollup.js

A collection of 2 posts
JS code-splitting with ES modules in the browser
javascript Featured

JS code-splitting with ES modules in the browser

Recently the New York Times shipped an interactive [https://www.nytimes.com/interactive/2018/upshot/elections-poll-ky06-1.html] built with native JavaScript ES modules, using Rollup.js instead of Webpack to provide a 25% reduction in JS shipped. This was really interesting to me as they used code-splitting with ES module
20 Sep 2018 5 min read
javascript

Using Rollup.JS to create JS modules

Using Rollup.JS to create JS modules and libraries is easy, it can easily output AMD, CJS, ES, IIFE and UMD JS formats with minimal configuration. Its plugin structure really nice too, you should find nearly anything you need here [https://github.com/rollup/rollup/wiki/Plugins]. This post will
30 Apr 2017 2 min read
Page 1 of 1
nick's blog © 2025
Powered by Ghost