Skip to content

Commit 1c10258

Browse files
committed
Fix the build process
1 parent 4d0faad commit 1c10258

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/build.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { spawn } from 'child_process';
22
import { copy, readFile, writeFile } from 'fs-extra';
33
import { prettySize } from 'pretty-size';
4-
import { sync as gzipSync } from 'gzip-size';
4+
import { file as gzipSizeFile } from 'gzip-size';
55
import { dirname, join } from 'path';
66
import { keys as tsKeys } from 'ts-transformer-keys';
77
import firebase from 'firebase/app';
@@ -87,10 +87,10 @@ async function compileSchematics() {
8787
}
8888

8989
async 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

0 commit comments

Comments
 (0)