-
Notifications
You must be signed in to change notification settings - Fork 3
/
rollup.config.ts
32 lines (29 loc) · 907 Bytes
/
rollup.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import typescript from "rollup-plugin-typescript2";
import resolve from "rollup-plugin-node-resolve";
import commonjs from 'rollup-plugin-commonjs';
import uglify from 'rollup-plugin-uglify-es';
let config = {
input: './src/BinarySerializer.ts',
output: [
{file: 'dist/BinarySerializer.umd.js', name: 'ts-binary-serializer', format: 'umd',sourcemap:true},
{file: 'dist/BinarySerializer.es.js',format: 'es'}
],
plugins: [
typescript({
tsconfigOverride:{
compilerOptions:{module:'es2015',declaration:true},
exclude: [
"./src/BinarySerializer.test.ts"
]
},
useTsconfigDeclarationDir:true
}),
resolve({
jsnext:true,
extensions: ['.ts','.js']
}),
uglify(),
commonjs(),
]
}
export default config;