File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 84
84
"test" : " NODE_OPTIONS=--experimental-vm-modules jest" ,
85
85
"build:esm" : " tsc -b tsconfig.esm.json && node scripts/esm-post-process.mjs" ,
86
86
"build:cjs" : " tsc -b tsconfig.cjs.json" ,
87
- "build:umd" : " rollup --bundleConfigAsCjs --config rollup.config.ts --configPlugin typescript && gzip umd/graphql-http.min.js -c > umd/graphql-http.min.js.gz " ,
87
+ "build:umd" : " rollup --configPlugin typescript --config rollup.config.ts" ,
88
88
"build" : " yarn build:esm && yarn build:cjs && yarn build:umd" ,
89
89
"release" : " semantic-release"
90
90
},
128
128
"node-fetch" : " ^3.3.0" ,
129
129
"prettier" : " ^2.8.4" ,
130
130
"rollup" : " ^3.14.0" ,
131
+ "rollup-plugin-gzip" : " ^3.1.0" ,
131
132
"semantic-release" : " ^20.1.0" ,
132
133
"tslib" : " ^2.5.0" ,
133
134
"typedoc" : " ^0.23.24" ,
Original file line number Diff line number Diff line change 1
1
import typescript from '@rollup/plugin-typescript' ;
2
2
import terser from '@rollup/plugin-terser' ;
3
+ import gzip from 'rollup-plugin-gzip' ;
3
4
4
5
export default {
5
6
input : './src/client.ts' ,
@@ -16,5 +17,11 @@ export default {
16
17
name : 'graphqlHttp' ,
17
18
plugins : [ terser ( ) ] ,
18
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
+ } ,
19
26
] ,
20
27
} ;
Original file line number Diff line number Diff line change @@ -7326,6 +7326,7 @@ __metadata:
7326
7326
node-fetch : ^3.3.0
7327
7327
prettier : ^2.8.4
7328
7328
rollup : ^3.14.0
7329
+ rollup-plugin-gzip : ^3.1.0
7329
7330
semantic-release : ^20.1.0
7330
7331
tslib : ^2.5.0
7331
7332
typedoc : ^0.23.24
@@ -11499,6 +11500,15 @@ __metadata:
11499
11500
languageName : node
11500
11501
linkType : hard
11501
11502
11503
+ " rollup-plugin-gzip@npm:^3.1.0 " :
11504
+ version : 3.1.0
11505
+ resolution : " rollup-plugin-gzip@npm:3.1.0"
11506
+ peerDependencies :
11507
+ rollup : " >=2.0.0"
11508
+ checksum : b6e9671639f50bd4fda586603d784597abe19925ceda81fd4d3aa44f538b3be45f4d4b29ea1e251c20b2f2c3c16f498e762fac266114751f827b324acfca8b4f
11509
+ languageName : node
11510
+ linkType : hard
11511
+
11502
11512
" rollup@npm:^3.14.0 " :
11503
11513
version : 3.14.0
11504
11514
resolution : " rollup@npm:3.14.0"
You can’t perform that action at this time.
0 commit comments