GitPedia

Rollupjs note

《Rollup.js 实战学习笔记》已完结 😆

From chenshenhai·Updated May 14, 2026·View on GitHub·

今年的五一假期有 5天小长假,回顾以前的笔记,发现 `Rollup` 已经更新到 `2.x` ,而且官方提供了很多丰富的插件`plugins` [github.com/rollup/plugins/](https://github.com/rollup/plugins/)。趁着假期还有点空闲时间,把本笔记的使用方式更新到最新版(截至2020年5月)的使用方式。 The project is distributed under the MIT License license, first published in 2018. Key topics include: rollup, rollup-example, rollup-study, rollupjs.

Rollup.js 实战学习笔记

前言

2020年5月

今年的五一假期有 5天小长假,回顾以前的笔记,发现 Rollup 已经更新到 2.x ,而且官方提供了很多丰富的插件plugins github.com/rollup/plugins/。趁着假期还有点空闲时间,把本笔记的使用方式更新到最新版(截至2020年5月)的使用方式。

2018年8月

最近几个月自己开发一些js库或组件库,费了九牛二虎之力搭建了webpack脚手架,然后还要配置一堆loader,最后编译出来的代码还夹带了一堆webpackJsonp([0], .....) 的代码,使得编译后的ES5代码(未混淆)可读性降低了,也导致了结果代码体积增大。

在寻找新的编译工具时候,发现Vue.jsReact.js等流行库的源码都用了rollup.js来编译代码,同时相关库的编译也输出了各种模块规范AMDCommonJSUMDIIFE。因此选择了rollup.js来实践开发日常的工具,在玩了几个月的的rollup.js后,将学习的过程中记录成这本书,也沉淀了学习过程中的demo,方便以后搭建脚手架时候查看。

关于本书

<img width="360" src="https://user-images.githubusercontent.com/8216630/47964308-ec4a8380-e072-11e8-8441-e5ac10acc81e.png">

目录

更多学习笔记

更多前端技术学习开源学习教程可关注公众号 DeepSeaCode (大海码 )

qrcode_for_gh_959d1c4d729a_258

Contributors

Showing top 3 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from chenshenhai/rollupjs-note via the GitHub API.Last fetched: 6/25/2026