@@ -18,6 +18,10 @@ const badgeTypes = {
18
18
name : "bundle size" ,
19
19
to : "https://bundlephobia.com/package/{name}" ,
20
20
} ,
21
+ bundlejs : {
22
+ name : "bundle size" ,
23
+ to : "https://bundlejs.com/?q={name}" ,
24
+ } ,
21
25
packagephobia : {
22
26
name : "install size" ,
23
27
to : "https://packagephobia.com/result?p={name}" ,
@@ -39,6 +43,7 @@ const badgeProviders = <Record<string, BadgeProvider>>{
39
43
npmDownloads : "https://img.shields.io/npm/dm/{name}" ,
40
44
bundlephobia : "https://img.shields.io/bundlephobia/minzip/{name}" ,
41
45
packagephobia : false , // https://github.com/badges/shields/issues/1701
46
+ bundlejs : "https://img.shields.io/bundlejs/size/{name}" ,
42
47
codecov : "https://img.shields.io/codecov/c/gh/{github}" ,
43
48
license : "https://img.shields.io/github/license/{github}" ,
44
49
} ,
@@ -47,6 +52,7 @@ const badgeProviders = <Record<string, BadgeProvider>>{
47
52
npmVersion : "https://flat.badgen.net/npm/v/{name}" ,
48
53
npmDownloads : "https://flat.badgen.net/npm/dm/{name}" ,
49
54
bundlephobia : "https://flat.badgen.net/bundlephobia/minzip/{name}" ,
55
+ bundlejs : false , // https://github.com/badgen/badgen/issues/82
50
56
packagephobia : "https://flat.badgen.net/packagephobia/publish/{name}" ,
51
57
codecov : "https://flat.badgen.net/codecov/c/github/{github}" ,
52
58
license : "https://flat.badgen.net/github/license/{github}" ,
@@ -55,6 +61,7 @@ const badgeProviders = <Record<string, BadgeProvider>>{
55
61
npmVersion : "https://badgen.net/npm/v/{name}" ,
56
62
npmDownloads : "https://badgen.net/npm/dm/{name}" ,
57
63
bundlephobia : "https://badgen.net/bundlephobia/minzip/{name}" ,
64
+ bundlejs : false , // https://github.com/badgen/badgen/issues/82
58
65
packagephobia : "https://badgen.net/packagephobia/publish/{name}" ,
59
66
codecov : "https://badgen.net/codecov/c/github/{github}" ,
60
67
license : "https://badgen.net/github/license/{github}" ,
@@ -98,6 +105,10 @@ export const badges = defineGenerator({
98
105
enabled : args . bundlephobia && ctx . name ,
99
106
...badgeTypes . bundlephobia ,
100
107
} ,
108
+ bundlejs : {
109
+ enabled : args . bundlejs && ctx . name ,
110
+ ...badgeTypes . bundlejs ,
111
+ } ,
101
112
packagephobia : {
102
113
enabled : args . packagephobia && ctx . name ,
103
114
...badgeTypes . packagephobia ,
0 commit comments