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
Sep 20, 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
Apr 30, 2017 2 min read
Page 1 of 1
nick's blog © 2023
Powered by Ghost