-
-
Notifications
You must be signed in to change notification settings - Fork 914
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: add bundlesize This will let us prevent regressions in bundlesize. I chose to monitor the bundlesize of webpack and rollup build because this is what ultimately matters to the user. If we break something in our library that would e.g. break tree shaking in one of these bundlers we would want to notice. Co-authored-by: Robert Kieffer <robert@broofa.com>
- Loading branch information
Showing
16 changed files
with
737 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,4 @@ jobs: | |
- run: npm run ci | ||
env: | ||
CI: true | ||
BUNDLESIZE_GITHUB_TOKEN: ${{ secrets.BUNDLESIZE_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"files": [ | ||
{ "path": "./examples/browser-rollup/dist/v1-size.js", "maxSize": "0.8 kB" }, | ||
{ "path": "./examples/browser-rollup/dist/v3-size.js", "maxSize": "1.8 kB" }, | ||
{ "path": "./examples/browser-rollup/dist/v4-size.js", "maxSize": "0.5 kB" }, | ||
{ "path": "./examples/browser-rollup/dist/v5-size.js", "maxSize": "1.2 kB" }, | ||
|
||
{ "path": "./examples/browser-webpack/dist/v1-size.js", "maxSize": "1.3 kB" }, | ||
{ "path": "./examples/browser-webpack/dist/v3-size.js", "maxSize": "2.2 kB" }, | ||
{ "path": "./examples/browser-webpack/dist/v4-size.js", "maxSize": "0.9 kB" }, | ||
{ "path": "./examples/browser-webpack/dist/v5-size.js", "maxSize": "1.6 kB" } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { v1 as uuidv1 } from 'uuid'; | ||
|
||
uuidv1(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { v3 as uuidv3 } from 'uuid'; | ||
|
||
uuidv3(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { v4 as uuidv4 } from 'uuid'; | ||
|
||
uuidv4(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { v5 as uuidv5 } from 'uuid'; | ||
|
||
uuidv5(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { v1 as uuidv1 } from 'uuid'; | ||
|
||
uuidv1(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { v3 as uuidv3 } from 'uuid'; | ||
|
||
uuidv3(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { v4 as uuidv4 } from 'uuid'; | ||
|
||
uuidv4(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { v5 as uuidv5 } from 'uuid'; | ||
|
||
uuidv5(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.