1 Star 0 Fork 0

joylei / riot-typed

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rollup.config.js 541 Bytes
一键复制 编辑 原始数据 按行查看 历史
joylei 提交于 2017-08-31 23:00 . use rollup; generate cjs&es dist
import buble from 'rollup-plugin-buble'
import typescript from 'rollup-plugin-typescript'
const pkg = require( './package.json' );
export default {
entry: 'src/index.ts',
external:['riot'],
plugins: [
typescript({
typescript: require('typescript')
}),
buble()
],
targets: [
{
format: 'cjs',
dest: pkg.main
},
{
format: 'umd',
moduleName:'riot-typed',
dest: 'dist/riot-typed.js'
},
{
format: 'es',
dest: pkg.module
}
]
}
TypeScript
1
https://gitee.com/wowin/riot-typed.git
git@gitee.com:wowin/riot-typed.git
wowin
riot-typed
riot-typed
master

搜索帮助