Skip to content

Commit

Permalink
build: replace bundlesize with bundlewatch
Browse files Browse the repository at this point in the history
Bundlesize is unmaintained and currently doesn't support reporting
differences compared to master, see:
siddharthkp/bundlesize#308 As mentioned here,

Bundlewatch seems to be a working successor:
GoogleChrome/lighthouse#10272 (comment)
  • Loading branch information
ctavan committed Feb 7, 2020
1 parent b962222 commit 6778f25
Show file tree
Hide file tree
Showing 14 changed files with 48 additions and 428 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
- run: npm run ci
env:
CI: true
BUNDLESIZE_GITHUB_TOKEN: ${{ secrets.BUNDLESIZE_GITHUB_TOKEN }}
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
File renamed without changes.
8 changes: 4 additions & 4 deletions examples/browser-rollup/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,31 @@ module.exports = [
},

{
input: './bundlesize-v1.js',
input: './size-v1.js',
output: {
file: 'dist/v1-size.js',
format: 'cjs',
},
plugins,
},
{
input: './bundlesize-v3.js',
input: './size-v3.js',
output: {
file: 'dist/v3-size.js',
format: 'cjs',
},
plugins,
},
{
input: './bundlesize-v4.js',
input: './size-v4.js',
output: {
file: 'dist/v4-size.js',
format: 'cjs',
},
plugins,
},
{
input: './bundlesize-v5.js',
input: './size-v5.js',
output: {
file: 'dist/v5-size.js',
format: 'cjs',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions examples/browser-webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ module.exports = {
v1: './example-v1.js',
v4: './example-v4.js',

'v1-size': './bundlesize-v1.js',
'v3-size': './bundlesize-v3.js',
'v4-size': './bundlesize-v4.js',
'v5-size': './bundlesize-v5.js',
'v1-size': './size-v1.js',
'v3-size': './size-v3.js',
'v4-size': './size-v4.js',
'v5-size': './size-v5.js',
},
output: {
filename: '[name].js',
Expand Down

0 comments on commit 6778f25

Please sign in to comment.