-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathrollup.config.ts
More file actions
27 lines (26 loc) · 628 Bytes
/
rollup.config.ts
File metadata and controls
27 lines (26 loc) · 628 Bytes
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
import typescript from '@rollup/plugin-typescript';
import terser from '@rollup/plugin-terser';
import gzip from 'rollup-plugin-gzip';
export default {
input: './src/client.ts',
plugins: [typescript()],
output: [
{
file: './umd/graphql-sse.js',
format: 'umd',
name: 'graphqlSse',
},
{
file: './umd/graphql-sse.min.js',
format: 'umd',
name: 'graphqlSse',
plugins: [terser()],
},
{
file: './umd/graphql-sse.min.js', // gzip plugin will add the .gz extension
format: 'umd',
name: 'graphqlSse',
plugins: [terser(), gzip()],
},
],
};