rollup-biolerplate
Start
npm install
方案一:(暂时配置项太少功能)
npm run build
npm run watch
方案二: (推荐)
node rollup.config.js
方案三:
gulp
Plugin
rollup-plugin-babel
: outputs ES5rollup-plugin-npm
: loads modules in node_modulesrollup-plugin-commonjs
: converts CommonJS to ES6
Bug
Rollup.js
中可以catch
下error
方便调试错误UMD/IIFE
模式中需要moduleName
Rollup
的模块引用只支持ES6 Module
,其他的需要采用npm
和commonjs
的插件去解决rollup-plugin-npm
被废弃了, 改为rollup-plugin-node-resolve