@@ -2,26 +2,51 @@ import typescript from '@rollup/plugin-typescript';
22import terser from '@rollup/plugin-terser' ;
33import gzip from 'rollup-plugin-gzip' ;
44
5- export default {
6- input : './src/client.ts' ,
7- plugins : [ typescript ( ) ] ,
8- output : [
9- {
10- file : './umd/graphql-http.js' ,
11- format : 'umd' ,
12- name : 'graphqlHttp' ,
13- } ,
14- {
15- file : './umd/graphql-http.min.js' ,
16- format : 'umd' ,
17- name : 'graphqlHttp' ,
18- plugins : [ terser ( ) ] ,
19- } ,
20- {
21- file : './umd/graphql-http.min.js' , // gzip plugin will add the .gz extension
22- format : 'umd' ,
23- name : 'graphqlHttp' ,
24- plugins : [ terser ( ) , gzip ( ) ] ,
25- } ,
26- ] ,
27- } ;
5+ export default [
6+ {
7+ input : './src/client.ts' ,
8+ plugins : [ typescript ( ) ] ,
9+ output : [
10+ {
11+ file : './umd/graphql-http.js' ,
12+ format : 'umd' ,
13+ name : 'graphqlHttp' ,
14+ } ,
15+ {
16+ file : './umd/graphql-http.min.js' ,
17+ format : 'umd' ,
18+ name : 'graphqlHttp' ,
19+ plugins : [ terser ( ) ] ,
20+ } ,
21+ {
22+ file : './umd/graphql-http.min.js' , // gzip plugin will add the .gz extension
23+ format : 'umd' ,
24+ name : 'graphqlHttp' ,
25+ plugins : [ terser ( ) , gzip ( ) ] ,
26+ } ,
27+ ] ,
28+ } ,
29+ {
30+ input : './src/audits/index.ts' ,
31+ plugins : [ typescript ( ) ] ,
32+ output : [
33+ {
34+ file : './umd/graphql-http-audits.js' ,
35+ format : 'umd' ,
36+ name : 'graphqlHttpAudits' ,
37+ } ,
38+ {
39+ file : './umd/graphql-http-audits.min.js' ,
40+ format : 'umd' ,
41+ name : 'graphqlHttpAudits' ,
42+ plugins : [ terser ( ) ] ,
43+ } ,
44+ {
45+ file : './umd/graphql-http-audits.min.js' , // gzip plugin will add the .gz extension
46+ format : 'umd' ,
47+ name : 'graphqlHttpAudits' ,
48+ plugins : [ terser ( ) , gzip ( ) ] ,
49+ } ,
50+ ] ,
51+ } ,
52+ ] ;
0 commit comments