chore: update

This commit is contained in:
Anthony Fu committed 2020-01-19 14:16:41 +00:00
1 parent 96cafcb4e7
commit f141c019cb
15 files changed
+9170 -187

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
// rollup.config.js
import typescript from '@rollup/plugin-typescript'
import json from '@rollup/plugin-json'
import dts from 'rollup-plugin-dts'
import { uglify } from 'rollup-plugin-uglify'
const external = [
]
export default [
{
input: 'src/index.ts',
output: [
{
file: 'dist/index.js',
format: 'cjs',
},
],
plugins: [
typescript(),
json(),
uglify(),
],
external,
},
{
input: './typings/index.d.ts',
output: {
file: 'dist/index.d.ts',
format: 'es',
},
plugins: [
dts(),
],
},
]