File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ before_script:
7
7
- npx lerna run build --scope @bugsnag/browser
8
8
- cat packages/browser/dist/bugsnag.min.js | wc -c > .size/after-minified
9
9
- cat packages/browser/dist/bugsnag.min.js | gzip | wc -c > .size/after-gzipped
10
+ - git reset --hard HEAD
11
+ - git remote set-branches origin $TRAVIS_BRANCH
12
+ - git fetch
10
13
- git checkout $TRAVIS_BRANCH
11
14
- npm ci
12
15
- npx lerna bootstrap --ignore @bugsnag/expo
Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ const after = {
14
14
15
15
const formatKbs = ( n ) => `${ ( n / 1000 ) . toFixed ( 2 ) } kB`
16
16
17
- const diffMinSize = before . minified - after . minified
18
- const diffZipSize = before . gzipped - after . gzipped
17
+ const diffMinSize = after . minified - before . minified
18
+ const diffZipSize = after . gzipped - before . gzipped
19
19
const showDiff = n => {
20
- if ( n > 0 ) return `⚠️ +${ n } bytes ⬆️ `
21
- if ( n < 0 ) return `- ${ n } bytes ⬇️ `
20
+ if ( n > 0 ) return `⚠️ \` +${ n . toLocaleString ( ) } bytes\` `
21
+ if ( n < 0 ) return `\` ${ n . toLocaleString ( ) } bytes\` `
22
22
return '_No change_'
23
23
}
24
24
You can’t perform that action at this time.
0 commit comments