Skip to content

Commit

Permalink
Switch bundle-size store function to the JSON API endpoint (#24955)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg committed Oct 8, 2019
1 parent 9291f82 commit 5417071
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build-system/tasks/bundle-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,15 @@ async function storeBundleSize() {
const response = await requestPost({
uri: url.resolve(
bundleSizeAppBaseUrl,
path.join('commit', commitHash, 'store')
path.join('commit', commitHash, 'store.json')
),
json: true,
body: {
token: process.env.BUNDLE_SIZE_TOKEN,
brotliBundleSize: getBrotliBundleSize(),
// TODO(#20843, danielrozenberg): add extensions and other runtimes.
bundleSizes: {
'dist/v0.js': getBrotliBundleSize(),
},
},
});
if (response.statusCode < 200 || response.statusCode >= 300) {
Expand Down

0 comments on commit 5417071

Please sign in to comment.