File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { spawn } from 'child_process' ;
22import { copy , readFile , writeFile } from 'fs-extra' ;
33import { prettySize } from 'pretty-size' ;
4- import { sync as gzipSync } from 'gzip-size' ;
4+ import { file as gzipSizeFile } from 'gzip-size' ;
55import { dirname , join } from 'path' ;
66import { keys as tsKeys } from 'ts-transformer-keys' ;
77import firebase from 'firebase/app' ;
@@ -87,10 +87,10 @@ async function compileSchematics() {
8787}
8888
8989async function measure ( module : string ) {
90- const path = dest ( 'bundles' , `${ module } .umd.min. js` ) ;
90+ const path = dest ( 'bundles' , `${ module } .umd.js` ) ;
9191 const file = await readFile ( path ) ;
92- const gzip = prettySize ( gzipSync ( file ) , true ) ;
9392 const size = prettySize ( file . byteLength , true ) ;
93+ const gzip = prettySize ( await gzipSizeFile ( path ) , true ) ;
9494 return { size, gzip } ;
9595}
9696
You can’t perform that action at this time.
0 commit comments