From fa8c987ed61e1d135c69197467df9751572dcc9c Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Sat, 4 Aug 2018 20:38:59 +0000 Subject: [PATCH 1/2] fix(package): update brotli-size to version 0.0.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index aed683a..8688470 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "asyncro": "^3.0.0", "autoprefixer": "^9.0.0", "babel-polyfill": "^6.26.0", - "brotli-size": "^0.0.2", + "brotli-size": "^0.0.3", "camelcase": "^5.0.0", "chalk": "^2.4.0", "cssnano": "^4.0.0", From e17342e7725801dcbe309585875940678f3e53eb Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Mon, 13 Aug 2018 22:07:17 -0400 Subject: [PATCH 2/2] Use async version of brotli-size (0.0.3) --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 503d036..d47a7de 100644 --- a/src/index.js +++ b/src/index.js @@ -145,7 +145,7 @@ export default async function microbundle(options) { async function getSizeInfo(code, filename) { const gzip = formatSize(await gzipSize(code), filename, 'gz'); - const brotli = formatSize(brotliSize.sync(code), filename, 'br'); + const brotli = formatSize(await brotliSize(code), filename, 'br'); return gzip + '\n' + brotli; }